├── Landscape.png
├── Portrait.png
├── CollectionSectionView.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── CollectionSectionView.xccheckout
└── project.pbxproj
├── CollectionSectionView
├── CollectionViewController.h
├── AppDelegate.h
├── main.m
├── SectionBackground
│ ├── SectionBackgroundLayout.h
│ ├── SectionBackgroundView1.xib
│ ├── SectionBackgroundView2.xib
│ └── SectionBackgroundLayout.m
├── Images.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── AppDelegate.m
├── CollectionViewController.m
├── en.lproj
│ └── Main.storyboard
└── Base.lproj
│ ├── LaunchScreen.xib
│ └── Main.storyboard
├── .gitignore
├── LICENSE
└── README.md
/Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s-atif-jamil/CollectionSectionView/HEAD/Landscape.png
--------------------------------------------------------------------------------
/Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s-atif-jamil/CollectionSectionView/HEAD/Portrait.png
--------------------------------------------------------------------------------
/CollectionSectionView.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CollectionSectionView/CollectionViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // CollectionViewController.h
3 | // CollectionSectionView
4 | //
5 | // Created by Atif on 9/21/14.
6 | // Copyright (c) 2014 Atif. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface CollectionViewController : UICollectionViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/CollectionSectionView/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // CollectionSectionView
4 | //
5 | // Created by Atif on 9/21/14.
6 | // Copyright (c) 2014 Atif. 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 |
--------------------------------------------------------------------------------
/CollectionSectionView/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // CollectionSectionView
4 | //
5 | // Created by Atif on 9/21/14.
6 | // Copyright (c) 2014 Atif. 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 |
--------------------------------------------------------------------------------
/CollectionSectionView/SectionBackground/SectionBackgroundLayout.h:
--------------------------------------------------------------------------------
1 | //
2 | // CustomLayout.h
3 | // TestCollection
4 | //
5 | // Created by Atif on 9/21/14.
6 | // Copyright (c) 2014 Atif. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface SectionBackgroundLayout : UICollectionViewFlowLayout
12 |
13 | @property (assign, nonatomic) BOOL alternateBackgrounds;
14 | @property (strong, nonatomic) NSArray *decorationViewOfKinds;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | CollectionSectionView.xcodeproj/project.xcworkspace/xcuserdata/atif.xcuserdatad/UserInterfaceState.xcuserstate
3 |
4 | CollectionSectionView.xcodeproj/project.xcworkspace/xcuserdata/atif.xcuserdatad/WorkspaceSettings.xcsettings
5 |
6 | CollectionSectionView.xcodeproj/xcuserdata/atif.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
7 |
8 | CollectionSectionView.xcodeproj/xcuserdata/atif.xcuserdatad/xcschemes/CollectionSectionView.xcscheme
9 |
10 | CollectionSectionView.xcodeproj/xcuserdata/atif.xcuserdatad/xcschemes/xcschememanagement.plist
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Atif Jamil, Syed
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 |
23 |
--------------------------------------------------------------------------------
/CollectionSectionView/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" : "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 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/CollectionSectionView/SectionBackground/SectionBackgroundView1.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/CollectionSectionView/SectionBackground/SectionBackgroundView2.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Collection Section View
2 | =======================
3 | SectionBackgroundLayout can provide background decoration view for each section.
4 |
5 |
6 | 
7 |
8 | 
9 |
10 |
11 | How To
12 | ------
13 |
14 | 1. Add SectionBackgroundLayout.h & SectionBackgroundLayout.m in project
15 | 2. In Storyboard or Xib, under UICollectionView change UICollectionViewFlowLayout to SectionBackgroundLayout
16 | 3. Add xib in project like "SectionBackgroundView1.xib" which is UICollectionReusableView to use as decoration view
17 | 4. The identifier of reusable view (in Attribute Inspector) will be same name as file name like "SectionBackgroundView1". And change the background color as you want.
18 | 5. Look bellow code for how can it be use
19 |
20 | ```objective-c
21 | - (void)viewDidLoad
22 | {
23 | [super viewDidLoad];
24 | SectionBackgroundLayout *layout = (id)self.collectionView.collectionViewLayout;
25 | layout.decorationViewOfKinds = @[@"SectionBackgroundView1", @"SectionBackgroundView2", [NSNull null]];
26 | ...
27 | }
28 | ```
29 |
30 | Note
31 | ----
32 | * if layout.alternateBackgrounds = YES and sections are more than background views then new section reuse the 1st background view and next section will 2nd one and so on. Like alternate background colors.
33 |
34 | * if array contains [NSNull null] element then that section will not create any background just reflect the UICollectionView background
35 |
36 |
--------------------------------------------------------------------------------
/CollectionSectionView/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 | UIInterfaceOrientationPortraitUpsideDown
39 |
40 | UISupportedInterfaceOrientations~ipad
41 |
42 | UIInterfaceOrientationPortrait
43 | UIInterfaceOrientationPortraitUpsideDown
44 | UIInterfaceOrientationLandscapeLeft
45 | UIInterfaceOrientationLandscapeRight
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/CollectionSectionView.xcodeproj/project.xcworkspace/xcshareddata/CollectionSectionView.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | 4E3006C2-458E-4773-B330-DF785851BAD5
9 | IDESourceControlProjectName
10 | CollectionSectionView
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | C3F5190F22D3B91B05C827FD4D521AD13B03A2A6
14 | https://github.com/s-atif-jamil/CollectionSectionView.git
15 |
16 | IDESourceControlProjectPath
17 | CollectionSectionView/CollectionSectionView.xcodeproj
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | C3F5190F22D3B91B05C827FD4D521AD13B03A2A6
21 | ../../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/s-atif-jamil/CollectionSectionView.git
25 | IDESourceControlProjectVersion
26 | 111
27 | IDESourceControlProjectWCCIdentifier
28 | C3F5190F22D3B91B05C827FD4D521AD13B03A2A6
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | C3F5190F22D3B91B05C827FD4D521AD13B03A2A6
36 | IDESourceControlWCCName
37 | CollectionSectionView
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/CollectionSectionView/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // CollectionSectionView
4 | //
5 | // Created by Atif on 9/21/14.
6 | // Copyright (c) 2014 Atif. 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 |
--------------------------------------------------------------------------------
/CollectionSectionView/CollectionViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // CollectionViewController.m
3 | // CollectionSectionView
4 | //
5 | // Created by Atif on 9/21/14.
6 | // Copyright (c) 2014 Atif. All rights reserved.
7 | //
8 |
9 | #import "CollectionViewController.h"
10 | #import "SectionBackgroundLayout.h"
11 |
12 | @interface CollectionViewController ()
13 |
14 | @property (strong, nonatomic) NSArray *data;
15 |
16 | @end
17 |
18 | @implementation CollectionViewController
19 |
20 | - (void)viewDidLoad
21 | {
22 | [super viewDidLoad];
23 |
24 | SectionBackgroundLayout *layout = (id)self.collectionViewLayout;
25 | layout.decorationViewOfKinds = @[@"SectionBackgroundView1", @"SectionBackgroundView2", [NSNull null]];
26 | layout.alternateBackgrounds = YES;
27 | layout.scrollDirection = (self.view.bounds.size.width < self.view.bounds.size.height ? UICollectionViewScrollDirectionVertical : UICollectionViewScrollDirectionHorizontal);
28 |
29 | self.data = @[@(40), @(2), @(10), @(31), @(1), @(5), @(25)];
30 | }
31 |
32 | - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
33 | {
34 | [super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
35 |
36 | SectionBackgroundLayout *layout = (id)self.collectionViewLayout;
37 | layout.scrollDirection = (UIInterfaceOrientationIsPortrait(toInterfaceOrientation) ? UICollectionViewScrollDirectionVertical : UICollectionViewScrollDirectionHorizontal);
38 | [self.collectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UICollectionViewScrollPositionTop animated:NO];
39 | }
40 |
41 |
42 | #pragma mark - UICollectionView DataSource & Delegate
43 |
44 | - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
45 | {
46 | return self.data.count;
47 | }
48 |
49 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
50 | {
51 | return [self.data[section] integerValue];
52 | }
53 |
54 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
55 | {
56 | UICollectionViewCell* cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
57 | cell.backgroundColor = [UIColor colorWithWhite:(rand()%255)/255.0 alpha:1.0];
58 | return cell;
59 | }
60 |
61 | - (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
62 | {
63 | CGFloat inset = 40;
64 | if (section%3 == 0)
65 | inset = 20;
66 |
67 | return UIEdgeInsetsMake(inset, inset, inset, inset);
68 | }
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/CollectionSectionView/en.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 |
--------------------------------------------------------------------------------
/CollectionSectionView/SectionBackground/SectionBackgroundLayout.m:
--------------------------------------------------------------------------------
1 | //
2 | // CustomLayout.m
3 | // TestCollection
4 | //
5 | // Created by Atif on 9/21/14.
6 | // Copyright (c) 2014 Atif. All rights reserved.
7 | //
8 |
9 | #import "SectionBackgroundLayout.h"
10 |
11 | @interface SectionBackgroundLayout ()
12 |
13 | @property (strong, nonatomic) NSMutableArray *itemAttributes;
14 |
15 | @end
16 |
17 | @implementation SectionBackgroundLayout
18 |
19 |
20 | - (void)prepareLayout
21 | {
22 | [super prepareLayout];
23 | self.itemAttributes = [NSMutableArray new];
24 | id delegate = (id)self.collectionView.delegate;
25 |
26 | NSInteger numberOfSection = self.collectionView.numberOfSections;
27 | for (int section=0; section
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/CollectionSectionView/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 |
--------------------------------------------------------------------------------
/CollectionSectionView.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | C03D391E19F400CD0083FB80 /* SectionBackgroundLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = C03D391D19F400CD0083FB80 /* SectionBackgroundLayout.m */; };
11 | C043974B19CF3E18005674F0 /* SectionBackgroundView1.xib in Resources */ = {isa = PBXBuildFile; fileRef = C043974819CF3E18005674F0 /* SectionBackgroundView1.xib */; };
12 | C043974C19CF3E18005674F0 /* SectionBackgroundView2.xib in Resources */ = {isa = PBXBuildFile; fileRef = C043974919CF3E18005674F0 /* SectionBackgroundView2.xib */; };
13 | C043975219CF404E005674F0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C043975019CF404E005674F0 /* Main.storyboard */; };
14 | C0DC1ADF19CF3CCA00BF00CF /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C0DC1ADE19CF3CCA00BF00CF /* main.m */; };
15 | C0DC1AE219CF3CCA00BF00CF /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C0DC1AE119CF3CCA00BF00CF /* AppDelegate.m */; };
16 | C0DC1AE519CF3CCA00BF00CF /* CollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C0DC1AE419CF3CCA00BF00CF /* CollectionViewController.m */; };
17 | C0DC1AEA19CF3CCA00BF00CF /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C0DC1AE919CF3CCA00BF00CF /* Images.xcassets */; };
18 | C0DC1AED19CF3CCA00BF00CF /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0DC1AEB19CF3CCA00BF00CF /* LaunchScreen.xib */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXFileReference section */
22 | C03D391C19F400CD0083FB80 /* SectionBackgroundLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SectionBackgroundLayout.h; sourceTree = ""; };
23 | C03D391D19F400CD0083FB80 /* SectionBackgroundLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SectionBackgroundLayout.m; sourceTree = ""; };
24 | C043974819CF3E18005674F0 /* SectionBackgroundView1.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SectionBackgroundView1.xib; sourceTree = ""; };
25 | C043974919CF3E18005674F0 /* SectionBackgroundView2.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SectionBackgroundView2.xib; sourceTree = ""; };
26 | C043975119CF404E005674F0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
27 | C0DC1AD919CF3CCA00BF00CF /* CollectionSectionView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CollectionSectionView.app; sourceTree = BUILT_PRODUCTS_DIR; };
28 | C0DC1ADD19CF3CCA00BF00CF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
29 | C0DC1ADE19CF3CCA00BF00CF /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
30 | C0DC1AE019CF3CCA00BF00CF /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
31 | C0DC1AE119CF3CCA00BF00CF /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
32 | C0DC1AE319CF3CCA00BF00CF /* CollectionViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CollectionViewController.h; sourceTree = ""; };
33 | C0DC1AE419CF3CCA00BF00CF /* CollectionViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CollectionViewController.m; sourceTree = ""; };
34 | C0DC1AE919CF3CCA00BF00CF /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
35 | C0DC1AEC19CF3CCA00BF00CF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
36 | /* End PBXFileReference section */
37 |
38 | /* Begin PBXFrameworksBuildPhase section */
39 | C0DC1AD619CF3CCA00BF00CF /* Frameworks */ = {
40 | isa = PBXFrameworksBuildPhase;
41 | buildActionMask = 2147483647;
42 | files = (
43 | );
44 | runOnlyForDeploymentPostprocessing = 0;
45 | };
46 | /* End PBXFrameworksBuildPhase section */
47 |
48 | /* Begin PBXGroup section */
49 | C043974519CF3E18005674F0 /* SectionBackground */ = {
50 | isa = PBXGroup;
51 | children = (
52 | C03D391C19F400CD0083FB80 /* SectionBackgroundLayout.h */,
53 | C03D391D19F400CD0083FB80 /* SectionBackgroundLayout.m */,
54 | C043974819CF3E18005674F0 /* SectionBackgroundView1.xib */,
55 | C043974919CF3E18005674F0 /* SectionBackgroundView2.xib */,
56 | );
57 | path = SectionBackground;
58 | sourceTree = "";
59 | };
60 | C0DC1AD019CF3CCA00BF00CF = {
61 | isa = PBXGroup;
62 | children = (
63 | C0DC1ADB19CF3CCA00BF00CF /* CollectionSectionView */,
64 | C0DC1ADA19CF3CCA00BF00CF /* Products */,
65 | );
66 | sourceTree = "";
67 | };
68 | C0DC1ADA19CF3CCA00BF00CF /* Products */ = {
69 | isa = PBXGroup;
70 | children = (
71 | C0DC1AD919CF3CCA00BF00CF /* CollectionSectionView.app */,
72 | );
73 | name = Products;
74 | sourceTree = "";
75 | };
76 | C0DC1ADB19CF3CCA00BF00CF /* CollectionSectionView */ = {
77 | isa = PBXGroup;
78 | children = (
79 | C0DC1AE019CF3CCA00BF00CF /* AppDelegate.h */,
80 | C0DC1AE119CF3CCA00BF00CF /* AppDelegate.m */,
81 | C0DC1AE319CF3CCA00BF00CF /* CollectionViewController.h */,
82 | C0DC1AE419CF3CCA00BF00CF /* CollectionViewController.m */,
83 | C0DC1AEB19CF3CCA00BF00CF /* LaunchScreen.xib */,
84 | C043975019CF404E005674F0 /* Main.storyboard */,
85 | C0DC1AE919CF3CCA00BF00CF /* Images.xcassets */,
86 | C043974519CF3E18005674F0 /* SectionBackground */,
87 | C0DC1ADC19CF3CCA00BF00CF /* Supporting Files */,
88 | );
89 | path = CollectionSectionView;
90 | sourceTree = "";
91 | };
92 | C0DC1ADC19CF3CCA00BF00CF /* Supporting Files */ = {
93 | isa = PBXGroup;
94 | children = (
95 | C0DC1ADD19CF3CCA00BF00CF /* Info.plist */,
96 | C0DC1ADE19CF3CCA00BF00CF /* main.m */,
97 | );
98 | name = "Supporting Files";
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | C0DC1AD819CF3CCA00BF00CF /* CollectionSectionView */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = C0DC1AFC19CF3CCB00BF00CF /* Build configuration list for PBXNativeTarget "CollectionSectionView" */;
107 | buildPhases = (
108 | C0DC1AD519CF3CCA00BF00CF /* Sources */,
109 | C0DC1AD619CF3CCA00BF00CF /* Frameworks */,
110 | C0DC1AD719CF3CCA00BF00CF /* Resources */,
111 | );
112 | buildRules = (
113 | );
114 | dependencies = (
115 | );
116 | name = CollectionSectionView;
117 | productName = CollectionSectionView;
118 | productReference = C0DC1AD919CF3CCA00BF00CF /* CollectionSectionView.app */;
119 | productType = "com.apple.product-type.application";
120 | };
121 | /* End PBXNativeTarget section */
122 |
123 | /* Begin PBXProject section */
124 | C0DC1AD119CF3CCA00BF00CF /* Project object */ = {
125 | isa = PBXProject;
126 | attributes = {
127 | LastUpgradeCheck = 0720;
128 | ORGANIZATIONNAME = Atif;
129 | TargetAttributes = {
130 | C0DC1AD819CF3CCA00BF00CF = {
131 | CreatedOnToolsVersion = 6.0.1;
132 | };
133 | };
134 | };
135 | buildConfigurationList = C0DC1AD419CF3CCA00BF00CF /* Build configuration list for PBXProject "CollectionSectionView" */;
136 | compatibilityVersion = "Xcode 3.2";
137 | developmentRegion = English;
138 | hasScannedForEncodings = 0;
139 | knownRegions = (
140 | en,
141 | Base,
142 | );
143 | mainGroup = C0DC1AD019CF3CCA00BF00CF;
144 | productRefGroup = C0DC1ADA19CF3CCA00BF00CF /* Products */;
145 | projectDirPath = "";
146 | projectRoot = "";
147 | targets = (
148 | C0DC1AD819CF3CCA00BF00CF /* CollectionSectionView */,
149 | );
150 | };
151 | /* End PBXProject section */
152 |
153 | /* Begin PBXResourcesBuildPhase section */
154 | C0DC1AD719CF3CCA00BF00CF /* Resources */ = {
155 | isa = PBXResourcesBuildPhase;
156 | buildActionMask = 2147483647;
157 | files = (
158 | C043974B19CF3E18005674F0 /* SectionBackgroundView1.xib in Resources */,
159 | C043975219CF404E005674F0 /* Main.storyboard in Resources */,
160 | C043974C19CF3E18005674F0 /* SectionBackgroundView2.xib in Resources */,
161 | C0DC1AED19CF3CCA00BF00CF /* LaunchScreen.xib in Resources */,
162 | C0DC1AEA19CF3CCA00BF00CF /* Images.xcassets in Resources */,
163 | );
164 | runOnlyForDeploymentPostprocessing = 0;
165 | };
166 | /* End PBXResourcesBuildPhase section */
167 |
168 | /* Begin PBXSourcesBuildPhase section */
169 | C0DC1AD519CF3CCA00BF00CF /* Sources */ = {
170 | isa = PBXSourcesBuildPhase;
171 | buildActionMask = 2147483647;
172 | files = (
173 | C0DC1AE519CF3CCA00BF00CF /* CollectionViewController.m in Sources */,
174 | C0DC1AE219CF3CCA00BF00CF /* AppDelegate.m in Sources */,
175 | C0DC1ADF19CF3CCA00BF00CF /* main.m in Sources */,
176 | C03D391E19F400CD0083FB80 /* SectionBackgroundLayout.m in Sources */,
177 | );
178 | runOnlyForDeploymentPostprocessing = 0;
179 | };
180 | /* End PBXSourcesBuildPhase section */
181 |
182 | /* Begin PBXVariantGroup section */
183 | C043975019CF404E005674F0 /* Main.storyboard */ = {
184 | isa = PBXVariantGroup;
185 | children = (
186 | C043975119CF404E005674F0 /* Base */,
187 | );
188 | name = Main.storyboard;
189 | sourceTree = "";
190 | };
191 | C0DC1AEB19CF3CCA00BF00CF /* LaunchScreen.xib */ = {
192 | isa = PBXVariantGroup;
193 | children = (
194 | C0DC1AEC19CF3CCA00BF00CF /* Base */,
195 | );
196 | name = LaunchScreen.xib;
197 | sourceTree = "";
198 | };
199 | /* End PBXVariantGroup section */
200 |
201 | /* Begin XCBuildConfiguration section */
202 | C0DC1AFA19CF3CCB00BF00CF /* Debug */ = {
203 | isa = XCBuildConfiguration;
204 | buildSettings = {
205 | ALWAYS_SEARCH_USER_PATHS = NO;
206 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
207 | CLANG_CXX_LIBRARY = "libc++";
208 | CLANG_ENABLE_MODULES = YES;
209 | CLANG_ENABLE_OBJC_ARC = YES;
210 | CLANG_WARN_BOOL_CONVERSION = YES;
211 | CLANG_WARN_CONSTANT_CONVERSION = YES;
212 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
213 | CLANG_WARN_EMPTY_BODY = YES;
214 | CLANG_WARN_ENUM_CONVERSION = YES;
215 | CLANG_WARN_INT_CONVERSION = YES;
216 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
217 | CLANG_WARN_UNREACHABLE_CODE = YES;
218 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
219 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
220 | COPY_PHASE_STRIP = NO;
221 | ENABLE_STRICT_OBJC_MSGSEND = YES;
222 | ENABLE_TESTABILITY = YES;
223 | GCC_C_LANGUAGE_STANDARD = gnu99;
224 | GCC_DYNAMIC_NO_PIC = NO;
225 | GCC_OPTIMIZATION_LEVEL = 0;
226 | GCC_PREPROCESSOR_DEFINITIONS = (
227 | "DEBUG=1",
228 | "$(inherited)",
229 | );
230 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
231 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
232 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
233 | GCC_WARN_UNDECLARED_SELECTOR = YES;
234 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
235 | GCC_WARN_UNUSED_FUNCTION = YES;
236 | GCC_WARN_UNUSED_VARIABLE = YES;
237 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
238 | MTL_ENABLE_DEBUG_INFO = YES;
239 | ONLY_ACTIVE_ARCH = YES;
240 | SDKROOT = iphoneos;
241 | TARGETED_DEVICE_FAMILY = "1,2";
242 | };
243 | name = Debug;
244 | };
245 | C0DC1AFB19CF3CCB00BF00CF /* Release */ = {
246 | isa = XCBuildConfiguration;
247 | buildSettings = {
248 | ALWAYS_SEARCH_USER_PATHS = NO;
249 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
250 | CLANG_CXX_LIBRARY = "libc++";
251 | CLANG_ENABLE_MODULES = YES;
252 | CLANG_ENABLE_OBJC_ARC = YES;
253 | CLANG_WARN_BOOL_CONVERSION = YES;
254 | CLANG_WARN_CONSTANT_CONVERSION = YES;
255 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
256 | CLANG_WARN_EMPTY_BODY = YES;
257 | CLANG_WARN_ENUM_CONVERSION = YES;
258 | CLANG_WARN_INT_CONVERSION = YES;
259 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = YES;
264 | ENABLE_NS_ASSERTIONS = NO;
265 | ENABLE_STRICT_OBJC_MSGSEND = YES;
266 | GCC_C_LANGUAGE_STANDARD = gnu99;
267 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
268 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
269 | GCC_WARN_UNDECLARED_SELECTOR = YES;
270 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
271 | GCC_WARN_UNUSED_FUNCTION = YES;
272 | GCC_WARN_UNUSED_VARIABLE = YES;
273 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
274 | MTL_ENABLE_DEBUG_INFO = NO;
275 | SDKROOT = iphoneos;
276 | TARGETED_DEVICE_FAMILY = "1,2";
277 | VALIDATE_PRODUCT = YES;
278 | };
279 | name = Release;
280 | };
281 | C0DC1AFD19CF3CCB00BF00CF /* Debug */ = {
282 | isa = XCBuildConfiguration;
283 | buildSettings = {
284 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
285 | INFOPLIST_FILE = CollectionSectionView/Info.plist;
286 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
287 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
288 | PRODUCT_BUNDLE_IDENTIFIER = "com.demo.$(PRODUCT_NAME:rfc1034identifier)";
289 | PRODUCT_NAME = "$(TARGET_NAME)";
290 | };
291 | name = Debug;
292 | };
293 | C0DC1AFE19CF3CCB00BF00CF /* Release */ = {
294 | isa = XCBuildConfiguration;
295 | buildSettings = {
296 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
297 | INFOPLIST_FILE = CollectionSectionView/Info.plist;
298 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
299 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
300 | PRODUCT_BUNDLE_IDENTIFIER = "com.demo.$(PRODUCT_NAME:rfc1034identifier)";
301 | PRODUCT_NAME = "$(TARGET_NAME)";
302 | };
303 | name = Release;
304 | };
305 | /* End XCBuildConfiguration section */
306 |
307 | /* Begin XCConfigurationList section */
308 | C0DC1AD419CF3CCA00BF00CF /* Build configuration list for PBXProject "CollectionSectionView" */ = {
309 | isa = XCConfigurationList;
310 | buildConfigurations = (
311 | C0DC1AFA19CF3CCB00BF00CF /* Debug */,
312 | C0DC1AFB19CF3CCB00BF00CF /* Release */,
313 | );
314 | defaultConfigurationIsVisible = 0;
315 | defaultConfigurationName = Release;
316 | };
317 | C0DC1AFC19CF3CCB00BF00CF /* Build configuration list for PBXNativeTarget "CollectionSectionView" */ = {
318 | isa = XCConfigurationList;
319 | buildConfigurations = (
320 | C0DC1AFD19CF3CCB00BF00CF /* Debug */,
321 | C0DC1AFE19CF3CCB00BF00CF /* Release */,
322 | );
323 | defaultConfigurationIsVisible = 0;
324 | defaultConfigurationName = Release;
325 | };
326 | /* End XCConfigurationList section */
327 | };
328 | rootObject = C0DC1AD119CF3CCA00BF00CF /* Project object */;
329 | }
330 |
--------------------------------------------------------------------------------