├── README.md
├── UIPageViewControllerDemo
├── UIPageViewControllerDemo.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── project.pbxproj
└── UIPageViewControllerDemo
│ ├── ViewController.h
│ ├── PageViewController.h
│ ├── ContentViewController.h
│ ├── AppDelegate.h
│ ├── main.m
│ ├── PageViewController.m
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
│ ├── ContentViewController.m
│ ├── Info.plist
│ ├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.storyboard
│ ├── AppDelegate.m
│ └── ViewController.m
├── LICENSE
└── .gitignore
/README.md:
--------------------------------------------------------------------------------
1 | # UIPageViewControllerDemo
2 | UIPageViewControllerDemo
3 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // UIPageViewControllerDemo
4 | //
5 | // Created by SHB on 16/4/12.
6 | // Copyright © 2016年 Herb. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/PageViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PageViewController.h
3 | // UIPageViewControllerDemo
4 | //
5 | // Created by SHB on 16/4/12.
6 | // Copyright © 2016年 Herb. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PageViewController : UIPageViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/ContentViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ContentViewController.h
3 | // UIPageViewControllerDemo
4 | //
5 | // Created by Herb on 16/4/12.
6 | // Copyright © 2016年 Herb. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ContentViewController : UIViewController
12 |
13 | @property (nonatomic, copy) NSString *content;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // UIPageViewControllerDemo
4 | //
5 | // Created by SHB on 16/4/12.
6 | // Copyright © 2016年 Herb. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // UIPageViewControllerDemo
4 | //
5 | // Created by SHB on 16/4/12.
6 | // Copyright © 2016年 Herb. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/PageViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // PageViewController.m
3 | // UIPageViewControllerDemo
4 | //
5 | // Created by SHB on 16/4/12.
6 | // Copyright © 2016年 Herb. All rights reserved.
7 | //
8 |
9 | #import "PageViewController.h"
10 |
11 | @interface PageViewController ()
12 |
13 | @end
14 |
15 | @implementation PageViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 |
20 |
21 |
22 | }
23 | @end
24 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016 Herb
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/ContentViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ContentViewController.m
3 | // UIPageViewControllerDemo
4 | //
5 | // Created by Herb on 16/4/12.
6 | // Copyright © 2016年 Herb. All rights reserved.
7 | //
8 |
9 | #import "ContentViewController.h"
10 | #define kRandomColor ([UIColor colorWithRed:arc4random_uniform(256)/255.0 green:arc4random_uniform(256)/255.0 blue:arc4random_uniform(256)/255.0 alpha:1.0f])
11 |
12 | @interface ContentViewController ()
13 |
14 | @property (nonatomic, strong) UILabel *contentLabel;
15 |
16 | @end
17 |
18 | @implementation ContentViewController
19 |
20 | - (void)viewDidLoad{
21 | [super viewDidLoad];
22 | self.view.backgroundColor = kRandomColor;
23 | _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 50, self.view.bounds.size.width, 100)];
24 | _contentLabel.numberOfLines = 0;
25 | _contentLabel.backgroundColor = kRandomColor;
26 | [self.view addSubview:_contentLabel];
27 | }
28 |
29 | - (void) viewWillAppear:(BOOL)paramAnimated{
30 | [super viewWillAppear:paramAnimated];
31 | _contentLabel.text = _content;
32 | // [self.myWebView loadHTMLString:_dataObject baseURL:nil];
33 | // [self.view addSubview:self.myWebView];
34 |
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata/
19 |
20 | ## Other
21 | *.moved-aside
22 | *.xcuserstate
23 |
24 | ## Obj-C/Swift specific
25 | *.hmap
26 | *.ipa
27 | *.dSYM.zip
28 | *.dSYM
29 |
30 | # CocoaPods
31 | #
32 | # We recommend against adding the Pods directory to your .gitignore. However
33 | # you should judge for yourself, the pros and cons are mentioned at:
34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
35 | #
36 | # Pods/
37 |
38 | # Carthage
39 | #
40 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
41 | # Carthage/Checkouts
42 |
43 | Carthage/Build
44 |
45 | # fastlane
46 | #
47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48 | # screenshots whenever they are needed.
49 | # For more information about the recommended setup visit:
50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
51 |
52 | fastlane/report.xml
53 | fastlane/screenshots
54 |
55 | #Code Injection
56 | #
57 | # After new code Injection tools there's a generated folder /iOSInjectionProject
58 | # https://github.com/johnno1962/injectionforxcode
59 |
60 | iOSInjectionProject/
61 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // UIPageViewControllerDemo
4 | //
5 | // Created by SHB on 16/4/12.
6 | // Copyright © 2016年 Herb. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // UIPageViewControllerDemo
4 | //
5 | // Created by SHB on 16/4/12.
6 | // Copyright © 2016年 Herb. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "ContentViewController.h"
11 |
12 | @interface ViewController ()
13 |
14 | @property (nonatomic, strong) UIPageViewController *pageViewController;
15 | @property (nonatomic, strong) NSArray *pageContentArray;
16 |
17 | @end
18 |
19 | @implementation ViewController
20 |
21 | #pragma mark - Lazy Load
22 |
23 | - (NSArray *)pageContentArray {
24 | if (!_pageContentArray) {
25 | NSMutableArray *arrayM = [[NSMutableArray alloc] init];
26 | for (int i = 1; i < 10; i++) {
27 | NSString *contentString = [[NSString alloc] initWithFormat:@"This is the page %d of content displayed using UIPageViewController", i];
28 | [arrayM addObject:contentString];
29 | }
30 | _pageContentArray = [[NSArray alloc] initWithArray:arrayM];
31 |
32 | }
33 | return _pageContentArray;
34 | }
35 |
36 | #pragma mark - Life Cycle
37 |
38 | - (void)viewDidLoad {
39 | [super viewDidLoad];
40 |
41 | // 设置UIPageViewController的配置项
42 | NSDictionary *options = @{UIPageViewControllerOptionInterPageSpacingKey : @(20)};
43 | // NSDictionary *options = @{UIPageViewControllerOptionSpineLocationKey : @(UIPageViewControllerSpineLocationMin)};
44 |
45 | // 根据给定的属性实例化UIPageViewController
46 | _pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll
47 | navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal
48 | options:options];
49 | // 设置UIPageViewController代理和数据源
50 | _pageViewController.delegate = self;
51 | _pageViewController.dataSource = self;
52 |
53 | // 让UIPageViewController对象,显示相应的页数据。
54 | // UIPageViewController对象要显示的页数据封装成为一个NSArray。
55 | // 因为我们定义UIPageViewController对象显示样式为显示一页(options参数指定)。
56 | // 如果要显示2页,NSArray中,应该有2个相应页数据。
57 |
58 | // 设置UIPageViewController初始化数据, 将数据放在NSArray里面
59 | // 如果 options 设置了 UIPageViewControllerSpineLocationMid,注意viewControllers至少包含两个数据,且 doubleSided = YES
60 |
61 | ContentViewController *initialViewController = [self viewControllerAtIndex:0];// 得到第一页
62 | NSArray *viewControllers = [NSArray arrayWithObject:initialViewController];
63 |
64 | [_pageViewController setViewControllers:viewControllers
65 | direction:UIPageViewControllerNavigationDirectionReverse
66 | animated:NO
67 | completion:nil];
68 |
69 | // 设置UIPageViewController 尺寸
70 | _pageViewController.view.frame = self.view.bounds;
71 |
72 | // 在页面上,显示UIPageViewController对象的View
73 | [self addChildViewController:_pageViewController];
74 | [self.view addSubview:_pageViewController.view];
75 |
76 | }
77 |
78 | #pragma mark - UIPageViewControllerDataSource And UIPageViewControllerDelegate
79 |
80 | #pragma mark 返回上一个ViewController对象
81 |
82 | - (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerBeforeViewController:(UIViewController *)viewController {
83 |
84 | NSUInteger index = [self indexOfViewController:(ContentViewController *)viewController];
85 | if ((index == 0) || (index == NSNotFound)) {
86 | return nil;
87 | }
88 | index--;
89 | // 返回的ViewController,将被添加到相应的UIPageViewController对象上。
90 | // UIPageViewController对象会根据UIPageViewControllerDataSource协议方法,自动来维护次序
91 | // 不用我们去操心每个ViewController的顺序问题
92 | return [self viewControllerAtIndex:index];
93 |
94 |
95 | }
96 |
97 | #pragma mark 返回下一个ViewController对象
98 |
99 | - (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController {
100 |
101 | NSUInteger index = [self indexOfViewController:(ContentViewController *)viewController];
102 | if (index == NSNotFound) {
103 | return nil;
104 | }
105 | index++;
106 | if (index == [self.pageContentArray count]) {
107 | return nil;
108 | }
109 | return [self viewControllerAtIndex:index];
110 |
111 |
112 | }
113 |
114 | //- (NSInteger)presentationCountForPageViewController:(UIPageViewController *)pageViewController {
115 | // return self.pageContentArray.count;
116 | //}
117 | //
118 | //- (NSInteger)presentationIndexForPageViewController:(UIPageViewController *)pageViewController {
119 | // return 8;
120 | //}
121 |
122 |
123 | #pragma mark - 根据index得到对应的UIViewController
124 |
125 | - (ContentViewController *)viewControllerAtIndex:(NSUInteger)index {
126 | if (([self.pageContentArray count] == 0) || (index >= [self.pageContentArray count])) {
127 | return nil;
128 | }
129 | // 创建一个新的控制器类,并且分配给相应的数据
130 | ContentViewController *contentVC = [[ContentViewController alloc] init];
131 | contentVC.content = [self.pageContentArray objectAtIndex:index];
132 | return contentVC;
133 | }
134 |
135 | #pragma mark - 数组元素值,得到下标值
136 |
137 | - (NSUInteger)indexOfViewController:(ContentViewController *)viewController {
138 | return [self.pageContentArray indexOfObject:viewController.content];
139 | }
140 |
141 | @end
142 |
--------------------------------------------------------------------------------
/UIPageViewControllerDemo/UIPageViewControllerDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | F6F25FB81CBCED0E003033BB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F6F25FB71CBCED0E003033BB /* main.m */; };
11 | F6F25FBB1CBCED0E003033BB /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F6F25FBA1CBCED0E003033BB /* AppDelegate.m */; };
12 | F6F25FBE1CBCED0E003033BB /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F6F25FBD1CBCED0E003033BB /* ViewController.m */; };
13 | F6F25FC11CBCED0E003033BB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F6F25FBF1CBCED0E003033BB /* Main.storyboard */; };
14 | F6F25FC31CBCED0E003033BB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F6F25FC21CBCED0E003033BB /* Assets.xcassets */; };
15 | F6F25FC61CBCED0E003033BB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F6F25FC41CBCED0E003033BB /* LaunchScreen.storyboard */; };
16 | F6F25FCF1CBCF049003033BB /* ContentViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F6F25FCE1CBCF049003033BB /* ContentViewController.m */; };
17 | F6F25FD21CBD40C1003033BB /* PageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F6F25FD11CBD40C1003033BB /* PageViewController.m */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXFileReference section */
21 | F6F25FB31CBCED0E003033BB /* UIPageViewControllerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UIPageViewControllerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
22 | F6F25FB71CBCED0E003033BB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
23 | F6F25FB91CBCED0E003033BB /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
24 | F6F25FBA1CBCED0E003033BB /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
25 | F6F25FBC1CBCED0E003033BB /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
26 | F6F25FBD1CBCED0E003033BB /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
27 | F6F25FC01CBCED0E003033BB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
28 | F6F25FC21CBCED0E003033BB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
29 | F6F25FC51CBCED0E003033BB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
30 | F6F25FC71CBCED0E003033BB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
31 | F6F25FCD1CBCF049003033BB /* ContentViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ContentViewController.h; sourceTree = ""; };
32 | F6F25FCE1CBCF049003033BB /* ContentViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ContentViewController.m; sourceTree = ""; };
33 | F6F25FD01CBD40C1003033BB /* PageViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PageViewController.h; sourceTree = ""; };
34 | F6F25FD11CBD40C1003033BB /* PageViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PageViewController.m; sourceTree = ""; };
35 | /* End PBXFileReference section */
36 |
37 | /* Begin PBXFrameworksBuildPhase section */
38 | F6F25FB01CBCED0E003033BB /* Frameworks */ = {
39 | isa = PBXFrameworksBuildPhase;
40 | buildActionMask = 2147483647;
41 | files = (
42 | );
43 | runOnlyForDeploymentPostprocessing = 0;
44 | };
45 | /* End PBXFrameworksBuildPhase section */
46 |
47 | /* Begin PBXGroup section */
48 | F6F25FAA1CBCED0D003033BB = {
49 | isa = PBXGroup;
50 | children = (
51 | F6F25FB51CBCED0E003033BB /* UIPageViewControllerDemo */,
52 | F6F25FB41CBCED0E003033BB /* Products */,
53 | );
54 | sourceTree = "";
55 | };
56 | F6F25FB41CBCED0E003033BB /* Products */ = {
57 | isa = PBXGroup;
58 | children = (
59 | F6F25FB31CBCED0E003033BB /* UIPageViewControllerDemo.app */,
60 | );
61 | name = Products;
62 | sourceTree = "";
63 | };
64 | F6F25FB51CBCED0E003033BB /* UIPageViewControllerDemo */ = {
65 | isa = PBXGroup;
66 | children = (
67 | F6F25FB91CBCED0E003033BB /* AppDelegate.h */,
68 | F6F25FBA1CBCED0E003033BB /* AppDelegate.m */,
69 | F6F25FBC1CBCED0E003033BB /* ViewController.h */,
70 | F6F25FBD1CBCED0E003033BB /* ViewController.m */,
71 | F6F25FD01CBD40C1003033BB /* PageViewController.h */,
72 | F6F25FD11CBD40C1003033BB /* PageViewController.m */,
73 | F6F25FCD1CBCF049003033BB /* ContentViewController.h */,
74 | F6F25FCE1CBCF049003033BB /* ContentViewController.m */,
75 | F6F25FBF1CBCED0E003033BB /* Main.storyboard */,
76 | F6F25FC21CBCED0E003033BB /* Assets.xcassets */,
77 | F6F25FC41CBCED0E003033BB /* LaunchScreen.storyboard */,
78 | F6F25FC71CBCED0E003033BB /* Info.plist */,
79 | F6F25FB61CBCED0E003033BB /* Supporting Files */,
80 | );
81 | path = UIPageViewControllerDemo;
82 | sourceTree = "";
83 | };
84 | F6F25FB61CBCED0E003033BB /* Supporting Files */ = {
85 | isa = PBXGroup;
86 | children = (
87 | F6F25FB71CBCED0E003033BB /* main.m */,
88 | );
89 | name = "Supporting Files";
90 | sourceTree = "";
91 | };
92 | /* End PBXGroup section */
93 |
94 | /* Begin PBXNativeTarget section */
95 | F6F25FB21CBCED0E003033BB /* UIPageViewControllerDemo */ = {
96 | isa = PBXNativeTarget;
97 | buildConfigurationList = F6F25FCA1CBCED0E003033BB /* Build configuration list for PBXNativeTarget "UIPageViewControllerDemo" */;
98 | buildPhases = (
99 | F6F25FAF1CBCED0E003033BB /* Sources */,
100 | F6F25FB01CBCED0E003033BB /* Frameworks */,
101 | F6F25FB11CBCED0E003033BB /* Resources */,
102 | );
103 | buildRules = (
104 | );
105 | dependencies = (
106 | );
107 | name = UIPageViewControllerDemo;
108 | productName = UIPageViewControllerDemo;
109 | productReference = F6F25FB31CBCED0E003033BB /* UIPageViewControllerDemo.app */;
110 | productType = "com.apple.product-type.application";
111 | };
112 | /* End PBXNativeTarget section */
113 |
114 | /* Begin PBXProject section */
115 | F6F25FAB1CBCED0D003033BB /* Project object */ = {
116 | isa = PBXProject;
117 | attributes = {
118 | LastUpgradeCheck = 0730;
119 | ORGANIZATIONNAME = Herb;
120 | TargetAttributes = {
121 | F6F25FB21CBCED0E003033BB = {
122 | CreatedOnToolsVersion = 7.3;
123 | };
124 | };
125 | };
126 | buildConfigurationList = F6F25FAE1CBCED0D003033BB /* Build configuration list for PBXProject "UIPageViewControllerDemo" */;
127 | compatibilityVersion = "Xcode 3.2";
128 | developmentRegion = English;
129 | hasScannedForEncodings = 0;
130 | knownRegions = (
131 | en,
132 | Base,
133 | );
134 | mainGroup = F6F25FAA1CBCED0D003033BB;
135 | productRefGroup = F6F25FB41CBCED0E003033BB /* Products */;
136 | projectDirPath = "";
137 | projectRoot = "";
138 | targets = (
139 | F6F25FB21CBCED0E003033BB /* UIPageViewControllerDemo */,
140 | );
141 | };
142 | /* End PBXProject section */
143 |
144 | /* Begin PBXResourcesBuildPhase section */
145 | F6F25FB11CBCED0E003033BB /* Resources */ = {
146 | isa = PBXResourcesBuildPhase;
147 | buildActionMask = 2147483647;
148 | files = (
149 | F6F25FC61CBCED0E003033BB /* LaunchScreen.storyboard in Resources */,
150 | F6F25FC31CBCED0E003033BB /* Assets.xcassets in Resources */,
151 | F6F25FC11CBCED0E003033BB /* Main.storyboard in Resources */,
152 | );
153 | runOnlyForDeploymentPostprocessing = 0;
154 | };
155 | /* End PBXResourcesBuildPhase section */
156 |
157 | /* Begin PBXSourcesBuildPhase section */
158 | F6F25FAF1CBCED0E003033BB /* Sources */ = {
159 | isa = PBXSourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | F6F25FBE1CBCED0E003033BB /* ViewController.m in Sources */,
163 | F6F25FCF1CBCF049003033BB /* ContentViewController.m in Sources */,
164 | F6F25FBB1CBCED0E003033BB /* AppDelegate.m in Sources */,
165 | F6F25FD21CBD40C1003033BB /* PageViewController.m in Sources */,
166 | F6F25FB81CBCED0E003033BB /* main.m in Sources */,
167 | );
168 | runOnlyForDeploymentPostprocessing = 0;
169 | };
170 | /* End PBXSourcesBuildPhase section */
171 |
172 | /* Begin PBXVariantGroup section */
173 | F6F25FBF1CBCED0E003033BB /* Main.storyboard */ = {
174 | isa = PBXVariantGroup;
175 | children = (
176 | F6F25FC01CBCED0E003033BB /* Base */,
177 | );
178 | name = Main.storyboard;
179 | sourceTree = "";
180 | };
181 | F6F25FC41CBCED0E003033BB /* LaunchScreen.storyboard */ = {
182 | isa = PBXVariantGroup;
183 | children = (
184 | F6F25FC51CBCED0E003033BB /* Base */,
185 | );
186 | name = LaunchScreen.storyboard;
187 | sourceTree = "";
188 | };
189 | /* End PBXVariantGroup section */
190 |
191 | /* Begin XCBuildConfiguration section */
192 | F6F25FC81CBCED0E003033BB /* Debug */ = {
193 | isa = XCBuildConfiguration;
194 | buildSettings = {
195 | ALWAYS_SEARCH_USER_PATHS = NO;
196 | CLANG_ANALYZER_NONNULL = YES;
197 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
198 | CLANG_CXX_LIBRARY = "libc++";
199 | CLANG_ENABLE_MODULES = YES;
200 | CLANG_ENABLE_OBJC_ARC = YES;
201 | CLANG_WARN_BOOL_CONVERSION = YES;
202 | CLANG_WARN_CONSTANT_CONVERSION = YES;
203 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
204 | CLANG_WARN_EMPTY_BODY = YES;
205 | CLANG_WARN_ENUM_CONVERSION = YES;
206 | CLANG_WARN_INT_CONVERSION = YES;
207 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
208 | CLANG_WARN_UNREACHABLE_CODE = YES;
209 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
210 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
211 | COPY_PHASE_STRIP = NO;
212 | DEBUG_INFORMATION_FORMAT = dwarf;
213 | ENABLE_STRICT_OBJC_MSGSEND = YES;
214 | ENABLE_TESTABILITY = YES;
215 | GCC_C_LANGUAGE_STANDARD = gnu99;
216 | GCC_DYNAMIC_NO_PIC = NO;
217 | GCC_NO_COMMON_BLOCKS = YES;
218 | GCC_OPTIMIZATION_LEVEL = 0;
219 | GCC_PREPROCESSOR_DEFINITIONS = (
220 | "DEBUG=1",
221 | "$(inherited)",
222 | );
223 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
224 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
225 | GCC_WARN_UNDECLARED_SELECTOR = YES;
226 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
227 | GCC_WARN_UNUSED_FUNCTION = YES;
228 | GCC_WARN_UNUSED_VARIABLE = YES;
229 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
230 | MTL_ENABLE_DEBUG_INFO = YES;
231 | ONLY_ACTIVE_ARCH = YES;
232 | SDKROOT = iphoneos;
233 | };
234 | name = Debug;
235 | };
236 | F6F25FC91CBCED0E003033BB /* Release */ = {
237 | isa = XCBuildConfiguration;
238 | buildSettings = {
239 | ALWAYS_SEARCH_USER_PATHS = NO;
240 | CLANG_ANALYZER_NONNULL = YES;
241 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
242 | CLANG_CXX_LIBRARY = "libc++";
243 | CLANG_ENABLE_MODULES = YES;
244 | CLANG_ENABLE_OBJC_ARC = YES;
245 | CLANG_WARN_BOOL_CONVERSION = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
248 | CLANG_WARN_EMPTY_BODY = YES;
249 | CLANG_WARN_ENUM_CONVERSION = YES;
250 | CLANG_WARN_INT_CONVERSION = YES;
251 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
252 | CLANG_WARN_UNREACHABLE_CODE = YES;
253 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
254 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
255 | COPY_PHASE_STRIP = NO;
256 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
257 | ENABLE_NS_ASSERTIONS = NO;
258 | ENABLE_STRICT_OBJC_MSGSEND = YES;
259 | GCC_C_LANGUAGE_STANDARD = gnu99;
260 | GCC_NO_COMMON_BLOCKS = YES;
261 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
262 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
263 | GCC_WARN_UNDECLARED_SELECTOR = YES;
264 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
265 | GCC_WARN_UNUSED_FUNCTION = YES;
266 | GCC_WARN_UNUSED_VARIABLE = YES;
267 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
268 | MTL_ENABLE_DEBUG_INFO = NO;
269 | SDKROOT = iphoneos;
270 | VALIDATE_PRODUCT = YES;
271 | };
272 | name = Release;
273 | };
274 | F6F25FCB1CBCED0E003033BB /* Debug */ = {
275 | isa = XCBuildConfiguration;
276 | buildSettings = {
277 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
278 | INFOPLIST_FILE = UIPageViewControllerDemo/Info.plist;
279 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
280 | PRODUCT_BUNDLE_IDENTIFIER = Herb.UIPageViewControllerDemo;
281 | PRODUCT_NAME = "$(TARGET_NAME)";
282 | };
283 | name = Debug;
284 | };
285 | F6F25FCC1CBCED0E003033BB /* Release */ = {
286 | isa = XCBuildConfiguration;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | INFOPLIST_FILE = UIPageViewControllerDemo/Info.plist;
290 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
291 | PRODUCT_BUNDLE_IDENTIFIER = Herb.UIPageViewControllerDemo;
292 | PRODUCT_NAME = "$(TARGET_NAME)";
293 | };
294 | name = Release;
295 | };
296 | /* End XCBuildConfiguration section */
297 |
298 | /* Begin XCConfigurationList section */
299 | F6F25FAE1CBCED0D003033BB /* Build configuration list for PBXProject "UIPageViewControllerDemo" */ = {
300 | isa = XCConfigurationList;
301 | buildConfigurations = (
302 | F6F25FC81CBCED0E003033BB /* Debug */,
303 | F6F25FC91CBCED0E003033BB /* Release */,
304 | );
305 | defaultConfigurationIsVisible = 0;
306 | defaultConfigurationName = Release;
307 | };
308 | F6F25FCA1CBCED0E003033BB /* Build configuration list for PBXNativeTarget "UIPageViewControllerDemo" */ = {
309 | isa = XCConfigurationList;
310 | buildConfigurations = (
311 | F6F25FCB1CBCED0E003033BB /* Debug */,
312 | F6F25FCC1CBCED0E003033BB /* Release */,
313 | );
314 | defaultConfigurationIsVisible = 0;
315 | defaultConfigurationName = Release;
316 | };
317 | /* End XCConfigurationList section */
318 | };
319 | rootObject = F6F25FAB1CBCED0D003033BB /* Project object */;
320 | }
321 |
--------------------------------------------------------------------------------