└── CollectionViewPagingEnable
├── CollectionViewPagingEnable
├── Assets.xcassets
│ ├── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── ViewController.h
├── PagingEnableLayout.h
├── AppDelegate.h
├── main.m
├── PagingEnableLayout.m
├── ViewController.m
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
└── AppDelegate.m
└── CollectionViewPagingEnable.xcodeproj
├── xcuserdata
└── Ray.xcuserdatad
│ ├── xcdebugger
│ └── Breakpoints_v2.xcbkptlist
│ └── xcschemes
│ └── xcschememanagement.plist
├── project.xcworkspace
├── contents.xcworkspacedata
└── xcshareddata
│ └── IDEWorkspaceChecks.plist
└── project.pbxproj
/CollectionViewPagingEnable/CollectionViewPagingEnable/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable.xcodeproj/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // CollectionViewPagingEnable
4 | //
5 | // Created by Ray on 2018/7/17.
6 | // Copyright © 2018年 com.collectionView.pagingEnable. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/PagingEnableLayout.h:
--------------------------------------------------------------------------------
1 | //
2 | // PagingEnableLayout.h
3 | // CollectionViewPagingEnable
4 | //
5 | // Created by Ray on 2018/7/17.
6 | // Copyright © 2018年 com.collectionView.pagingEnable. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PagingEnableLayout : UICollectionViewFlowLayout
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // CollectionViewPagingEnable
4 | //
5 | // Created by Ray on 2018/7/17.
6 | // Copyright © 2018年 com.collectionView.pagingEnable. 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 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // CollectionViewPagingEnable
4 | //
5 | // Created by Ray on 2018/7/17.
6 | // Copyright © 2018年 com.collectionView.pagingEnable. 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 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable.xcodeproj/xcuserdata/Ray.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | CollectionViewPagingEnable.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/PagingEnableLayout.m:
--------------------------------------------------------------------------------
1 | //
2 | // PagingEnableLayout.m
3 | // CollectionViewPagingEnable
4 | //
5 | // Created by Ray on 2018/7/17.
6 | // Copyright © 2018年 com.collectionView.pagingEnable. All rights reserved.
7 | //
8 |
9 | #import "PagingEnableLayout.h"
10 | #import
11 |
12 | #define ScreenWidth [UIScreen mainScreen].bounds.size.width
13 |
14 | @implementation PagingEnableLayout
15 |
16 | - (void)prepareLayout{
17 | [super prepareLayout];
18 | //屏幕宽去掉中间的cell宽度的大小
19 | CGFloat contentInset = ScreenWidth-round(200.0*ScreenWidth/375);
20 | self.collectionView.decelerationRate = UIScrollViewDecelerationRateFast;
21 | self.collectionView.contentInset = UIEdgeInsetsMake(0, contentInset*0.5, 0, contentInset*0.5);
22 | if ([self.collectionView respondsToSelector:NSSelectorFromString(@"_setInterpageSpacing:")]) {
23 | ((void(*)(id,SEL,CGSize))objc_msgSend)(self.collectionView,NSSelectorFromString(@"_setInterpageSpacing:"),CGSizeMake(-(contentInset-self.minimumInteritemSpacing), 0));
24 | }
25 | if ([self.collectionView respondsToSelector:NSSelectorFromString(@"_setPagingOrigin:")]) {
26 | ((void(*)(id,SEL,CGPoint))objc_msgSend)(self.collectionView,NSSelectorFromString(@"_setPagingOrigin:"),CGPointMake(-contentInset*0.5, 0));
27 | }
28 | }
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // CollectionViewPagingEnable
4 | //
5 | // Created by Ray on 2018/7/17.
6 | // Copyright © 2018年 com.collectionView.pagingEnable. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 |
11 |
12 | @interface ViewController ()
13 | @property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
14 |
15 | @end
16 |
17 | @implementation ViewController
18 |
19 | - (void)viewDidLoad {
20 | [super viewDidLoad];
21 | // Do any additional setup after loading the view, typically from a nib.
22 |
23 | }
24 |
25 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
26 | return 100;
27 | }
28 |
29 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
30 | UICollectionViewCell* cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"item" forIndexPath:indexPath];
31 | cell.contentView.backgroundColor = [UIColor colorWithRed:arc4random_uniform(256)/255.0 green:arc4random_uniform(256)/255.0 blue:arc4random_uniform(256)/255.0 alpha:1];
32 | return cell;
33 | }
34 |
35 |
36 | - (void)didReceiveMemoryWarning {
37 | [super didReceiveMemoryWarning];
38 | // Dispose of any resources that can be recreated.
39 | }
40 |
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
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 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/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 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // CollectionViewPagingEnable
4 | //
5 | // Created by Ray on 2018/7/17.
6 | // Copyright © 2018年 com.collectionView.pagingEnable. 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 |
24 | - (void)applicationWillResignActive:(UIApplication *)application {
25 | // 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.
26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
27 | }
28 |
29 |
30 | - (void)applicationDidEnterBackground:(UIApplication *)application {
31 | // 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.
32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
33 | }
34 |
35 |
36 | - (void)applicationWillEnterForeground:(UIApplication *)application {
37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
38 | }
39 |
40 |
41 | - (void)applicationDidBecomeActive:(UIApplication *)application {
42 | // 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.
43 | }
44 |
45 |
46 | - (void)applicationWillTerminate:(UIApplication *)application {
47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
48 | }
49 |
50 |
51 | @end
52 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable/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 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/CollectionViewPagingEnable/CollectionViewPagingEnable.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 71921B7720FD892400797610 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 71921B7620FD892400797610 /* AppDelegate.m */; };
11 | 71921B7A20FD892400797610 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 71921B7920FD892400797610 /* ViewController.m */; };
12 | 71921B7D20FD892400797610 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71921B7B20FD892400797610 /* Main.storyboard */; };
13 | 71921B7F20FD893000797610 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 71921B7E20FD893000797610 /* Assets.xcassets */; };
14 | 71921B8220FD893000797610 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71921B8020FD893000797610 /* LaunchScreen.storyboard */; };
15 | 71921B8520FD893000797610 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 71921B8420FD893000797610 /* main.m */; };
16 | 71921B8D20FD89B200797610 /* PagingEnableLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 71921B8C20FD89B200797610 /* PagingEnableLayout.m */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXFileReference section */
20 | 71921B7220FD892400797610 /* CollectionViewPagingEnable.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CollectionViewPagingEnable.app; sourceTree = BUILT_PRODUCTS_DIR; };
21 | 71921B7520FD892400797610 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
22 | 71921B7620FD892400797610 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
23 | 71921B7820FD892400797610 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
24 | 71921B7920FD892400797610 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
25 | 71921B7C20FD892400797610 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
26 | 71921B7E20FD893000797610 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
27 | 71921B8120FD893000797610 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
28 | 71921B8320FD893000797610 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
29 | 71921B8420FD893000797610 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
30 | 71921B8B20FD89B200797610 /* PagingEnableLayout.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PagingEnableLayout.h; sourceTree = ""; };
31 | 71921B8C20FD89B200797610 /* PagingEnableLayout.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PagingEnableLayout.m; sourceTree = ""; };
32 | /* End PBXFileReference section */
33 |
34 | /* Begin PBXFrameworksBuildPhase section */
35 | 71921B6F20FD892400797610 /* Frameworks */ = {
36 | isa = PBXFrameworksBuildPhase;
37 | buildActionMask = 2147483647;
38 | files = (
39 | );
40 | runOnlyForDeploymentPostprocessing = 0;
41 | };
42 | /* End PBXFrameworksBuildPhase section */
43 |
44 | /* Begin PBXGroup section */
45 | 71921B6920FD892400797610 = {
46 | isa = PBXGroup;
47 | children = (
48 | 71921B7420FD892400797610 /* CollectionViewPagingEnable */,
49 | 71921B7320FD892400797610 /* Products */,
50 | );
51 | sourceTree = "";
52 | };
53 | 71921B7320FD892400797610 /* Products */ = {
54 | isa = PBXGroup;
55 | children = (
56 | 71921B7220FD892400797610 /* CollectionViewPagingEnable.app */,
57 | );
58 | name = Products;
59 | sourceTree = "";
60 | };
61 | 71921B7420FD892400797610 /* CollectionViewPagingEnable */ = {
62 | isa = PBXGroup;
63 | children = (
64 | 71921B7520FD892400797610 /* AppDelegate.h */,
65 | 71921B7620FD892400797610 /* AppDelegate.m */,
66 | 71921B7820FD892400797610 /* ViewController.h */,
67 | 71921B7920FD892400797610 /* ViewController.m */,
68 | 71921B8B20FD89B200797610 /* PagingEnableLayout.h */,
69 | 71921B8C20FD89B200797610 /* PagingEnableLayout.m */,
70 | 71921B7B20FD892400797610 /* Main.storyboard */,
71 | 71921B7E20FD893000797610 /* Assets.xcassets */,
72 | 71921B8020FD893000797610 /* LaunchScreen.storyboard */,
73 | 71921B8320FD893000797610 /* Info.plist */,
74 | 71921B8420FD893000797610 /* main.m */,
75 | );
76 | path = CollectionViewPagingEnable;
77 | sourceTree = "";
78 | };
79 | /* End PBXGroup section */
80 |
81 | /* Begin PBXNativeTarget section */
82 | 71921B7120FD892400797610 /* CollectionViewPagingEnable */ = {
83 | isa = PBXNativeTarget;
84 | buildConfigurationList = 71921B8820FD893000797610 /* Build configuration list for PBXNativeTarget "CollectionViewPagingEnable" */;
85 | buildPhases = (
86 | 71921B6E20FD892400797610 /* Sources */,
87 | 71921B6F20FD892400797610 /* Frameworks */,
88 | 71921B7020FD892400797610 /* Resources */,
89 | );
90 | buildRules = (
91 | );
92 | dependencies = (
93 | );
94 | name = CollectionViewPagingEnable;
95 | productName = CollectionViewPagingEnable;
96 | productReference = 71921B7220FD892400797610 /* CollectionViewPagingEnable.app */;
97 | productType = "com.apple.product-type.application";
98 | };
99 | /* End PBXNativeTarget section */
100 |
101 | /* Begin PBXProject section */
102 | 71921B6A20FD892400797610 /* Project object */ = {
103 | isa = PBXProject;
104 | attributes = {
105 | LastUpgradeCheck = 0930;
106 | ORGANIZATIONNAME = com.collectionView.pagingEnable;
107 | TargetAttributes = {
108 | 71921B7120FD892400797610 = {
109 | CreatedOnToolsVersion = 9.3;
110 | };
111 | };
112 | };
113 | buildConfigurationList = 71921B6D20FD892400797610 /* Build configuration list for PBXProject "CollectionViewPagingEnable" */;
114 | compatibilityVersion = "Xcode 9.3";
115 | developmentRegion = en;
116 | hasScannedForEncodings = 0;
117 | knownRegions = (
118 | en,
119 | Base,
120 | );
121 | mainGroup = 71921B6920FD892400797610;
122 | productRefGroup = 71921B7320FD892400797610 /* Products */;
123 | projectDirPath = "";
124 | projectRoot = "";
125 | targets = (
126 | 71921B7120FD892400797610 /* CollectionViewPagingEnable */,
127 | );
128 | };
129 | /* End PBXProject section */
130 |
131 | /* Begin PBXResourcesBuildPhase section */
132 | 71921B7020FD892400797610 /* Resources */ = {
133 | isa = PBXResourcesBuildPhase;
134 | buildActionMask = 2147483647;
135 | files = (
136 | 71921B8220FD893000797610 /* LaunchScreen.storyboard in Resources */,
137 | 71921B7F20FD893000797610 /* Assets.xcassets in Resources */,
138 | 71921B7D20FD892400797610 /* Main.storyboard in Resources */,
139 | );
140 | runOnlyForDeploymentPostprocessing = 0;
141 | };
142 | /* End PBXResourcesBuildPhase section */
143 |
144 | /* Begin PBXSourcesBuildPhase section */
145 | 71921B6E20FD892400797610 /* Sources */ = {
146 | isa = PBXSourcesBuildPhase;
147 | buildActionMask = 2147483647;
148 | files = (
149 | 71921B7A20FD892400797610 /* ViewController.m in Sources */,
150 | 71921B8520FD893000797610 /* main.m in Sources */,
151 | 71921B8D20FD89B200797610 /* PagingEnableLayout.m in Sources */,
152 | 71921B7720FD892400797610 /* AppDelegate.m in Sources */,
153 | );
154 | runOnlyForDeploymentPostprocessing = 0;
155 | };
156 | /* End PBXSourcesBuildPhase section */
157 |
158 | /* Begin PBXVariantGroup section */
159 | 71921B7B20FD892400797610 /* Main.storyboard */ = {
160 | isa = PBXVariantGroup;
161 | children = (
162 | 71921B7C20FD892400797610 /* Base */,
163 | );
164 | name = Main.storyboard;
165 | sourceTree = "";
166 | };
167 | 71921B8020FD893000797610 /* LaunchScreen.storyboard */ = {
168 | isa = PBXVariantGroup;
169 | children = (
170 | 71921B8120FD893000797610 /* Base */,
171 | );
172 | name = LaunchScreen.storyboard;
173 | sourceTree = "";
174 | };
175 | /* End PBXVariantGroup section */
176 |
177 | /* Begin XCBuildConfiguration section */
178 | 71921B8620FD893000797610 /* Debug */ = {
179 | isa = XCBuildConfiguration;
180 | buildSettings = {
181 | ALWAYS_SEARCH_USER_PATHS = NO;
182 | CLANG_ANALYZER_NONNULL = YES;
183 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
184 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
185 | CLANG_CXX_LIBRARY = "libc++";
186 | CLANG_ENABLE_MODULES = YES;
187 | CLANG_ENABLE_OBJC_ARC = YES;
188 | CLANG_ENABLE_OBJC_WEAK = YES;
189 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
190 | CLANG_WARN_BOOL_CONVERSION = YES;
191 | CLANG_WARN_COMMA = YES;
192 | CLANG_WARN_CONSTANT_CONVERSION = YES;
193 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
194 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
195 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
196 | CLANG_WARN_EMPTY_BODY = YES;
197 | CLANG_WARN_ENUM_CONVERSION = YES;
198 | CLANG_WARN_INFINITE_RECURSION = YES;
199 | CLANG_WARN_INT_CONVERSION = YES;
200 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
201 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
202 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
203 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
204 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
205 | CLANG_WARN_STRICT_PROTOTYPES = YES;
206 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
207 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
208 | CLANG_WARN_UNREACHABLE_CODE = YES;
209 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
210 | CODE_SIGN_IDENTITY = "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 = gnu11;
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 = 11.3;
230 | MTL_ENABLE_DEBUG_INFO = YES;
231 | ONLY_ACTIVE_ARCH = YES;
232 | SDKROOT = iphoneos;
233 | };
234 | name = Debug;
235 | };
236 | 71921B8720FD893000797610 /* Release */ = {
237 | isa = XCBuildConfiguration;
238 | buildSettings = {
239 | ALWAYS_SEARCH_USER_PATHS = NO;
240 | CLANG_ANALYZER_NONNULL = YES;
241 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
242 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
243 | CLANG_CXX_LIBRARY = "libc++";
244 | CLANG_ENABLE_MODULES = YES;
245 | CLANG_ENABLE_OBJC_ARC = YES;
246 | CLANG_ENABLE_OBJC_WEAK = YES;
247 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
248 | CLANG_WARN_BOOL_CONVERSION = YES;
249 | CLANG_WARN_COMMA = YES;
250 | CLANG_WARN_CONSTANT_CONVERSION = YES;
251 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
252 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
253 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
254 | CLANG_WARN_EMPTY_BODY = YES;
255 | CLANG_WARN_ENUM_CONVERSION = YES;
256 | CLANG_WARN_INFINITE_RECURSION = YES;
257 | CLANG_WARN_INT_CONVERSION = YES;
258 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
259 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
260 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
261 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
262 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
263 | CLANG_WARN_STRICT_PROTOTYPES = YES;
264 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
265 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
266 | CLANG_WARN_UNREACHABLE_CODE = YES;
267 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
268 | CODE_SIGN_IDENTITY = "iPhone Developer";
269 | COPY_PHASE_STRIP = NO;
270 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
271 | ENABLE_NS_ASSERTIONS = NO;
272 | ENABLE_STRICT_OBJC_MSGSEND = YES;
273 | GCC_C_LANGUAGE_STANDARD = gnu11;
274 | GCC_NO_COMMON_BLOCKS = YES;
275 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
276 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
277 | GCC_WARN_UNDECLARED_SELECTOR = YES;
278 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
279 | GCC_WARN_UNUSED_FUNCTION = YES;
280 | GCC_WARN_UNUSED_VARIABLE = YES;
281 | IPHONEOS_DEPLOYMENT_TARGET = 11.3;
282 | MTL_ENABLE_DEBUG_INFO = NO;
283 | SDKROOT = iphoneos;
284 | VALIDATE_PRODUCT = YES;
285 | };
286 | name = Release;
287 | };
288 | 71921B8920FD893000797610 /* Debug */ = {
289 | isa = XCBuildConfiguration;
290 | buildSettings = {
291 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
292 | CODE_SIGN_STYLE = Automatic;
293 | DEVELOPMENT_TEAM = 7P672RMZAA;
294 | INFOPLIST_FILE = CollectionViewPagingEnable/Info.plist;
295 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
296 | LD_RUNPATH_SEARCH_PATHS = (
297 | "$(inherited)",
298 | "@executable_path/Frameworks",
299 | );
300 | PRODUCT_BUNDLE_IDENTIFIER = Daniel.CollectionViewPagingEnable;
301 | PRODUCT_NAME = "$(TARGET_NAME)";
302 | TARGETED_DEVICE_FAMILY = "1,2";
303 | };
304 | name = Debug;
305 | };
306 | 71921B8A20FD893000797610 /* Release */ = {
307 | isa = XCBuildConfiguration;
308 | buildSettings = {
309 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
310 | CODE_SIGN_STYLE = Automatic;
311 | DEVELOPMENT_TEAM = 7P672RMZAA;
312 | INFOPLIST_FILE = CollectionViewPagingEnable/Info.plist;
313 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
314 | LD_RUNPATH_SEARCH_PATHS = (
315 | "$(inherited)",
316 | "@executable_path/Frameworks",
317 | );
318 | PRODUCT_BUNDLE_IDENTIFIER = Daniel.CollectionViewPagingEnable;
319 | PRODUCT_NAME = "$(TARGET_NAME)";
320 | TARGETED_DEVICE_FAMILY = "1,2";
321 | };
322 | name = Release;
323 | };
324 | /* End XCBuildConfiguration section */
325 |
326 | /* Begin XCConfigurationList section */
327 | 71921B6D20FD892400797610 /* Build configuration list for PBXProject "CollectionViewPagingEnable" */ = {
328 | isa = XCConfigurationList;
329 | buildConfigurations = (
330 | 71921B8620FD893000797610 /* Debug */,
331 | 71921B8720FD893000797610 /* Release */,
332 | );
333 | defaultConfigurationIsVisible = 0;
334 | defaultConfigurationName = Release;
335 | };
336 | 71921B8820FD893000797610 /* Build configuration list for PBXNativeTarget "CollectionViewPagingEnable" */ = {
337 | isa = XCConfigurationList;
338 | buildConfigurations = (
339 | 71921B8920FD893000797610 /* Debug */,
340 | 71921B8A20FD893000797610 /* Release */,
341 | );
342 | defaultConfigurationIsVisible = 0;
343 | defaultConfigurationName = Release;
344 | };
345 | /* End XCConfigurationList section */
346 | };
347 | rootObject = 71921B6A20FD892400797610 /* Project object */;
348 | }
349 |
--------------------------------------------------------------------------------