├── CollectionViewDemo
├── en.lproj
│ └── InfoPlist.strings
├── ViewController.h
├── AppDelegate.h
├── main.m
├── CollectionViewDemo-Prefix.pch
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── CollectionViewDemo-Info.plist
├── AppDelegate.m
├── ViewController.m
└── Base.lproj
│ └── Main.storyboard
├── CollectionViewDemoTests
├── en.lproj
│ └── InfoPlist.strings
├── CollectionViewDemoTests-Info.plist
└── CollectionViewDemoTests.m
├── CollectionViewDemo.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ └── raheelsadiq.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
├── xcuserdata
│ └── raheelsadiq.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── CollectionViewDemo.xcscheme
└── project.pbxproj
└── README.md
/CollectionViewDemo/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/CollectionViewDemoTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/CollectionViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CollectionViewDemo.xcodeproj/project.xcworkspace/xcuserdata/raheelsadiq.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raheelsadiq/UICollectionView-horizontal-paging-with-3-items/HEAD/CollectionViewDemo.xcodeproj/project.xcworkspace/xcuserdata/raheelsadiq.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/CollectionViewDemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // CollectionViewDemo
4 | //
5 | // Created by Raheel Sadiq on 01/02/2015.
6 | // Copyright (c) 2015 IncubaSys. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # UICollectionView-horizontal-paging-with-3-items
2 |
3 | It’s the solution of the [Question](http://stackoverflow.com/questions/23363197/uicollectionview-horizontal-paging-with-3-items) on Stack Overflow
4 |
5 | It’s not a library or control, but if you have a similar issue, you may use this solution as you like.
6 |
7 | 
8 |
--------------------------------------------------------------------------------
/CollectionViewDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // CollectionViewDemo
4 | //
5 | // Created by Raheel Sadiq on 01/02/2015.
6 | // Copyright (c) 2015 IncubaSys. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/CollectionViewDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // CollectionViewDemo
4 | //
5 | // Created by Raheel Sadiq on 01/02/2015.
6 | // Copyright (c) 2015 IncubaSys. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "AppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/CollectionViewDemo/CollectionViewDemo-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #import
8 |
9 | #ifndef __IPHONE_5_0
10 | #warning "This project uses features only available in iOS SDK 5.0 and later."
11 | #endif
12 |
13 | #ifdef __OBJC__
14 | #import
15 | #import
16 | #endif
17 |
--------------------------------------------------------------------------------
/CollectionViewDemo/Images.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" : "40x40",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "60x60",
16 | "scale" : "2x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/CollectionViewDemo/Images.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "extent" : "full-screen",
7 | "minimum-system-version" : "7.0",
8 | "scale" : "2x"
9 | },
10 | {
11 | "orientation" : "portrait",
12 | "idiom" : "iphone",
13 | "subtype" : "retina4",
14 | "extent" : "full-screen",
15 | "minimum-system-version" : "7.0",
16 | "scale" : "2x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/CollectionViewDemo.xcodeproj/xcuserdata/raheelsadiq.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | CollectionViewDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 9FC5DE761A7E00CB00818CC5
16 |
17 | primary
18 |
19 |
20 | 9FC5DE971A7E00CB00818CC5
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/CollectionViewDemoTests/CollectionViewDemoTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | com.incubasys.${PRODUCT_NAME:rfc1034identifier}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | BNDL
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleSignature
18 | ????
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/CollectionViewDemoTests/CollectionViewDemoTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // CollectionViewDemoTests.m
3 | // CollectionViewDemoTests
4 | //
5 | // Created by Raheel Sadiq on 01/02/2015.
6 | // Copyright (c) 2015 IncubaSys. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface CollectionViewDemoTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation CollectionViewDemoTests
16 |
17 | - (void)setUp
18 | {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown
24 | {
25 | // Put teardown code here. This method is called after the invocation of each test method in the class.
26 | [super tearDown];
27 | }
28 |
29 | - (void)testExample
30 | {
31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32 | }
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/CollectionViewDemo/CollectionViewDemo-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | com.incubasys.${PRODUCT_NAME:rfc1034identifier}
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ${PRODUCT_NAME}
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1.0
25 | LSRequiresIPhoneOS
26 |
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/CollectionViewDemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // CollectionViewDemo
4 | //
5 | // Created by Raheel Sadiq on 01/02/2015.
6 | // Copyright (c) 2015 IncubaSys. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @implementation AppDelegate
12 |
13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14 | {
15 | // Override point for customization after application launch.
16 | return YES;
17 | }
18 |
19 | - (void)applicationWillResignActive:(UIApplication *)application
20 | {
21 | // 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.
22 | // 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.
23 | }
24 |
25 | - (void)applicationDidEnterBackground:(UIApplication *)application
26 | {
27 | // 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.
28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
29 | }
30 |
31 | - (void)applicationWillEnterForeground:(UIApplication *)application
32 | {
33 | // 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.
34 | }
35 |
36 | - (void)applicationDidBecomeActive:(UIApplication *)application
37 | {
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 | {
43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
44 | }
45 |
46 | @end
47 |
--------------------------------------------------------------------------------
/CollectionViewDemo.xcodeproj/xcuserdata/raheelsadiq.xcuserdatad/xcschemes/CollectionViewDemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
61 |
62 |
68 |
69 |
70 |
71 |
72 |
73 |
79 |
80 |
86 |
87 |
88 |
89 |
91 |
92 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/CollectionViewDemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // CollectionViewDemo
4 | //
5 | // Created by Raheel Sadiq on 01/02/2015.
6 | // Copyright (c) 2015 IncubaSys. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 |
11 | @interface ViewController (){
12 | BOOL isfirstTimeTransform;
13 | }
14 |
15 | @property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
16 |
17 |
18 | @end
19 |
20 | @implementation ViewController
21 |
22 | #define TRANSFORM_CELL_VALUE CGAffineTransformMakeScale(0.8, 0.8)
23 | #define ANIMATION_SPEED 0.2
24 |
25 | - (void)viewDidLoad
26 | {
27 | [super viewDidLoad];
28 | // Do any additional setup after loading the view, typically from a nib.
29 | isfirstTimeTransform = YES;
30 | }
31 |
32 | - (void)didReceiveMemoryWarning
33 | {
34 | [super didReceiveMemoryWarning];
35 | // Dispose of any resources that can be recreated.
36 | }
37 |
38 | #pragma mark - CollectionView Data Source
39 |
40 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
41 | return 15;
42 | }
43 |
44 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
45 | UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"CollectionViewCell" forIndexPath:indexPath];
46 |
47 | if (indexPath.row == 0 && isfirstTimeTransform) { // make a bool and set YES initially, this check will prevent fist load transform
48 | isfirstTimeTransform = NO;
49 | }else{
50 | cell.transform = TRANSFORM_CELL_VALUE; // the new cell will always be transform and without animation
51 | }
52 |
53 | return cell;
54 | }
55 |
56 | - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset
57 | {
58 |
59 | float pageWidth = 200 + 30; // width + space
60 |
61 | float currentOffset = scrollView.contentOffset.x;
62 | float targetOffset = targetContentOffset->x;
63 | float newTargetOffset = 0;
64 |
65 | if (targetOffset > currentOffset)
66 | newTargetOffset = ceilf(currentOffset / pageWidth) * pageWidth;
67 | else
68 | newTargetOffset = floorf(currentOffset / pageWidth) * pageWidth;
69 |
70 | if (newTargetOffset < 0)
71 | newTargetOffset = 0;
72 | else if (newTargetOffset > scrollView.contentSize.width)
73 | newTargetOffset = scrollView.contentSize.width;
74 |
75 | targetContentOffset->x = currentOffset;
76 | [scrollView setContentOffset:CGPointMake(newTargetOffset, 0) animated:YES];
77 |
78 | int index = newTargetOffset / pageWidth;
79 |
80 | if (index == 0) { // If first index
81 | UICollectionViewCell *cell = [self.collectionView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:index inSection:0]];
82 |
83 | [UIView animateWithDuration:ANIMATION_SPEED animations:^{
84 | cell.transform = CGAffineTransformIdentity;
85 | }];
86 | cell = [self.collectionView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:index + 1 inSection:0]];
87 | [UIView animateWithDuration:ANIMATION_SPEED animations:^{
88 | cell.transform = TRANSFORM_CELL_VALUE;
89 | }];
90 | }else{
91 | UICollectionViewCell *cell = [self.collectionView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:index inSection:0]];
92 | [UIView animateWithDuration:ANIMATION_SPEED animations:^{
93 | cell.transform = CGAffineTransformIdentity;
94 | }];
95 |
96 | index --; // left
97 | cell = [self.collectionView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:index inSection:0]];
98 | [UIView animateWithDuration:ANIMATION_SPEED animations:^{
99 | cell.transform = TRANSFORM_CELL_VALUE;
100 | }];
101 |
102 | index ++;
103 | index ++; // right
104 | cell = [self.collectionView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:index inSection:0]];
105 | [UIView animateWithDuration:ANIMATION_SPEED animations:^{
106 | cell.transform = TRANSFORM_CELL_VALUE;
107 | }];
108 | }
109 | }
110 |
111 |
112 | @end
113 |
--------------------------------------------------------------------------------
/CollectionViewDemo/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 |
--------------------------------------------------------------------------------
/CollectionViewDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 9FC5DE7B1A7E00CB00818CC5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FC5DE7A1A7E00CB00818CC5 /* Foundation.framework */; };
11 | 9FC5DE7D1A7E00CB00818CC5 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FC5DE7C1A7E00CB00818CC5 /* CoreGraphics.framework */; };
12 | 9FC5DE7F1A7E00CB00818CC5 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FC5DE7E1A7E00CB00818CC5 /* UIKit.framework */; };
13 | 9FC5DE851A7E00CB00818CC5 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9FC5DE831A7E00CB00818CC5 /* InfoPlist.strings */; };
14 | 9FC5DE871A7E00CB00818CC5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FC5DE861A7E00CB00818CC5 /* main.m */; };
15 | 9FC5DE8B1A7E00CB00818CC5 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FC5DE8A1A7E00CB00818CC5 /* AppDelegate.m */; };
16 | 9FC5DE8E1A7E00CB00818CC5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9FC5DE8C1A7E00CB00818CC5 /* Main.storyboard */; };
17 | 9FC5DE911A7E00CB00818CC5 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FC5DE901A7E00CB00818CC5 /* ViewController.m */; };
18 | 9FC5DE931A7E00CB00818CC5 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9FC5DE921A7E00CB00818CC5 /* Images.xcassets */; };
19 | 9FC5DE9A1A7E00CB00818CC5 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FC5DE991A7E00CB00818CC5 /* XCTest.framework */; };
20 | 9FC5DE9B1A7E00CB00818CC5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FC5DE7A1A7E00CB00818CC5 /* Foundation.framework */; };
21 | 9FC5DE9C1A7E00CB00818CC5 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FC5DE7E1A7E00CB00818CC5 /* UIKit.framework */; };
22 | 9FC5DEA41A7E00CB00818CC5 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9FC5DEA21A7E00CB00818CC5 /* InfoPlist.strings */; };
23 | 9FC5DEA61A7E00CB00818CC5 /* CollectionViewDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FC5DEA51A7E00CB00818CC5 /* CollectionViewDemoTests.m */; };
24 | /* End PBXBuildFile section */
25 |
26 | /* Begin PBXContainerItemProxy section */
27 | 9FC5DE9D1A7E00CB00818CC5 /* PBXContainerItemProxy */ = {
28 | isa = PBXContainerItemProxy;
29 | containerPortal = 9FC5DE6F1A7E00CB00818CC5 /* Project object */;
30 | proxyType = 1;
31 | remoteGlobalIDString = 9FC5DE761A7E00CB00818CC5;
32 | remoteInfo = CollectionViewDemo;
33 | };
34 | /* End PBXContainerItemProxy section */
35 |
36 | /* Begin PBXFileReference section */
37 | 9FC5DE771A7E00CB00818CC5 /* CollectionViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CollectionViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
38 | 9FC5DE7A1A7E00CB00818CC5 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
39 | 9FC5DE7C1A7E00CB00818CC5 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
40 | 9FC5DE7E1A7E00CB00818CC5 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
41 | 9FC5DE821A7E00CB00818CC5 /* CollectionViewDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CollectionViewDemo-Info.plist"; sourceTree = ""; };
42 | 9FC5DE841A7E00CB00818CC5 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
43 | 9FC5DE861A7E00CB00818CC5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
44 | 9FC5DE881A7E00CB00818CC5 /* CollectionViewDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CollectionViewDemo-Prefix.pch"; sourceTree = ""; };
45 | 9FC5DE891A7E00CB00818CC5 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
46 | 9FC5DE8A1A7E00CB00818CC5 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
47 | 9FC5DE8D1A7E00CB00818CC5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
48 | 9FC5DE8F1A7E00CB00818CC5 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
49 | 9FC5DE901A7E00CB00818CC5 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
50 | 9FC5DE921A7E00CB00818CC5 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
51 | 9FC5DE981A7E00CB00818CC5 /* CollectionViewDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CollectionViewDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
52 | 9FC5DE991A7E00CB00818CC5 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
53 | 9FC5DEA11A7E00CB00818CC5 /* CollectionViewDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CollectionViewDemoTests-Info.plist"; sourceTree = ""; };
54 | 9FC5DEA31A7E00CB00818CC5 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
55 | 9FC5DEA51A7E00CB00818CC5 /* CollectionViewDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CollectionViewDemoTests.m; sourceTree = ""; };
56 | /* End PBXFileReference section */
57 |
58 | /* Begin PBXFrameworksBuildPhase section */
59 | 9FC5DE741A7E00CB00818CC5 /* Frameworks */ = {
60 | isa = PBXFrameworksBuildPhase;
61 | buildActionMask = 2147483647;
62 | files = (
63 | 9FC5DE7D1A7E00CB00818CC5 /* CoreGraphics.framework in Frameworks */,
64 | 9FC5DE7F1A7E00CB00818CC5 /* UIKit.framework in Frameworks */,
65 | 9FC5DE7B1A7E00CB00818CC5 /* Foundation.framework in Frameworks */,
66 | );
67 | runOnlyForDeploymentPostprocessing = 0;
68 | };
69 | 9FC5DE951A7E00CB00818CC5 /* Frameworks */ = {
70 | isa = PBXFrameworksBuildPhase;
71 | buildActionMask = 2147483647;
72 | files = (
73 | 9FC5DE9A1A7E00CB00818CC5 /* XCTest.framework in Frameworks */,
74 | 9FC5DE9C1A7E00CB00818CC5 /* UIKit.framework in Frameworks */,
75 | 9FC5DE9B1A7E00CB00818CC5 /* Foundation.framework in Frameworks */,
76 | );
77 | runOnlyForDeploymentPostprocessing = 0;
78 | };
79 | /* End PBXFrameworksBuildPhase section */
80 |
81 | /* Begin PBXGroup section */
82 | 9FC5DE6E1A7E00CB00818CC5 = {
83 | isa = PBXGroup;
84 | children = (
85 | 9FC5DE801A7E00CB00818CC5 /* CollectionViewDemo */,
86 | 9FC5DE9F1A7E00CB00818CC5 /* CollectionViewDemoTests */,
87 | 9FC5DE791A7E00CB00818CC5 /* Frameworks */,
88 | 9FC5DE781A7E00CB00818CC5 /* Products */,
89 | );
90 | sourceTree = "";
91 | };
92 | 9FC5DE781A7E00CB00818CC5 /* Products */ = {
93 | isa = PBXGroup;
94 | children = (
95 | 9FC5DE771A7E00CB00818CC5 /* CollectionViewDemo.app */,
96 | 9FC5DE981A7E00CB00818CC5 /* CollectionViewDemoTests.xctest */,
97 | );
98 | name = Products;
99 | sourceTree = "";
100 | };
101 | 9FC5DE791A7E00CB00818CC5 /* Frameworks */ = {
102 | isa = PBXGroup;
103 | children = (
104 | 9FC5DE7A1A7E00CB00818CC5 /* Foundation.framework */,
105 | 9FC5DE7C1A7E00CB00818CC5 /* CoreGraphics.framework */,
106 | 9FC5DE7E1A7E00CB00818CC5 /* UIKit.framework */,
107 | 9FC5DE991A7E00CB00818CC5 /* XCTest.framework */,
108 | );
109 | name = Frameworks;
110 | sourceTree = "";
111 | };
112 | 9FC5DE801A7E00CB00818CC5 /* CollectionViewDemo */ = {
113 | isa = PBXGroup;
114 | children = (
115 | 9FC5DE891A7E00CB00818CC5 /* AppDelegate.h */,
116 | 9FC5DE8A1A7E00CB00818CC5 /* AppDelegate.m */,
117 | 9FC5DE8C1A7E00CB00818CC5 /* Main.storyboard */,
118 | 9FC5DE8F1A7E00CB00818CC5 /* ViewController.h */,
119 | 9FC5DE901A7E00CB00818CC5 /* ViewController.m */,
120 | 9FC5DE921A7E00CB00818CC5 /* Images.xcassets */,
121 | 9FC5DE811A7E00CB00818CC5 /* Supporting Files */,
122 | );
123 | path = CollectionViewDemo;
124 | sourceTree = "";
125 | };
126 | 9FC5DE811A7E00CB00818CC5 /* Supporting Files */ = {
127 | isa = PBXGroup;
128 | children = (
129 | 9FC5DE821A7E00CB00818CC5 /* CollectionViewDemo-Info.plist */,
130 | 9FC5DE831A7E00CB00818CC5 /* InfoPlist.strings */,
131 | 9FC5DE861A7E00CB00818CC5 /* main.m */,
132 | 9FC5DE881A7E00CB00818CC5 /* CollectionViewDemo-Prefix.pch */,
133 | );
134 | name = "Supporting Files";
135 | sourceTree = "";
136 | };
137 | 9FC5DE9F1A7E00CB00818CC5 /* CollectionViewDemoTests */ = {
138 | isa = PBXGroup;
139 | children = (
140 | 9FC5DEA51A7E00CB00818CC5 /* CollectionViewDemoTests.m */,
141 | 9FC5DEA01A7E00CB00818CC5 /* Supporting Files */,
142 | );
143 | path = CollectionViewDemoTests;
144 | sourceTree = "";
145 | };
146 | 9FC5DEA01A7E00CB00818CC5 /* Supporting Files */ = {
147 | isa = PBXGroup;
148 | children = (
149 | 9FC5DEA11A7E00CB00818CC5 /* CollectionViewDemoTests-Info.plist */,
150 | 9FC5DEA21A7E00CB00818CC5 /* InfoPlist.strings */,
151 | );
152 | name = "Supporting Files";
153 | sourceTree = "";
154 | };
155 | /* End PBXGroup section */
156 |
157 | /* Begin PBXNativeTarget section */
158 | 9FC5DE761A7E00CB00818CC5 /* CollectionViewDemo */ = {
159 | isa = PBXNativeTarget;
160 | buildConfigurationList = 9FC5DEA91A7E00CB00818CC5 /* Build configuration list for PBXNativeTarget "CollectionViewDemo" */;
161 | buildPhases = (
162 | 9FC5DE731A7E00CB00818CC5 /* Sources */,
163 | 9FC5DE741A7E00CB00818CC5 /* Frameworks */,
164 | 9FC5DE751A7E00CB00818CC5 /* Resources */,
165 | );
166 | buildRules = (
167 | );
168 | dependencies = (
169 | );
170 | name = CollectionViewDemo;
171 | productName = CollectionViewDemo;
172 | productReference = 9FC5DE771A7E00CB00818CC5 /* CollectionViewDemo.app */;
173 | productType = "com.apple.product-type.application";
174 | };
175 | 9FC5DE971A7E00CB00818CC5 /* CollectionViewDemoTests */ = {
176 | isa = PBXNativeTarget;
177 | buildConfigurationList = 9FC5DEAC1A7E00CB00818CC5 /* Build configuration list for PBXNativeTarget "CollectionViewDemoTests" */;
178 | buildPhases = (
179 | 9FC5DE941A7E00CB00818CC5 /* Sources */,
180 | 9FC5DE951A7E00CB00818CC5 /* Frameworks */,
181 | 9FC5DE961A7E00CB00818CC5 /* Resources */,
182 | );
183 | buildRules = (
184 | );
185 | dependencies = (
186 | 9FC5DE9E1A7E00CB00818CC5 /* PBXTargetDependency */,
187 | );
188 | name = CollectionViewDemoTests;
189 | productName = CollectionViewDemoTests;
190 | productReference = 9FC5DE981A7E00CB00818CC5 /* CollectionViewDemoTests.xctest */;
191 | productType = "com.apple.product-type.bundle.unit-test";
192 | };
193 | /* End PBXNativeTarget section */
194 |
195 | /* Begin PBXProject section */
196 | 9FC5DE6F1A7E00CB00818CC5 /* Project object */ = {
197 | isa = PBXProject;
198 | attributes = {
199 | LastUpgradeCheck = 0510;
200 | ORGANIZATIONNAME = IncubaSys;
201 | TargetAttributes = {
202 | 9FC5DE971A7E00CB00818CC5 = {
203 | TestTargetID = 9FC5DE761A7E00CB00818CC5;
204 | };
205 | };
206 | };
207 | buildConfigurationList = 9FC5DE721A7E00CB00818CC5 /* Build configuration list for PBXProject "CollectionViewDemo" */;
208 | compatibilityVersion = "Xcode 3.2";
209 | developmentRegion = English;
210 | hasScannedForEncodings = 0;
211 | knownRegions = (
212 | en,
213 | Base,
214 | );
215 | mainGroup = 9FC5DE6E1A7E00CB00818CC5;
216 | productRefGroup = 9FC5DE781A7E00CB00818CC5 /* Products */;
217 | projectDirPath = "";
218 | projectRoot = "";
219 | targets = (
220 | 9FC5DE761A7E00CB00818CC5 /* CollectionViewDemo */,
221 | 9FC5DE971A7E00CB00818CC5 /* CollectionViewDemoTests */,
222 | );
223 | };
224 | /* End PBXProject section */
225 |
226 | /* Begin PBXResourcesBuildPhase section */
227 | 9FC5DE751A7E00CB00818CC5 /* Resources */ = {
228 | isa = PBXResourcesBuildPhase;
229 | buildActionMask = 2147483647;
230 | files = (
231 | 9FC5DE931A7E00CB00818CC5 /* Images.xcassets in Resources */,
232 | 9FC5DE851A7E00CB00818CC5 /* InfoPlist.strings in Resources */,
233 | 9FC5DE8E1A7E00CB00818CC5 /* Main.storyboard in Resources */,
234 | );
235 | runOnlyForDeploymentPostprocessing = 0;
236 | };
237 | 9FC5DE961A7E00CB00818CC5 /* Resources */ = {
238 | isa = PBXResourcesBuildPhase;
239 | buildActionMask = 2147483647;
240 | files = (
241 | 9FC5DEA41A7E00CB00818CC5 /* InfoPlist.strings in Resources */,
242 | );
243 | runOnlyForDeploymentPostprocessing = 0;
244 | };
245 | /* End PBXResourcesBuildPhase section */
246 |
247 | /* Begin PBXSourcesBuildPhase section */
248 | 9FC5DE731A7E00CB00818CC5 /* Sources */ = {
249 | isa = PBXSourcesBuildPhase;
250 | buildActionMask = 2147483647;
251 | files = (
252 | 9FC5DE911A7E00CB00818CC5 /* ViewController.m in Sources */,
253 | 9FC5DE8B1A7E00CB00818CC5 /* AppDelegate.m in Sources */,
254 | 9FC5DE871A7E00CB00818CC5 /* main.m in Sources */,
255 | );
256 | runOnlyForDeploymentPostprocessing = 0;
257 | };
258 | 9FC5DE941A7E00CB00818CC5 /* Sources */ = {
259 | isa = PBXSourcesBuildPhase;
260 | buildActionMask = 2147483647;
261 | files = (
262 | 9FC5DEA61A7E00CB00818CC5 /* CollectionViewDemoTests.m in Sources */,
263 | );
264 | runOnlyForDeploymentPostprocessing = 0;
265 | };
266 | /* End PBXSourcesBuildPhase section */
267 |
268 | /* Begin PBXTargetDependency section */
269 | 9FC5DE9E1A7E00CB00818CC5 /* PBXTargetDependency */ = {
270 | isa = PBXTargetDependency;
271 | target = 9FC5DE761A7E00CB00818CC5 /* CollectionViewDemo */;
272 | targetProxy = 9FC5DE9D1A7E00CB00818CC5 /* PBXContainerItemProxy */;
273 | };
274 | /* End PBXTargetDependency section */
275 |
276 | /* Begin PBXVariantGroup section */
277 | 9FC5DE831A7E00CB00818CC5 /* InfoPlist.strings */ = {
278 | isa = PBXVariantGroup;
279 | children = (
280 | 9FC5DE841A7E00CB00818CC5 /* en */,
281 | );
282 | name = InfoPlist.strings;
283 | sourceTree = "";
284 | };
285 | 9FC5DE8C1A7E00CB00818CC5 /* Main.storyboard */ = {
286 | isa = PBXVariantGroup;
287 | children = (
288 | 9FC5DE8D1A7E00CB00818CC5 /* Base */,
289 | );
290 | name = Main.storyboard;
291 | sourceTree = "";
292 | };
293 | 9FC5DEA21A7E00CB00818CC5 /* InfoPlist.strings */ = {
294 | isa = PBXVariantGroup;
295 | children = (
296 | 9FC5DEA31A7E00CB00818CC5 /* en */,
297 | );
298 | name = InfoPlist.strings;
299 | sourceTree = "";
300 | };
301 | /* End PBXVariantGroup section */
302 |
303 | /* Begin XCBuildConfiguration section */
304 | 9FC5DEA71A7E00CB00818CC5 /* Debug */ = {
305 | isa = XCBuildConfiguration;
306 | buildSettings = {
307 | ALWAYS_SEARCH_USER_PATHS = NO;
308 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
309 | CLANG_CXX_LIBRARY = "libc++";
310 | CLANG_ENABLE_MODULES = YES;
311 | CLANG_ENABLE_OBJC_ARC = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_CONSTANT_CONVERSION = YES;
314 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
315 | CLANG_WARN_EMPTY_BODY = YES;
316 | CLANG_WARN_ENUM_CONVERSION = YES;
317 | CLANG_WARN_INT_CONVERSION = YES;
318 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
319 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
320 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
321 | COPY_PHASE_STRIP = NO;
322 | GCC_C_LANGUAGE_STANDARD = gnu99;
323 | GCC_DYNAMIC_NO_PIC = NO;
324 | GCC_OPTIMIZATION_LEVEL = 0;
325 | GCC_PREPROCESSOR_DEFINITIONS = (
326 | "DEBUG=1",
327 | "$(inherited)",
328 | );
329 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
330 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
331 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
332 | GCC_WARN_UNDECLARED_SELECTOR = YES;
333 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
334 | GCC_WARN_UNUSED_FUNCTION = YES;
335 | GCC_WARN_UNUSED_VARIABLE = YES;
336 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
337 | ONLY_ACTIVE_ARCH = YES;
338 | SDKROOT = iphoneos;
339 | };
340 | name = Debug;
341 | };
342 | 9FC5DEA81A7E00CB00818CC5 /* Release */ = {
343 | isa = XCBuildConfiguration;
344 | buildSettings = {
345 | ALWAYS_SEARCH_USER_PATHS = NO;
346 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
347 | CLANG_CXX_LIBRARY = "libc++";
348 | CLANG_ENABLE_MODULES = YES;
349 | CLANG_ENABLE_OBJC_ARC = YES;
350 | CLANG_WARN_BOOL_CONVERSION = YES;
351 | CLANG_WARN_CONSTANT_CONVERSION = YES;
352 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
353 | CLANG_WARN_EMPTY_BODY = YES;
354 | CLANG_WARN_ENUM_CONVERSION = YES;
355 | CLANG_WARN_INT_CONVERSION = YES;
356 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
357 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
358 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
359 | COPY_PHASE_STRIP = YES;
360 | ENABLE_NS_ASSERTIONS = NO;
361 | GCC_C_LANGUAGE_STANDARD = gnu99;
362 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
363 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
364 | GCC_WARN_UNDECLARED_SELECTOR = YES;
365 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
366 | GCC_WARN_UNUSED_FUNCTION = YES;
367 | GCC_WARN_UNUSED_VARIABLE = YES;
368 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
369 | SDKROOT = iphoneos;
370 | VALIDATE_PRODUCT = YES;
371 | };
372 | name = Release;
373 | };
374 | 9FC5DEAA1A7E00CB00818CC5 /* Debug */ = {
375 | isa = XCBuildConfiguration;
376 | buildSettings = {
377 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
378 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
379 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
380 | GCC_PREFIX_HEADER = "CollectionViewDemo/CollectionViewDemo-Prefix.pch";
381 | INFOPLIST_FILE = "CollectionViewDemo/CollectionViewDemo-Info.plist";
382 | PRODUCT_NAME = "$(TARGET_NAME)";
383 | WRAPPER_EXTENSION = app;
384 | };
385 | name = Debug;
386 | };
387 | 9FC5DEAB1A7E00CB00818CC5 /* Release */ = {
388 | isa = XCBuildConfiguration;
389 | buildSettings = {
390 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
391 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
392 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
393 | GCC_PREFIX_HEADER = "CollectionViewDemo/CollectionViewDemo-Prefix.pch";
394 | INFOPLIST_FILE = "CollectionViewDemo/CollectionViewDemo-Info.plist";
395 | PRODUCT_NAME = "$(TARGET_NAME)";
396 | WRAPPER_EXTENSION = app;
397 | };
398 | name = Release;
399 | };
400 | 9FC5DEAD1A7E00CB00818CC5 /* Debug */ = {
401 | isa = XCBuildConfiguration;
402 | buildSettings = {
403 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/CollectionViewDemo.app/CollectionViewDemo";
404 | FRAMEWORK_SEARCH_PATHS = (
405 | "$(SDKROOT)/Developer/Library/Frameworks",
406 | "$(inherited)",
407 | "$(DEVELOPER_FRAMEWORKS_DIR)",
408 | );
409 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
410 | GCC_PREFIX_HEADER = "CollectionViewDemo/CollectionViewDemo-Prefix.pch";
411 | GCC_PREPROCESSOR_DEFINITIONS = (
412 | "DEBUG=1",
413 | "$(inherited)",
414 | );
415 | INFOPLIST_FILE = "CollectionViewDemoTests/CollectionViewDemoTests-Info.plist";
416 | PRODUCT_NAME = "$(TARGET_NAME)";
417 | TEST_HOST = "$(BUNDLE_LOADER)";
418 | WRAPPER_EXTENSION = xctest;
419 | };
420 | name = Debug;
421 | };
422 | 9FC5DEAE1A7E00CB00818CC5 /* Release */ = {
423 | isa = XCBuildConfiguration;
424 | buildSettings = {
425 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/CollectionViewDemo.app/CollectionViewDemo";
426 | FRAMEWORK_SEARCH_PATHS = (
427 | "$(SDKROOT)/Developer/Library/Frameworks",
428 | "$(inherited)",
429 | "$(DEVELOPER_FRAMEWORKS_DIR)",
430 | );
431 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
432 | GCC_PREFIX_HEADER = "CollectionViewDemo/CollectionViewDemo-Prefix.pch";
433 | INFOPLIST_FILE = "CollectionViewDemoTests/CollectionViewDemoTests-Info.plist";
434 | PRODUCT_NAME = "$(TARGET_NAME)";
435 | TEST_HOST = "$(BUNDLE_LOADER)";
436 | WRAPPER_EXTENSION = xctest;
437 | };
438 | name = Release;
439 | };
440 | /* End XCBuildConfiguration section */
441 |
442 | /* Begin XCConfigurationList section */
443 | 9FC5DE721A7E00CB00818CC5 /* Build configuration list for PBXProject "CollectionViewDemo" */ = {
444 | isa = XCConfigurationList;
445 | buildConfigurations = (
446 | 9FC5DEA71A7E00CB00818CC5 /* Debug */,
447 | 9FC5DEA81A7E00CB00818CC5 /* Release */,
448 | );
449 | defaultConfigurationIsVisible = 0;
450 | defaultConfigurationName = Release;
451 | };
452 | 9FC5DEA91A7E00CB00818CC5 /* Build configuration list for PBXNativeTarget "CollectionViewDemo" */ = {
453 | isa = XCConfigurationList;
454 | buildConfigurations = (
455 | 9FC5DEAA1A7E00CB00818CC5 /* Debug */,
456 | 9FC5DEAB1A7E00CB00818CC5 /* Release */,
457 | );
458 | defaultConfigurationIsVisible = 0;
459 | };
460 | 9FC5DEAC1A7E00CB00818CC5 /* Build configuration list for PBXNativeTarget "CollectionViewDemoTests" */ = {
461 | isa = XCConfigurationList;
462 | buildConfigurations = (
463 | 9FC5DEAD1A7E00CB00818CC5 /* Debug */,
464 | 9FC5DEAE1A7E00CB00818CC5 /* Release */,
465 | );
466 | defaultConfigurationIsVisible = 0;
467 | };
468 | /* End XCConfigurationList section */
469 | };
470 | rootObject = 9FC5DE6F1A7E00CB00818CC5 /* Project object */;
471 | }
472 |
--------------------------------------------------------------------------------