├── Demo-HoneyCombLayout
├── Demo-Layouts
│ ├── en.lproj
│ │ └── InfoPlist.strings
│ ├── HoneycombViewCell.h
│ ├── LayoutAppDelegate.h
│ ├── main.m
│ ├── HoneyCombLayout.h
│ ├── Images.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ └── Contents.json
│ │ └── LaunchImage.launchimage
│ │ │ └── Contents.json
│ ├── HoneycombViewController.h
│ ├── Demo-Layouts-Prefix.pch
│ ├── Demo-Layouts-Info.plist
│ ├── HoneycombViewCell.m
│ ├── HoneyCombLayout.m
│ ├── LayoutAppDelegate.m
│ └── HoneycombViewController.m
├── Demo-LayoutsTests
│ ├── en.lproj
│ │ └── InfoPlist.strings
│ ├── Demo-LayoutsTests-Info.plist
│ └── Demo_LayoutsTests.m
└── Demo-Layouts.xcodeproj
│ ├── xcuserdata
│ └── dlios1.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── Demo-Layouts.xcscheme
│ ├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── dlios1.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── Demo-Layouts.xccheckout
│ └── project.pbxproj
├── Demo-TriangleLayout
├── TriangleLayout
│ ├── en.lproj
│ │ └── InfoPlist.strings
│ ├── Triangle.m
│ ├── TriangleAppDelegate.h
│ ├── Triangle.h
│ ├── TriangleViewController.h
│ ├── TriangleLayout-Prefix.pch
│ ├── main.m
│ ├── Images.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ └── Contents.json
│ │ └── LaunchImage.launchimage
│ │ │ └── Contents.json
│ ├── TriangleLayout-Info.plist
│ ├── Base.lproj
│ │ └── Main.storyboard
│ ├── TriangleAppDelegate.m
│ └── TriangleViewController.m
├── TriangleLayoutTests
│ ├── en.lproj
│ │ └── InfoPlist.strings
│ ├── TriangleLayoutTests-Info.plist
│ └── TriangleLayoutTests.m
└── TriangleLayout.xcodeproj
│ ├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── dlios1.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── TriangleLayout.xccheckout
│ ├── xcuserdata
│ └── dlios1.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── TriangleLayout.xcscheme
│ └── project.pbxproj
├── README.md
├── Triangle
├── Triangle.m
├── Triangle.h
├── TriangleViewController.h
└── TriangleViewController.m
├── .gitignore
├── HoneyComb
├── HoneycombViewCell.h
├── HoneyCombLayout.h
├── HoneycombViewCell.m
└── HoneyCombLayout.m
└── LICENSE
/Demo-HoneyCombLayout/Demo-Layouts/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-LayoutsTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayoutTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts.xcodeproj/xcuserdata/dlios1.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Varied-Layouts
2 | ==============
3 |
4 | This project will accumulate varied layouts on iOS.
5 |
6 | 这里将陆续推出各种各样的布局算法及其实现效果,敬请期待!
7 |
8 |
9 | * Triangle/ 随机三角形平铺布局(UIView实现)
10 | * HoneyComb/ 蜂窝平铺布局(UICollectionView,自定义Layout实现)
11 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Triangle/Triangle.m:
--------------------------------------------------------------------------------
1 | //
2 | // Triangle.m
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "Triangle.h"
10 |
11 | @implementation Triangle
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts.xcodeproj/project.xcworkspace/xcuserdata/dlios1.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duzixi/Varied-Layouts/HEAD/Demo-HoneyCombLayout/Demo-Layouts.xcodeproj/project.xcworkspace/xcuserdata/dlios1.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout.xcodeproj/project.xcworkspace/xcuserdata/dlios1.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duzixi/Varied-Layouts/HEAD/Demo-TriangleLayout/TriangleLayout.xcodeproj/project.xcworkspace/xcuserdata/dlios1.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/Triangle.m:
--------------------------------------------------------------------------------
1 | //
2 | // Triangle.m
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "Triangle.h"
10 |
11 | @implementation Triangle
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # CocoaPods
2 | #
3 | # We recommend against adding the Pods directory to your .gitignore. However
4 | # you should judge for yourself, the pros and cons are mentioned at:
5 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control?
6 | #
7 | # Pods/
8 |
9 |
--------------------------------------------------------------------------------
/HoneyComb/HoneycombViewCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // HoneycombViewCell.h
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface HoneycombViewCell : UICollectionViewCell
12 |
13 | @property (nonatomic,strong) UILabel *titleLabel;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/HoneycombViewCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // HoneycombViewCell.h
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface HoneycombViewCell : UICollectionViewCell
12 |
13 | @property (nonatomic,strong) UILabel *titleLabel;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/LayoutAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // LayoutAppDelegate.h
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface LayoutAppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/TriangleAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // TriangleAppDelegate.h
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface TriangleAppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Triangle/Triangle.h:
--------------------------------------------------------------------------------
1 | //
2 | // Triangle.h
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface Triangle : NSObject
12 |
13 | @property (nonatomic, assign) CGPoint p1;
14 | @property (nonatomic, assign) CGPoint p2;
15 | @property (nonatomic, assign) CGPoint p3;
16 | @end
17 |
--------------------------------------------------------------------------------
/Triangle/TriangleViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // TriangleViewController.h
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface TriangleViewController : UIViewController
12 | {
13 | NSMutableArray *_randomPoints; // 随机点
14 | NSMutableArray *_triangles; // 随机三角形
15 | }
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/Triangle.h:
--------------------------------------------------------------------------------
1 | //
2 | // Triangle.h
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface Triangle : NSObject
12 |
13 | @property (nonatomic, assign) CGPoint p1;
14 | @property (nonatomic, assign) CGPoint p2;
15 | @property (nonatomic, assign) CGPoint p3;
16 | @end
17 |
--------------------------------------------------------------------------------
/HoneyComb/HoneyCombLayout.h:
--------------------------------------------------------------------------------
1 | //
2 | // HoneyCombLayout.h
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface HoneyCombLayout : UICollectionViewLayout
12 |
13 | @property (nonatomic, assign) NSInteger margin;
14 | @property (nonatomic, assign) NSInteger oX;
15 | @property (nonatomic, assign) NSInteger oY;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/TriangleViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // TriangleViewController.h
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface TriangleViewController : UIViewController
12 | {
13 | NSMutableArray *_randomPoints; // 随机点
14 | NSMutableArray *_triangles; // 随机三角形
15 | }
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "LayoutAppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([LayoutAppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/TriangleLayout-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 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "TriangleAppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([TriangleAppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/HoneyCombLayout.h:
--------------------------------------------------------------------------------
1 | //
2 | // HoneyCombLayout.h
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface HoneyCombLayout : UICollectionViewLayout
12 |
13 | @property (nonatomic, assign) NSInteger margin;
14 | @property (nonatomic, assign) NSInteger oX;
15 | @property (nonatomic, assign) NSInteger oY;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/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 | }
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/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 | }
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/HoneycombViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // HoneycombViewController.h
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface HoneycombViewController : UIViewController
12 |
13 | @property (retain, nonatomic) UICollectionView *collectionView;
14 | @property (retain, nonatomic) NSMutableArray *arrayData;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/Demo-Layouts-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_3_0
10 | #warning "This project uses features only available in iOS SDK 3.0 and later."
11 | #endif
12 |
13 | #ifdef __OBJC__
14 | #import
15 | #import
16 | #endif
17 |
18 | #define SIZE 80
19 | #define COL ((int)(320.0 / SIZE / 2.0) * 2)
20 |
21 | #define HONEYCELLID @"HoneycombId"
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/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 | }
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/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 | }
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts.xcodeproj/xcuserdata/dlios1.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Demo-Layouts.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 524EDEBB19B4C2550095E0CF
16 |
17 | primary
18 |
19 |
20 | 524EDED619B4C2550095E0CF
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout.xcodeproj/xcuserdata/dlios1.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | TriangleLayout.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 5209930219A8FFC700356E9A
16 |
17 | primary
18 |
19 |
20 | 5209932319A8FFC700356E9A
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-LayoutsTests/Demo-LayoutsTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | com.lanou3g.${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 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayoutTests/TriangleLayoutTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | com.lanou.${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 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-LayoutsTests/Demo_LayoutsTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // Demo_LayoutsTests.m
3 | // Demo-LayoutsTests
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface Demo_LayoutsTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation Demo_LayoutsTests
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 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayoutTests/TriangleLayoutTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // TriangleLayoutTests.m
3 | // TriangleLayoutTests
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface TriangleLayoutTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation TriangleLayoutTests
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 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Du Zixi
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 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/Demo-Layouts-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | com.lanou3g.${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 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/TriangleLayout-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | com.lanou.${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 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts.xcodeproj/project.xcworkspace/xcshareddata/Demo-Layouts.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | 571EF4E9-C36C-41A2-A8A6-3FD69CE569CD
9 | IDESourceControlProjectName
10 | Demo-Layouts
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | 24B24649-5132-4257-8702-565AC2B7150A
14 | https://github.com/duzixi/Varied-Layouts.git
15 |
16 | IDESourceControlProjectPath
17 | Demo-HoneyCombLayout/Demo-Layouts.xcodeproj/project.xcworkspace
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | 24B24649-5132-4257-8702-565AC2B7150A
21 | ../../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/duzixi/Varied-Layouts.git
25 | IDESourceControlProjectVersion
26 | 110
27 | IDESourceControlProjectWCCIdentifier
28 | 24B24649-5132-4257-8702-565AC2B7150A
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | 24B24649-5132-4257-8702-565AC2B7150A
36 | IDESourceControlWCCName
37 | CollectionView-Layouts
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout.xcodeproj/project.xcworkspace/xcshareddata/TriangleLayout.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | CB69B283-CF20-4F34-A99D-CE89F2E21872
9 | IDESourceControlProjectName
10 | TriangleLayout
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | 0ED59147-42B3-4B26-B233-5FD2E4C43CA2
14 | https://github.com/duzixi/Varied-Layouts.git
15 |
16 | IDESourceControlProjectPath
17 | TriangleLayout/TriangleLayout.xcodeproj/project.xcworkspace
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | 0ED59147-42B3-4B26-B233-5FD2E4C43CA2
21 | ../../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/duzixi/Varied-Layouts.git
25 | IDESourceControlProjectVersion
26 | 110
27 | IDESourceControlProjectWCCIdentifier
28 | 0ED59147-42B3-4B26-B233-5FD2E4C43CA2
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | 0ED59147-42B3-4B26-B233-5FD2E4C43CA2
36 | IDESourceControlWCCName
37 | CollectionView-Layouts
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/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 |
--------------------------------------------------------------------------------
/HoneyComb/HoneycombViewCell.m:
--------------------------------------------------------------------------------
1 | //
2 | // HoneycombViewCell.m
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "HoneycombViewCell.h"
10 |
11 | @implementation HoneycombViewCell
12 |
13 | - (id)initWithFrame:(CGRect)frame
14 | {
15 | self = [super initWithFrame:frame];
16 | if (self) {
17 | // Initialization code
18 | self.titleLabel = [[UILabel alloc] init];
19 | self.titleLabel.textColor = [UIColor whiteColor];
20 | [self.contentView addSubview:self.titleLabel];
21 | }
22 | return self;
23 | }
24 |
25 | -(void)layoutSubviews
26 | {
27 | [super layoutSubviews];
28 | // step 1: 生成六边形路径
29 | CGFloat longSide = SIZE * 0.5 * cosf(M_PI * 30 / 180);
30 | CGFloat shortSide = SIZE * 0.5 * sin(M_PI * 30 / 180);
31 | UIBezierPath *path = [UIBezierPath bezierPath];
32 | [path moveToPoint:CGPointMake(0, longSide)];
33 | [path addLineToPoint:CGPointMake(shortSide, 0)];
34 | [path addLineToPoint:CGPointMake(shortSide + SIZE * 0.5, 0)];
35 | [path addLineToPoint:CGPointMake(SIZE, longSide)];
36 | [path addLineToPoint:CGPointMake(shortSide + SIZE * 0.5, longSide * 2)];
37 | [path addLineToPoint:CGPointMake(shortSide, longSide * 2)];
38 | [path closePath];
39 |
40 | // step 2: 根据路径生成蒙板
41 | CAShapeLayer *maskLayer = [CAShapeLayer layer];
42 | maskLayer.path = [path CGPath];
43 |
44 | // step 3: 给cell添加模版
45 | self.layer.mask = maskLayer;
46 |
47 |
48 | self.backgroundColor = [UIColor orangeColor];
49 | self.titleLabel.textAlignment = NSTextAlignmentCenter;
50 | self.titleLabel.frame = self.contentView.frame;
51 |
52 | }
53 |
54 | /*
55 | // Only override drawRect: if you perform custom drawing.
56 | // An empty implementation adversely affects performance during animation.
57 | - (void)drawRect:(CGRect)rect
58 | {
59 | // Drawing code
60 | }
61 | */
62 |
63 | @end
64 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/HoneycombViewCell.m:
--------------------------------------------------------------------------------
1 | //
2 | // HoneycombViewCell.m
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "HoneycombViewCell.h"
10 |
11 | @implementation HoneycombViewCell
12 |
13 | - (id)initWithFrame:(CGRect)frame
14 | {
15 | self = [super initWithFrame:frame];
16 | if (self) {
17 | // Initialization code
18 | self.titleLabel = [[UILabel alloc] init];
19 | self.titleLabel.textColor = [UIColor whiteColor];
20 | [self.contentView addSubview:self.titleLabel];
21 | }
22 | return self;
23 | }
24 |
25 | -(void)layoutSubviews
26 | {
27 | [super layoutSubviews];
28 | // step 1: 生成六边形路径
29 | CGFloat longSide = SIZE * 0.5 * cosf(M_PI * 30 / 180);
30 | CGFloat shortSide = SIZE * 0.5 * sin(M_PI * 30 / 180);
31 | UIBezierPath *path = [UIBezierPath bezierPath];
32 | [path moveToPoint:CGPointMake(0, longSide)];
33 | [path addLineToPoint:CGPointMake(shortSide, 0)];
34 | [path addLineToPoint:CGPointMake(shortSide + SIZE * 0.5, 0)];
35 | [path addLineToPoint:CGPointMake(SIZE, longSide)];
36 | [path addLineToPoint:CGPointMake(shortSide + SIZE * 0.5, longSide * 2)];
37 | [path addLineToPoint:CGPointMake(shortSide, longSide * 2)];
38 | [path closePath];
39 |
40 | // step 2: 根据路径生成蒙板
41 | CAShapeLayer *maskLayer = [CAShapeLayer layer];
42 | maskLayer.path = [path CGPath];
43 |
44 | // step 3: 给cell添加模版
45 | self.layer.mask = maskLayer;
46 |
47 |
48 | self.backgroundColor = [UIColor orangeColor];
49 | self.titleLabel.textAlignment = NSTextAlignmentCenter;
50 | self.titleLabel.frame = self.contentView.frame;
51 |
52 | }
53 |
54 | /*
55 | // Only override drawRect: if you perform custom drawing.
56 | // An empty implementation adversely affects performance during animation.
57 | - (void)drawRect:(CGRect)rect
58 | {
59 | // Drawing code
60 | }
61 | */
62 |
63 | @end
64 |
--------------------------------------------------------------------------------
/HoneyComb/HoneyCombLayout.m:
--------------------------------------------------------------------------------
1 | //
2 | // HoneyCombLayout.m
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "HoneyCombLayout.h"
10 |
11 | @implementation HoneyCombLayout
12 |
13 | /// 返回内容大小,用于判断是否需要加快滑动
14 |
15 | -(CGSize)collectionViewContentSize
16 | {
17 | float height = (SIZE + self.margin) * ([self.collectionView numberOfItemsInSection:0] / 4 + 1);
18 | return CGSizeMake(320, height);
19 | }
20 |
21 |
22 | /// 返回YES,改变布局
23 | /*
24 | - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds
25 | {
26 | return YES;
27 | }
28 | */
29 | #pragma mark - UICollectionViewLayout
30 | /// 为每一个Item生成布局特性
31 | - (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath
32 | {
33 | UICollectionViewLayoutAttributes *attributes = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:indexPath];
34 |
35 | UICollectionView *collection = self.collectionView;
36 |
37 | float x = (SIZE + self.margin) * (indexPath.item % COL + 1) * 0.75;
38 | float y = (SIZE + self.margin) * (indexPath.item / COL + 0.5) * cos(M_PI * 30.0f / 180.0f);
39 | if (indexPath.item % 2 == 1) {
40 | y += (SIZE + self.margin) * 0.5 * cosf(M_PI * 30.0f / 180.0f);
41 | }
42 |
43 | x += self.oX;
44 | y += self.oY;
45 |
46 | attributes.center = CGPointMake(x + collection.contentOffset.x, y + collection.contentOffset.y);
47 | attributes.size = CGSizeMake(SIZE, SIZE * cos(M_PI * 30.0f / 180.0f));
48 |
49 | return attributes;
50 | }
51 |
52 | -(NSArray *)layoutAttributesForElementsInRect:(CGRect)rect
53 | {
54 | NSArray *arr = [super layoutAttributesForElementsInRect:rect];
55 | if ([arr count] > 0) {
56 | return arr;
57 | }
58 | NSMutableArray *attributes = [NSMutableArray array];
59 | for (NSInteger i = 0 ; i < [self.collectionView numberOfItemsInSection:0 ]; i++) {
60 | NSIndexPath *indexPath = [NSIndexPath indexPathForItem:i inSection:0];
61 | [attributes addObject:[self layoutAttributesForItemAtIndexPath:indexPath]];
62 | }
63 | return attributes;
64 | }
65 |
66 |
67 |
68 | @end
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/TriangleAppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // TriangleAppDelegate.m
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "TriangleAppDelegate.h"
10 |
11 | @implementation TriangleAppDelegate
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 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/HoneyCombLayout.m:
--------------------------------------------------------------------------------
1 | //
2 | // HoneyCombLayout.m
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "HoneyCombLayout.h"
10 |
11 | @implementation HoneyCombLayout
12 |
13 | /// 返回内容大小,用于判断是否需要加快滑动
14 |
15 | -(CGSize)collectionViewContentSize
16 | {
17 | float height = (SIZE + self.margin) * ([self.collectionView numberOfItemsInSection:0] / 4 + 1);
18 | return CGSizeMake(320, height);
19 | }
20 |
21 |
22 | /// 返回YES,改变布局
23 | /*
24 | - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds
25 | {
26 | return YES;
27 | }
28 | */
29 | #pragma mark - UICollectionViewLayout
30 | /// 为每一个Item生成布局特性
31 | - (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath
32 | {
33 | UICollectionViewLayoutAttributes *attributes = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:indexPath];
34 |
35 | UICollectionView *collection = self.collectionView;
36 |
37 | float x = (SIZE + self.margin) * (indexPath.item % COL + 1) * 0.75;
38 | float y = (SIZE + self.margin) * (indexPath.item / COL + 0.5) * cos(M_PI * 30.0f / 180.0f);
39 | if (indexPath.item % 2 == 1) {
40 | y += (SIZE + self.margin) * 0.5 * cosf(M_PI * 30.0f / 180.0f);
41 | }
42 |
43 | x += self.oX;
44 | y += self.oY;
45 |
46 | attributes.center = CGPointMake(x + collection.contentOffset.x, y + collection.contentOffset.y);
47 | attributes.size = CGSizeMake(SIZE, SIZE * cos(M_PI * 30.0f / 180.0f));
48 |
49 | return attributes;
50 | }
51 |
52 | -(NSArray *)layoutAttributesForElementsInRect:(CGRect)rect
53 | {
54 | NSArray *arr = [super layoutAttributesForElementsInRect:rect];
55 | if ([arr count] > 0) {
56 | return arr;
57 | }
58 | NSMutableArray *attributes = [NSMutableArray array];
59 | for (NSInteger i = 0 ; i < [self.collectionView numberOfItemsInSection:0 ]; i++) {
60 | NSIndexPath *indexPath = [NSIndexPath indexPathForItem:i inSection:0];
61 | [attributes addObject:[self layoutAttributesForItemAtIndexPath:indexPath]];
62 | }
63 | return attributes;
64 | }
65 |
66 |
67 |
68 | @end
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/LayoutAppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // LayoutAppDelegate.m
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "LayoutAppDelegate.h"
10 | #import "HoneycombViewController.h"
11 | @implementation LayoutAppDelegate
12 |
13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14 | {
15 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
16 | // Override point for customization after application launch.
17 | self.window.backgroundColor = [UIColor whiteColor];
18 | HoneycombViewController *honey = [[HoneycombViewController alloc] init];
19 | self.window.rootViewController = honey;
20 | [self.window makeKeyAndVisible];
21 | return YES;
22 | }
23 |
24 | - (void)applicationWillResignActive:(UIApplication *)application
25 | {
26 | // 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.
27 | // 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.
28 | }
29 |
30 | - (void)applicationDidEnterBackground:(UIApplication *)application
31 | {
32 | // 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.
33 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
34 | }
35 |
36 | - (void)applicationWillEnterForeground:(UIApplication *)application
37 | {
38 | // 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.
39 | }
40 |
41 | - (void)applicationDidBecomeActive:(UIApplication *)application
42 | {
43 | // 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.
44 | }
45 |
46 | - (void)applicationWillTerminate:(UIApplication *)application
47 | {
48 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
49 | }
50 |
51 | @end
52 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts/HoneycombViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // HoneycombViewController.m
3 | // Demo-Layouts
4 | //
5 | // Created by 杜子兮(duzixi) on 14-9-1.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "HoneycombViewController.h"
10 | #import "HoneyCombLayout.h"
11 | #import "HoneycombViewCell.h"
12 |
13 | @interface HoneycombViewController ()
14 |
15 | @end
16 |
17 | @implementation HoneycombViewController
18 |
19 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
20 | {
21 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
22 | if (self) {
23 | // Custom initialization
24 | self.arrayData = [NSMutableArray arrayWithObjects:@"0", @"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", nil];
25 | }
26 | return self;
27 | }
28 |
29 | - (void)viewDidLoad
30 | {
31 | [super viewDidLoad];
32 | // Do any additional setup after loading the view.
33 | // 1. 选一个布局模版
34 | HoneyCombLayout *layout = [[HoneyCombLayout alloc] init];
35 | layout.margin = 10;
36 | layout.oX = -10;
37 | layout.oY = 20;
38 |
39 | // 2. 创建UICollectionView
40 | self.collectionView = [[UICollectionView alloc] initWithFrame:self.view.frame collectionViewLayout:layout];
41 | [self.collectionView registerClass:[HoneycombViewCell class] forCellWithReuseIdentifier:HONEYCELLID];
42 | self.collectionView.backgroundColor = [UIColor whiteColor];
43 | self.collectionView.delegate = self;
44 | self.collectionView.dataSource = self;
45 | [self.view addSubview:self.collectionView];
46 |
47 | }
48 |
49 | #pragma mark - UICollectionViewDelegate
50 | #pragma mark - UICollectionViewDataSource
51 | - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
52 | {
53 | return 1;
54 | }
55 |
56 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
57 | {
58 | return [self.arrayData count];
59 | }
60 |
61 | - (UICollectionViewCell *)collectionView:(UICollectionView *)cView
62 | cellForItemAtIndexPath:(NSIndexPath *)indexPath
63 | {
64 | HoneycombViewCell *cell = (HoneycombViewCell *)[cView dequeueReusableCellWithReuseIdentifier:HONEYCELLID forIndexPath:indexPath];
65 | if (!cell) {
66 | NSLog(@"cell不可以为空!");
67 | return nil;
68 | }
69 | cell.titleLabel.text = self.arrayData[indexPath.item];
70 | return cell;
71 | }
72 |
73 | - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
74 | {
75 | NSLog(@"selected! %d", indexPath.row);
76 | }
77 |
78 | #pragma mark - UIScrollViewDelegate
79 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView
80 | {
81 | HoneyCombLayout *layout = (HoneyCombLayout *)self.collectionView.collectionViewLayout;
82 | layout.oY = -scrollView.contentOffset.y + 20;
83 | }
84 |
85 | - (void)didReceiveMemoryWarning
86 | {
87 | [super didReceiveMemoryWarning];
88 | // Dispose of any resources that can be recreated.
89 | }
90 |
91 | /*
92 | #pragma mark - Navigation
93 |
94 | // In a storyboard-based application, you will often want to do a little preparation before navigation
95 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
96 | {
97 | // Get the new view controller using [segue destinationViewController].
98 | // Pass the selected object to the new view controller.
99 | }
100 | */
101 |
102 | @end
103 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts.xcodeproj/xcuserdata/dlios1.xcuserdatad/xcschemes/Demo-Layouts.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 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout.xcodeproj/xcuserdata/dlios1.xcuserdatad/xcschemes/TriangleLayout.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 |
--------------------------------------------------------------------------------
/Triangle/TriangleViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // TriangleViewController.m
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "TriangleViewController.h"
10 | #import "Triangle.h"
11 | #import
12 |
13 | #define PADDING 10
14 | #define SIZE 100
15 | #define COL (self.view.frame.size.width / SIZE)
16 | #define ROW (self.view.frame.size.height / SIZE)
17 |
18 | @interface TriangleViewController ()
19 |
20 | @end
21 |
22 | @implementation TriangleViewController
23 |
24 | - (void)viewDidLoad
25 | {
26 | [super viewDidLoad];
27 | // Do any additional setup after loading the view, typically from a nib.
28 | _randomPoints = [NSMutableArray array];
29 | _triangles = [NSMutableArray array];
30 |
31 | self.view.backgroundColor = [UIColor yellowColor];
32 | int oy = - SIZE / 2;
33 |
34 | for (int i = 0; i < ROW + 2; i++) {
35 | for (int j = 0; j < COL; j++) {
36 | int ox = (i % 2 == 1) ? j * SIZE : j * SIZE - 0.5 * SIZE;
37 | ox -= SIZE / 4;
38 | // step 1:画格子
39 | UIView *view = [[UIView alloc] initWithFrame:CGRectMake(ox, i * SIZE + oy, SIZE, SIZE)];
40 | if ((j + i ) % 2 == 0) {
41 | view.backgroundColor = [UIColor grayColor];
42 | }
43 | // [self.view addSubview:view];
44 |
45 | // step 2:在格子中产生随机点
46 | int x = arc4random() % (SIZE - PADDING * 2) + view.frame.origin.x + PADDING;
47 | int y = arc4random() % (SIZE - PADDING * 2) + view.frame.origin.y + PADDING;
48 | CGPoint p = CGPointMake(x, y);
49 | NSValue *v = [NSValue valueWithCGPoint:p];
50 | [_randomPoints addObject:v];
51 | UIView *pView = [[UIView alloc] initWithFrame:CGRectMake(p.x, p.y, 2, 2)];
52 | pView.backgroundColor = [UIColor blueColor];
53 | // [self.view addSubview:pView];
54 |
55 | UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(p.x, p.y, 50, 20)];
56 | label.text = [NSString stringWithFormat:@"%lu",(unsigned long)[_randomPoints count]];
57 | // [self.view addSubview:label];
58 | }
59 | }
60 |
61 | int k = 0;
62 | for (int i = 0; i < ROW; i++) {
63 | NSLog(@"-----------------");
64 | for (int j = 0; j < COL - 1; j++) {
65 | // step 3: 俺三角形将点归类
66 | k = i * COL + j + i;
67 | Triangle *t = [[Triangle alloc] init];
68 | t.p1 = [_randomPoints[k] CGPointValue];
69 | t.p2 = [_randomPoints[k + 1] CGPointValue];
70 | int col = i % 2 == 0 ? COL : COL + 1;
71 | t.p3 = [_randomPoints[k + 1 + col] CGPointValue];
72 |
73 | NSLog(@"%d %d %d", k , k + 1, k + 1 + col);
74 | [_triangles addObject:t];
75 |
76 | // step 4: 生成三角形所在的矩形区域
77 | int minX = t.p1.x < t.p2.x ? t.p1.x : t.p2.x;
78 | minX = minX < t.p3.x ? minX : t.p3.x;
79 | int minY = t.p1.y < t.p2.y ? t.p1.y : t.p2.y;
80 | minY = minY < t.p3.y ? minY : t.p3.y;
81 |
82 | int maxX = t.p1.x > t.p2.x ? t.p1.x : t.p2.x;
83 | maxX = maxX > t.p3.x ? maxX : t.p3.x;
84 | int maxY = t.p1.y > t.p2.y ? t.p1.y : t.p2.y;
85 | maxY = maxY > t.p3.y ? maxY : t.p3.y;
86 |
87 | k++;
88 |
89 | UIImageView *view = [[UIImageView alloc] initWithFrame:CGRectMake(minX, minY, maxX - minX, maxY - minY)];
90 | view.backgroundColor = [UIColor orangeColor];
91 | view.alpha = 0.8;
92 |
93 |
94 | // step 5: 根据三角形生成蒙板
95 | UIBezierPath *path = [UIBezierPath bezierPath];
96 | [path moveToPoint:CGPointMake(t.p1.x - minX, t.p1.y - minY)];
97 | [path addLineToPoint:CGPointMake(t.p2.x - minX, t.p2.y - minY)];
98 | [path addLineToPoint:CGPointMake(t.p3.x - minX, t.p3.y - minY)];
99 | [path closePath];
100 |
101 | CAShapeLayer *maskLayer = [CAShapeLayer layer];
102 | maskLayer.path = [path CGPath];
103 | view.layer.mask = maskLayer;
104 |
105 | [self.view addSubview:view];
106 |
107 | }
108 | }
109 |
110 | }
111 |
112 | - (void)didReceiveMemoryWarning
113 | {
114 | [super didReceiveMemoryWarning];
115 | // Dispose of any resources that can be recreated.
116 | }
117 |
118 | @end
119 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout/TriangleViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // TriangleViewController.m
3 | // TriangleLayout
4 | //
5 | // Created by 杜子兮(duzixi) on 14-8-24.
6 | // Copyright (c) 2014年 lanou3g.com All rights reserved.
7 | //
8 |
9 | #import "TriangleViewController.h"
10 | #import "Triangle.h"
11 | #import
12 |
13 | #define PADDING 10
14 | #define SIZE 100
15 | #define COL (self.view.frame.size.width / SIZE)
16 | #define ROW (self.view.frame.size.height / SIZE)
17 |
18 | @interface TriangleViewController ()
19 |
20 | @end
21 |
22 | @implementation TriangleViewController
23 |
24 | - (void)viewDidLoad
25 | {
26 | [super viewDidLoad];
27 | // Do any additional setup after loading the view, typically from a nib.
28 | _randomPoints = [NSMutableArray array];
29 | _triangles = [NSMutableArray array];
30 |
31 | self.view.backgroundColor = [UIColor yellowColor];
32 | int oy = - SIZE / 2;
33 |
34 | for (int i = 0; i < ROW + 2; i++) {
35 | for (int j = 0; j < COL; j++) {
36 | int ox = (i % 2 == 1) ? j * SIZE : j * SIZE - 0.5 * SIZE;
37 | ox -= SIZE / 4;
38 | // step 1:画格子
39 | UIView *view = [[UIView alloc] initWithFrame:CGRectMake(ox, i * SIZE + oy, SIZE, SIZE)];
40 | if ((j + i ) % 2 == 0) {
41 | view.backgroundColor = [UIColor grayColor];
42 | }
43 | // [self.view addSubview:view];
44 |
45 | // step 2:在格子中产生随机点
46 | int x = arc4random() % (SIZE - PADDING * 2) + view.frame.origin.x + PADDING;
47 | int y = arc4random() % (SIZE - PADDING * 2) + view.frame.origin.y + PADDING;
48 | CGPoint p = CGPointMake(x, y);
49 | NSValue *v = [NSValue valueWithCGPoint:p];
50 | [_randomPoints addObject:v];
51 | UIView *pView = [[UIView alloc] initWithFrame:CGRectMake(p.x, p.y, 2, 2)];
52 | pView.backgroundColor = [UIColor blueColor];
53 | // [self.view addSubview:pView];
54 |
55 | UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(p.x, p.y, 50, 20)];
56 | label.text = [NSString stringWithFormat:@"%lu",(unsigned long)[_randomPoints count]];
57 | // [self.view addSubview:label];
58 | }
59 | }
60 |
61 | int k = 0;
62 | for (int i = 0; i < ROW; i++) {
63 | NSLog(@"-----------------");
64 | for (int j = 0; j < COL - 1; j++) {
65 | // step 3: 俺三角形将点归类
66 | k = i * COL + j + i;
67 | Triangle *t = [[Triangle alloc] init];
68 | t.p1 = [_randomPoints[k] CGPointValue];
69 | t.p2 = [_randomPoints[k + 1] CGPointValue];
70 | int col = i % 2 == 0 ? COL : COL + 1;
71 | t.p3 = [_randomPoints[k + 1 + col] CGPointValue];
72 |
73 | NSLog(@"%d %d %d", k , k + 1, k + 1 + col);
74 | [_triangles addObject:t];
75 |
76 | // step 4: 生成三角形所在的矩形区域
77 | int minX = t.p1.x < t.p2.x ? t.p1.x : t.p2.x;
78 | minX = minX < t.p3.x ? minX : t.p3.x;
79 | int minY = t.p1.y < t.p2.y ? t.p1.y : t.p2.y;
80 | minY = minY < t.p3.y ? minY : t.p3.y;
81 |
82 | int maxX = t.p1.x > t.p2.x ? t.p1.x : t.p2.x;
83 | maxX = maxX > t.p3.x ? maxX : t.p3.x;
84 | int maxY = t.p1.y > t.p2.y ? t.p1.y : t.p2.y;
85 | maxY = maxY > t.p3.y ? maxY : t.p3.y;
86 |
87 | k++;
88 |
89 | UIImageView *view = [[UIImageView alloc] initWithFrame:CGRectMake(minX, minY, maxX - minX, maxY - minY)];
90 | view.backgroundColor = [UIColor orangeColor];
91 | view.alpha = 0.8;
92 |
93 |
94 | // step 5: 根据三角形生成蒙板
95 | UIBezierPath *path = [UIBezierPath bezierPath];
96 | [path moveToPoint:CGPointMake(t.p1.x - minX, t.p1.y - minY)];
97 | [path addLineToPoint:CGPointMake(t.p2.x - minX, t.p2.y - minY)];
98 | [path addLineToPoint:CGPointMake(t.p3.x - minX, t.p3.y - minY)];
99 | [path closePath];
100 |
101 | CAShapeLayer *maskLayer = [CAShapeLayer layer];
102 | maskLayer.path = [path CGPath];
103 | view.layer.mask = maskLayer;
104 |
105 | [self.view addSubview:view];
106 |
107 | }
108 | }
109 |
110 | }
111 |
112 | - (void)didReceiveMemoryWarning
113 | {
114 | [super didReceiveMemoryWarning];
115 | // Dispose of any resources that can be recreated.
116 | }
117 |
118 | @end
119 |
--------------------------------------------------------------------------------
/Demo-HoneyCombLayout/Demo-Layouts.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 524EDEC019B4C2550095E0CF /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 524EDEBF19B4C2550095E0CF /* Foundation.framework */; };
11 | 524EDEC219B4C2550095E0CF /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 524EDEC119B4C2550095E0CF /* CoreGraphics.framework */; };
12 | 524EDEC419B4C2550095E0CF /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 524EDEC319B4C2550095E0CF /* UIKit.framework */; };
13 | 524EDECA19B4C2550095E0CF /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 524EDEC819B4C2550095E0CF /* InfoPlist.strings */; };
14 | 524EDECC19B4C2550095E0CF /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 524EDECB19B4C2550095E0CF /* main.m */; };
15 | 524EDED019B4C2550095E0CF /* LayoutAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 524EDECF19B4C2550095E0CF /* LayoutAppDelegate.m */; };
16 | 524EDED219B4C2550095E0CF /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 524EDED119B4C2550095E0CF /* Images.xcassets */; };
17 | 524EDED919B4C2550095E0CF /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 524EDED819B4C2550095E0CF /* XCTest.framework */; };
18 | 524EDEDA19B4C2550095E0CF /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 524EDEBF19B4C2550095E0CF /* Foundation.framework */; };
19 | 524EDEDB19B4C2550095E0CF /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 524EDEC319B4C2550095E0CF /* UIKit.framework */; };
20 | 524EDEE319B4C2550095E0CF /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 524EDEE119B4C2550095E0CF /* InfoPlist.strings */; };
21 | 524EDEE519B4C2550095E0CF /* Demo_LayoutsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 524EDEE419B4C2550095E0CF /* Demo_LayoutsTests.m */; };
22 | 524EDEF019B4C45E0095E0CF /* HoneycombViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 524EDEEF19B4C45E0095E0CF /* HoneycombViewController.m */; };
23 | 524EDEF319B4C5770095E0CF /* HoneyCombLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 524EDEF219B4C5770095E0CF /* HoneyCombLayout.m */; };
24 | 524EDEF619B4CE6F0095E0CF /* HoneycombViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 524EDEF519B4CE6F0095E0CF /* HoneycombViewCell.m */; };
25 | /* End PBXBuildFile section */
26 |
27 | /* Begin PBXContainerItemProxy section */
28 | 524EDEDC19B4C2550095E0CF /* PBXContainerItemProxy */ = {
29 | isa = PBXContainerItemProxy;
30 | containerPortal = 524EDEB419B4C2550095E0CF /* Project object */;
31 | proxyType = 1;
32 | remoteGlobalIDString = 524EDEBB19B4C2550095E0CF;
33 | remoteInfo = "Demo-Layouts";
34 | };
35 | /* End PBXContainerItemProxy section */
36 |
37 | /* Begin PBXFileReference section */
38 | 524EDEBC19B4C2550095E0CF /* Demo-Layouts.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Demo-Layouts.app"; sourceTree = BUILT_PRODUCTS_DIR; };
39 | 524EDEBF19B4C2550095E0CF /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
40 | 524EDEC119B4C2550095E0CF /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
41 | 524EDEC319B4C2550095E0CF /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
42 | 524EDEC719B4C2550095E0CF /* Demo-Layouts-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Demo-Layouts-Info.plist"; sourceTree = ""; };
43 | 524EDEC919B4C2550095E0CF /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
44 | 524EDECB19B4C2550095E0CF /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
45 | 524EDECD19B4C2550095E0CF /* Demo-Layouts-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Demo-Layouts-Prefix.pch"; sourceTree = ""; };
46 | 524EDECE19B4C2550095E0CF /* LayoutAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LayoutAppDelegate.h; sourceTree = ""; };
47 | 524EDECF19B4C2550095E0CF /* LayoutAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LayoutAppDelegate.m; sourceTree = ""; };
48 | 524EDED119B4C2550095E0CF /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
49 | 524EDED719B4C2550095E0CF /* Demo-LayoutsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Demo-LayoutsTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 524EDED819B4C2550095E0CF /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
51 | 524EDEE019B4C2550095E0CF /* Demo-LayoutsTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Demo-LayoutsTests-Info.plist"; sourceTree = ""; };
52 | 524EDEE219B4C2550095E0CF /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
53 | 524EDEE419B4C2550095E0CF /* Demo_LayoutsTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Demo_LayoutsTests.m; sourceTree = ""; };
54 | 524EDEEE19B4C45E0095E0CF /* HoneycombViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HoneycombViewController.h; sourceTree = ""; };
55 | 524EDEEF19B4C45E0095E0CF /* HoneycombViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HoneycombViewController.m; sourceTree = ""; };
56 | 524EDEF119B4C5770095E0CF /* HoneyCombLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HoneyCombLayout.h; sourceTree = ""; };
57 | 524EDEF219B4C5770095E0CF /* HoneyCombLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HoneyCombLayout.m; sourceTree = ""; };
58 | 524EDEF419B4CE6F0095E0CF /* HoneycombViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HoneycombViewCell.h; sourceTree = ""; };
59 | 524EDEF519B4CE6F0095E0CF /* HoneycombViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HoneycombViewCell.m; sourceTree = ""; };
60 | /* End PBXFileReference section */
61 |
62 | /* Begin PBXFrameworksBuildPhase section */
63 | 524EDEB919B4C2550095E0CF /* Frameworks */ = {
64 | isa = PBXFrameworksBuildPhase;
65 | buildActionMask = 2147483647;
66 | files = (
67 | 524EDEC219B4C2550095E0CF /* CoreGraphics.framework in Frameworks */,
68 | 524EDEC419B4C2550095E0CF /* UIKit.framework in Frameworks */,
69 | 524EDEC019B4C2550095E0CF /* Foundation.framework in Frameworks */,
70 | );
71 | runOnlyForDeploymentPostprocessing = 0;
72 | };
73 | 524EDED419B4C2550095E0CF /* Frameworks */ = {
74 | isa = PBXFrameworksBuildPhase;
75 | buildActionMask = 2147483647;
76 | files = (
77 | 524EDED919B4C2550095E0CF /* XCTest.framework in Frameworks */,
78 | 524EDEDB19B4C2550095E0CF /* UIKit.framework in Frameworks */,
79 | 524EDEDA19B4C2550095E0CF /* Foundation.framework in Frameworks */,
80 | );
81 | runOnlyForDeploymentPostprocessing = 0;
82 | };
83 | /* End PBXFrameworksBuildPhase section */
84 |
85 | /* Begin PBXGroup section */
86 | 524EDEB319B4C2550095E0CF = {
87 | isa = PBXGroup;
88 | children = (
89 | 524EDEC519B4C2550095E0CF /* Demo-Layouts */,
90 | 524EDEDE19B4C2550095E0CF /* Demo-LayoutsTests */,
91 | 524EDEBE19B4C2550095E0CF /* Frameworks */,
92 | 524EDEBD19B4C2550095E0CF /* Products */,
93 | );
94 | sourceTree = "";
95 | };
96 | 524EDEBD19B4C2550095E0CF /* Products */ = {
97 | isa = PBXGroup;
98 | children = (
99 | 524EDEBC19B4C2550095E0CF /* Demo-Layouts.app */,
100 | 524EDED719B4C2550095E0CF /* Demo-LayoutsTests.xctest */,
101 | );
102 | name = Products;
103 | sourceTree = "";
104 | };
105 | 524EDEBE19B4C2550095E0CF /* Frameworks */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 524EDEBF19B4C2550095E0CF /* Foundation.framework */,
109 | 524EDEC119B4C2550095E0CF /* CoreGraphics.framework */,
110 | 524EDEC319B4C2550095E0CF /* UIKit.framework */,
111 | 524EDED819B4C2550095E0CF /* XCTest.framework */,
112 | );
113 | name = Frameworks;
114 | sourceTree = "";
115 | };
116 | 524EDEC519B4C2550095E0CF /* Demo-Layouts */ = {
117 | isa = PBXGroup;
118 | children = (
119 | 524EDECE19B4C2550095E0CF /* LayoutAppDelegate.h */,
120 | 524EDECF19B4C2550095E0CF /* LayoutAppDelegate.m */,
121 | 524EDEEE19B4C45E0095E0CF /* HoneycombViewController.h */,
122 | 524EDEEF19B4C45E0095E0CF /* HoneycombViewController.m */,
123 | 524EDEF419B4CE6F0095E0CF /* HoneycombViewCell.h */,
124 | 524EDEF519B4CE6F0095E0CF /* HoneycombViewCell.m */,
125 | 524EDEF119B4C5770095E0CF /* HoneyCombLayout.h */,
126 | 524EDEF219B4C5770095E0CF /* HoneyCombLayout.m */,
127 | 524EDED119B4C2550095E0CF /* Images.xcassets */,
128 | 524EDEC619B4C2550095E0CF /* Supporting Files */,
129 | );
130 | path = "Demo-Layouts";
131 | sourceTree = "";
132 | };
133 | 524EDEC619B4C2550095E0CF /* Supporting Files */ = {
134 | isa = PBXGroup;
135 | children = (
136 | 524EDEC719B4C2550095E0CF /* Demo-Layouts-Info.plist */,
137 | 524EDEC819B4C2550095E0CF /* InfoPlist.strings */,
138 | 524EDECB19B4C2550095E0CF /* main.m */,
139 | 524EDECD19B4C2550095E0CF /* Demo-Layouts-Prefix.pch */,
140 | );
141 | name = "Supporting Files";
142 | sourceTree = "";
143 | };
144 | 524EDEDE19B4C2550095E0CF /* Demo-LayoutsTests */ = {
145 | isa = PBXGroup;
146 | children = (
147 | 524EDEE419B4C2550095E0CF /* Demo_LayoutsTests.m */,
148 | 524EDEDF19B4C2550095E0CF /* Supporting Files */,
149 | );
150 | path = "Demo-LayoutsTests";
151 | sourceTree = "";
152 | };
153 | 524EDEDF19B4C2550095E0CF /* Supporting Files */ = {
154 | isa = PBXGroup;
155 | children = (
156 | 524EDEE019B4C2550095E0CF /* Demo-LayoutsTests-Info.plist */,
157 | 524EDEE119B4C2550095E0CF /* InfoPlist.strings */,
158 | );
159 | name = "Supporting Files";
160 | sourceTree = "";
161 | };
162 | /* End PBXGroup section */
163 |
164 | /* Begin PBXNativeTarget section */
165 | 524EDEBB19B4C2550095E0CF /* Demo-Layouts */ = {
166 | isa = PBXNativeTarget;
167 | buildConfigurationList = 524EDEE819B4C2550095E0CF /* Build configuration list for PBXNativeTarget "Demo-Layouts" */;
168 | buildPhases = (
169 | 524EDEB819B4C2550095E0CF /* Sources */,
170 | 524EDEB919B4C2550095E0CF /* Frameworks */,
171 | 524EDEBA19B4C2550095E0CF /* Resources */,
172 | );
173 | buildRules = (
174 | );
175 | dependencies = (
176 | );
177 | name = "Demo-Layouts";
178 | productName = "Demo-Layouts";
179 | productReference = 524EDEBC19B4C2550095E0CF /* Demo-Layouts.app */;
180 | productType = "com.apple.product-type.application";
181 | };
182 | 524EDED619B4C2550095E0CF /* Demo-LayoutsTests */ = {
183 | isa = PBXNativeTarget;
184 | buildConfigurationList = 524EDEEB19B4C2550095E0CF /* Build configuration list for PBXNativeTarget "Demo-LayoutsTests" */;
185 | buildPhases = (
186 | 524EDED319B4C2550095E0CF /* Sources */,
187 | 524EDED419B4C2550095E0CF /* Frameworks */,
188 | 524EDED519B4C2550095E0CF /* Resources */,
189 | );
190 | buildRules = (
191 | );
192 | dependencies = (
193 | 524EDEDD19B4C2550095E0CF /* PBXTargetDependency */,
194 | );
195 | name = "Demo-LayoutsTests";
196 | productName = "Demo-LayoutsTests";
197 | productReference = 524EDED719B4C2550095E0CF /* Demo-LayoutsTests.xctest */;
198 | productType = "com.apple.product-type.bundle.unit-test";
199 | };
200 | /* End PBXNativeTarget section */
201 |
202 | /* Begin PBXProject section */
203 | 524EDEB419B4C2550095E0CF /* Project object */ = {
204 | isa = PBXProject;
205 | attributes = {
206 | CLASSPREFIX = Layout;
207 | LastUpgradeCheck = 0510;
208 | ORGANIZATIONNAME = lanou3g;
209 | TargetAttributes = {
210 | 524EDED619B4C2550095E0CF = {
211 | TestTargetID = 524EDEBB19B4C2550095E0CF;
212 | };
213 | };
214 | };
215 | buildConfigurationList = 524EDEB719B4C2550095E0CF /* Build configuration list for PBXProject "Demo-Layouts" */;
216 | compatibilityVersion = "Xcode 3.2";
217 | developmentRegion = English;
218 | hasScannedForEncodings = 0;
219 | knownRegions = (
220 | en,
221 | );
222 | mainGroup = 524EDEB319B4C2550095E0CF;
223 | productRefGroup = 524EDEBD19B4C2550095E0CF /* Products */;
224 | projectDirPath = "";
225 | projectRoot = "";
226 | targets = (
227 | 524EDEBB19B4C2550095E0CF /* Demo-Layouts */,
228 | 524EDED619B4C2550095E0CF /* Demo-LayoutsTests */,
229 | );
230 | };
231 | /* End PBXProject section */
232 |
233 | /* Begin PBXResourcesBuildPhase section */
234 | 524EDEBA19B4C2550095E0CF /* Resources */ = {
235 | isa = PBXResourcesBuildPhase;
236 | buildActionMask = 2147483647;
237 | files = (
238 | 524EDECA19B4C2550095E0CF /* InfoPlist.strings in Resources */,
239 | 524EDED219B4C2550095E0CF /* Images.xcassets in Resources */,
240 | );
241 | runOnlyForDeploymentPostprocessing = 0;
242 | };
243 | 524EDED519B4C2550095E0CF /* Resources */ = {
244 | isa = PBXResourcesBuildPhase;
245 | buildActionMask = 2147483647;
246 | files = (
247 | 524EDEE319B4C2550095E0CF /* InfoPlist.strings in Resources */,
248 | );
249 | runOnlyForDeploymentPostprocessing = 0;
250 | };
251 | /* End PBXResourcesBuildPhase section */
252 |
253 | /* Begin PBXSourcesBuildPhase section */
254 | 524EDEB819B4C2550095E0CF /* Sources */ = {
255 | isa = PBXSourcesBuildPhase;
256 | buildActionMask = 2147483647;
257 | files = (
258 | 524EDED019B4C2550095E0CF /* LayoutAppDelegate.m in Sources */,
259 | 524EDEF019B4C45E0095E0CF /* HoneycombViewController.m in Sources */,
260 | 524EDEF319B4C5770095E0CF /* HoneyCombLayout.m in Sources */,
261 | 524EDEF619B4CE6F0095E0CF /* HoneycombViewCell.m in Sources */,
262 | 524EDECC19B4C2550095E0CF /* main.m in Sources */,
263 | );
264 | runOnlyForDeploymentPostprocessing = 0;
265 | };
266 | 524EDED319B4C2550095E0CF /* Sources */ = {
267 | isa = PBXSourcesBuildPhase;
268 | buildActionMask = 2147483647;
269 | files = (
270 | 524EDEE519B4C2550095E0CF /* Demo_LayoutsTests.m in Sources */,
271 | );
272 | runOnlyForDeploymentPostprocessing = 0;
273 | };
274 | /* End PBXSourcesBuildPhase section */
275 |
276 | /* Begin PBXTargetDependency section */
277 | 524EDEDD19B4C2550095E0CF /* PBXTargetDependency */ = {
278 | isa = PBXTargetDependency;
279 | target = 524EDEBB19B4C2550095E0CF /* Demo-Layouts */;
280 | targetProxy = 524EDEDC19B4C2550095E0CF /* PBXContainerItemProxy */;
281 | };
282 | /* End PBXTargetDependency section */
283 |
284 | /* Begin PBXVariantGroup section */
285 | 524EDEC819B4C2550095E0CF /* InfoPlist.strings */ = {
286 | isa = PBXVariantGroup;
287 | children = (
288 | 524EDEC919B4C2550095E0CF /* en */,
289 | );
290 | name = InfoPlist.strings;
291 | sourceTree = "";
292 | };
293 | 524EDEE119B4C2550095E0CF /* InfoPlist.strings */ = {
294 | isa = PBXVariantGroup;
295 | children = (
296 | 524EDEE219B4C2550095E0CF /* en */,
297 | );
298 | name = InfoPlist.strings;
299 | sourceTree = "";
300 | };
301 | /* End PBXVariantGroup section */
302 |
303 | /* Begin XCBuildConfiguration section */
304 | 524EDEE619B4C2550095E0CF /* 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 | 524EDEE719B4C2550095E0CF /* 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 | 524EDEE919B4C2550095E0CF /* 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 = "Demo-Layouts/Demo-Layouts-Prefix.pch";
381 | INFOPLIST_FILE = "Demo-Layouts/Demo-Layouts-Info.plist";
382 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
383 | PRODUCT_NAME = "$(TARGET_NAME)";
384 | WRAPPER_EXTENSION = app;
385 | };
386 | name = Debug;
387 | };
388 | 524EDEEA19B4C2550095E0CF /* Release */ = {
389 | isa = XCBuildConfiguration;
390 | buildSettings = {
391 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
392 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
393 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
394 | GCC_PREFIX_HEADER = "Demo-Layouts/Demo-Layouts-Prefix.pch";
395 | INFOPLIST_FILE = "Demo-Layouts/Demo-Layouts-Info.plist";
396 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
397 | PRODUCT_NAME = "$(TARGET_NAME)";
398 | WRAPPER_EXTENSION = app;
399 | };
400 | name = Release;
401 | };
402 | 524EDEEC19B4C2550095E0CF /* Debug */ = {
403 | isa = XCBuildConfiguration;
404 | buildSettings = {
405 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Demo-Layouts.app/Demo-Layouts";
406 | FRAMEWORK_SEARCH_PATHS = (
407 | "$(SDKROOT)/Developer/Library/Frameworks",
408 | "$(inherited)",
409 | "$(DEVELOPER_FRAMEWORKS_DIR)",
410 | );
411 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
412 | GCC_PREFIX_HEADER = "Demo-Layouts/Demo-Layouts-Prefix.pch";
413 | GCC_PREPROCESSOR_DEFINITIONS = (
414 | "DEBUG=1",
415 | "$(inherited)",
416 | );
417 | INFOPLIST_FILE = "Demo-LayoutsTests/Demo-LayoutsTests-Info.plist";
418 | PRODUCT_NAME = "$(TARGET_NAME)";
419 | TEST_HOST = "$(BUNDLE_LOADER)";
420 | WRAPPER_EXTENSION = xctest;
421 | };
422 | name = Debug;
423 | };
424 | 524EDEED19B4C2550095E0CF /* Release */ = {
425 | isa = XCBuildConfiguration;
426 | buildSettings = {
427 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Demo-Layouts.app/Demo-Layouts";
428 | FRAMEWORK_SEARCH_PATHS = (
429 | "$(SDKROOT)/Developer/Library/Frameworks",
430 | "$(inherited)",
431 | "$(DEVELOPER_FRAMEWORKS_DIR)",
432 | );
433 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
434 | GCC_PREFIX_HEADER = "Demo-Layouts/Demo-Layouts-Prefix.pch";
435 | INFOPLIST_FILE = "Demo-LayoutsTests/Demo-LayoutsTests-Info.plist";
436 | PRODUCT_NAME = "$(TARGET_NAME)";
437 | TEST_HOST = "$(BUNDLE_LOADER)";
438 | WRAPPER_EXTENSION = xctest;
439 | };
440 | name = Release;
441 | };
442 | /* End XCBuildConfiguration section */
443 |
444 | /* Begin XCConfigurationList section */
445 | 524EDEB719B4C2550095E0CF /* Build configuration list for PBXProject "Demo-Layouts" */ = {
446 | isa = XCConfigurationList;
447 | buildConfigurations = (
448 | 524EDEE619B4C2550095E0CF /* Debug */,
449 | 524EDEE719B4C2550095E0CF /* Release */,
450 | );
451 | defaultConfigurationIsVisible = 0;
452 | defaultConfigurationName = Release;
453 | };
454 | 524EDEE819B4C2550095E0CF /* Build configuration list for PBXNativeTarget "Demo-Layouts" */ = {
455 | isa = XCConfigurationList;
456 | buildConfigurations = (
457 | 524EDEE919B4C2550095E0CF /* Debug */,
458 | 524EDEEA19B4C2550095E0CF /* Release */,
459 | );
460 | defaultConfigurationIsVisible = 0;
461 | defaultConfigurationName = Release;
462 | };
463 | 524EDEEB19B4C2550095E0CF /* Build configuration list for PBXNativeTarget "Demo-LayoutsTests" */ = {
464 | isa = XCConfigurationList;
465 | buildConfigurations = (
466 | 524EDEEC19B4C2550095E0CF /* Debug */,
467 | 524EDEED19B4C2550095E0CF /* Release */,
468 | );
469 | defaultConfigurationIsVisible = 0;
470 | defaultConfigurationName = Release;
471 | };
472 | /* End XCConfigurationList section */
473 | };
474 | rootObject = 524EDEB419B4C2550095E0CF /* Project object */;
475 | }
476 |
--------------------------------------------------------------------------------
/Demo-TriangleLayout/TriangleLayout.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 5209930719A8FFC700356E9A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5209930619A8FFC700356E9A /* Foundation.framework */; };
11 | 5209930919A8FFC700356E9A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5209930819A8FFC700356E9A /* CoreGraphics.framework */; };
12 | 5209930B19A8FFC700356E9A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5209930A19A8FFC700356E9A /* UIKit.framework */; };
13 | 5209931119A8FFC700356E9A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5209930F19A8FFC700356E9A /* InfoPlist.strings */; };
14 | 5209931319A8FFC700356E9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5209931219A8FFC700356E9A /* main.m */; };
15 | 5209931719A8FFC700356E9A /* TriangleAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5209931619A8FFC700356E9A /* TriangleAppDelegate.m */; };
16 | 5209931A19A8FFC700356E9A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5209931819A8FFC700356E9A /* Main.storyboard */; };
17 | 5209931D19A8FFC700356E9A /* TriangleViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5209931C19A8FFC700356E9A /* TriangleViewController.m */; };
18 | 5209931F19A8FFC700356E9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5209931E19A8FFC700356E9A /* Images.xcassets */; };
19 | 5209932619A8FFC700356E9A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5209932519A8FFC700356E9A /* XCTest.framework */; };
20 | 5209932719A8FFC700356E9A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5209930619A8FFC700356E9A /* Foundation.framework */; };
21 | 5209932819A8FFC700356E9A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5209930A19A8FFC700356E9A /* UIKit.framework */; };
22 | 5209933019A8FFC700356E9A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5209932E19A8FFC700356E9A /* InfoPlist.strings */; };
23 | 5209933219A8FFC700356E9A /* TriangleLayoutTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5209933119A8FFC700356E9A /* TriangleLayoutTests.m */; };
24 | 5209933D19AA0EBA00356E9A /* Triangle.m in Sources */ = {isa = PBXBuildFile; fileRef = 5209933C19AA0EBA00356E9A /* Triangle.m */; };
25 | /* End PBXBuildFile section */
26 |
27 | /* Begin PBXContainerItemProxy section */
28 | 5209932919A8FFC700356E9A /* PBXContainerItemProxy */ = {
29 | isa = PBXContainerItemProxy;
30 | containerPortal = 520992FB19A8FFC600356E9A /* Project object */;
31 | proxyType = 1;
32 | remoteGlobalIDString = 5209930219A8FFC700356E9A;
33 | remoteInfo = TriangleLayout;
34 | };
35 | /* End PBXContainerItemProxy section */
36 |
37 | /* Begin PBXFileReference section */
38 | 5209930319A8FFC700356E9A /* TriangleLayout.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TriangleLayout.app; sourceTree = BUILT_PRODUCTS_DIR; };
39 | 5209930619A8FFC700356E9A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
40 | 5209930819A8FFC700356E9A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
41 | 5209930A19A8FFC700356E9A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
42 | 5209930E19A8FFC700356E9A /* TriangleLayout-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TriangleLayout-Info.plist"; sourceTree = ""; };
43 | 5209931019A8FFC700356E9A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
44 | 5209931219A8FFC700356E9A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
45 | 5209931419A8FFC700356E9A /* TriangleLayout-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "TriangleLayout-Prefix.pch"; sourceTree = ""; };
46 | 5209931519A8FFC700356E9A /* TriangleAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TriangleAppDelegate.h; sourceTree = ""; };
47 | 5209931619A8FFC700356E9A /* TriangleAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TriangleAppDelegate.m; sourceTree = ""; };
48 | 5209931919A8FFC700356E9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
49 | 5209931B19A8FFC700356E9A /* TriangleViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TriangleViewController.h; sourceTree = ""; };
50 | 5209931C19A8FFC700356E9A /* TriangleViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TriangleViewController.m; sourceTree = ""; };
51 | 5209931E19A8FFC700356E9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
52 | 5209932419A8FFC700356E9A /* TriangleLayoutTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TriangleLayoutTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
53 | 5209932519A8FFC700356E9A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
54 | 5209932D19A8FFC700356E9A /* TriangleLayoutTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TriangleLayoutTests-Info.plist"; sourceTree = ""; };
55 | 5209932F19A8FFC700356E9A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
56 | 5209933119A8FFC700356E9A /* TriangleLayoutTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TriangleLayoutTests.m; sourceTree = ""; };
57 | 5209933B19AA0EBA00356E9A /* Triangle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Triangle.h; sourceTree = ""; };
58 | 5209933C19AA0EBA00356E9A /* Triangle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Triangle.m; sourceTree = ""; };
59 | 5209933F19AA1FEE00356E9A /* 安国伟.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "安国伟.jpg"; sourceTree = ""; };
60 | 5209934019AA1FEE00356E9A /* 白佳洁.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "白佳洁.jpg"; sourceTree = ""; };
61 | 5209934119AA1FEE00356E9A /* 常宽.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "常宽.jpg"; sourceTree = ""; };
62 | 5209934219AA1FEE00356E9A /* 陈博.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "陈博.jpg"; sourceTree = ""; };
63 | 5209934319AA1FEE00356E9A /* 陈昕.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "陈昕.jpg"; sourceTree = ""; };
64 | 5209934419AA1FEE00356E9A /* 邓智.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "邓智.jpg"; sourceTree = ""; };
65 | 5209934519AA1FEE00356E9A /* 丁昊.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "丁昊.jpg"; sourceTree = ""; };
66 | 5209934619AA1FEE00356E9A /* 符之飞.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "符之飞.jpg"; sourceTree = ""; };
67 | 5209934719AA1FEE00356E9A /* 韩雪峰.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "韩雪峰.jpg"; sourceTree = ""; };
68 | 5209934819AA1FEE00356E9A /* 蒋寒霄.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "蒋寒霄.jpg"; sourceTree = ""; };
69 | 5209934919AA1FEE00356E9A /* 靳姜珊.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "靳姜珊.jpg"; sourceTree = ""; };
70 | 5209934A19AA1FEE00356E9A /* 李仲真.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "李仲真.jpg"; sourceTree = ""; };
71 | 5209934B19AA1FEE00356E9A /* 马宏达.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "马宏达.jpg"; sourceTree = ""; };
72 | 5209934C19AA1FEE00356E9A /* 马英.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "马英.jpg"; sourceTree = ""; };
73 | 5209934D19AA1FEE00356E9A /* 聂富龄.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "聂富龄.jpg"; sourceTree = ""; };
74 | 5209934E19AA1FEE00356E9A /* 邱尧尧.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "邱尧尧.jpg"; sourceTree = ""; };
75 | 5209934F19AA1FEE00356E9A /* 宋旭东.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "宋旭东.jpg"; sourceTree = ""; };
76 | 5209935019AA1FEE00356E9A /* 王晨.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "王晨.jpg"; sourceTree = ""; };
77 | 5209935119AA1FEE00356E9A /* 王建男.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "王建男.jpg"; sourceTree = ""; };
78 | 5209935219AA1FEE00356E9A /* 王兆云.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "王兆云.jpg"; sourceTree = ""; };
79 | 5209935319AA1FEE00356E9A /* 杨毅.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "杨毅.jpg"; sourceTree = ""; };
80 | 5209935419AA1FEE00356E9A /* 尹乙林.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "尹乙林.jpg"; sourceTree = ""; };
81 | 5209935519AA1FEE00356E9A /* 张冠超.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "张冠超.jpg"; sourceTree = ""; };
82 | 5209935619AA1FEE00356E9A /* 张宁浩.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "张宁浩.jpg"; sourceTree = ""; };
83 | 5209935719AA1FEE00356E9A /* 张启峰.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "张启峰.jpg"; sourceTree = ""; };
84 | 5209935819AA1FEE00356E9A /* 张世琦.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "张世琦.jpg"; sourceTree = ""; };
85 | 5209935919AA1FEE00356E9A /* 张雅琼.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "张雅琼.jpg"; sourceTree = ""; };
86 | 5209935A19AA1FEE00356E9A /* 赵生辉.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "赵生辉.jpg"; sourceTree = ""; };
87 | 5209935B19AA1FEE00356E9A /* 郑海坤.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "郑海坤.jpg"; sourceTree = ""; };
88 | 5209935C19AA1FEE00356E9A /* 周琦.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "周琦.jpg"; sourceTree = ""; };
89 | /* End PBXFileReference section */
90 |
91 | /* Begin PBXFrameworksBuildPhase section */
92 | 5209930019A8FFC700356E9A /* Frameworks */ = {
93 | isa = PBXFrameworksBuildPhase;
94 | buildActionMask = 2147483647;
95 | files = (
96 | 5209930919A8FFC700356E9A /* CoreGraphics.framework in Frameworks */,
97 | 5209930B19A8FFC700356E9A /* UIKit.framework in Frameworks */,
98 | 5209930719A8FFC700356E9A /* Foundation.framework in Frameworks */,
99 | );
100 | runOnlyForDeploymentPostprocessing = 0;
101 | };
102 | 5209932119A8FFC700356E9A /* Frameworks */ = {
103 | isa = PBXFrameworksBuildPhase;
104 | buildActionMask = 2147483647;
105 | files = (
106 | 5209932619A8FFC700356E9A /* XCTest.framework in Frameworks */,
107 | 5209932819A8FFC700356E9A /* UIKit.framework in Frameworks */,
108 | 5209932719A8FFC700356E9A /* Foundation.framework in Frameworks */,
109 | );
110 | runOnlyForDeploymentPostprocessing = 0;
111 | };
112 | /* End PBXFrameworksBuildPhase section */
113 |
114 | /* Begin PBXGroup section */
115 | 520992FA19A8FFC600356E9A = {
116 | isa = PBXGroup;
117 | children = (
118 | 5209930C19A8FFC700356E9A /* TriangleLayout */,
119 | 5209932B19A8FFC700356E9A /* TriangleLayoutTests */,
120 | 5209930519A8FFC700356E9A /* Frameworks */,
121 | 5209930419A8FFC700356E9A /* Products */,
122 | );
123 | sourceTree = "";
124 | };
125 | 5209930419A8FFC700356E9A /* Products */ = {
126 | isa = PBXGroup;
127 | children = (
128 | 5209930319A8FFC700356E9A /* TriangleLayout.app */,
129 | 5209932419A8FFC700356E9A /* TriangleLayoutTests.xctest */,
130 | );
131 | name = Products;
132 | sourceTree = "";
133 | };
134 | 5209930519A8FFC700356E9A /* Frameworks */ = {
135 | isa = PBXGroup;
136 | children = (
137 | 5209930619A8FFC700356E9A /* Foundation.framework */,
138 | 5209930819A8FFC700356E9A /* CoreGraphics.framework */,
139 | 5209930A19A8FFC700356E9A /* UIKit.framework */,
140 | 5209932519A8FFC700356E9A /* XCTest.framework */,
141 | );
142 | name = Frameworks;
143 | sourceTree = "";
144 | };
145 | 5209930C19A8FFC700356E9A /* TriangleLayout */ = {
146 | isa = PBXGroup;
147 | children = (
148 | 5209933E19AA1FE100356E9A /* img */,
149 | 5209931519A8FFC700356E9A /* TriangleAppDelegate.h */,
150 | 5209931619A8FFC700356E9A /* TriangleAppDelegate.m */,
151 | 5209931B19A8FFC700356E9A /* TriangleViewController.h */,
152 | 5209931C19A8FFC700356E9A /* TriangleViewController.m */,
153 | 5209933B19AA0EBA00356E9A /* Triangle.h */,
154 | 5209933C19AA0EBA00356E9A /* Triangle.m */,
155 | 5209931819A8FFC700356E9A /* Main.storyboard */,
156 | 5209931E19A8FFC700356E9A /* Images.xcassets */,
157 | 5209930D19A8FFC700356E9A /* Supporting Files */,
158 | );
159 | path = TriangleLayout;
160 | sourceTree = "";
161 | };
162 | 5209930D19A8FFC700356E9A /* Supporting Files */ = {
163 | isa = PBXGroup;
164 | children = (
165 | 5209930E19A8FFC700356E9A /* TriangleLayout-Info.plist */,
166 | 5209930F19A8FFC700356E9A /* InfoPlist.strings */,
167 | 5209931219A8FFC700356E9A /* main.m */,
168 | 5209931419A8FFC700356E9A /* TriangleLayout-Prefix.pch */,
169 | );
170 | name = "Supporting Files";
171 | sourceTree = "";
172 | };
173 | 5209932B19A8FFC700356E9A /* TriangleLayoutTests */ = {
174 | isa = PBXGroup;
175 | children = (
176 | 5209933119A8FFC700356E9A /* TriangleLayoutTests.m */,
177 | 5209932C19A8FFC700356E9A /* Supporting Files */,
178 | );
179 | path = TriangleLayoutTests;
180 | sourceTree = "";
181 | };
182 | 5209932C19A8FFC700356E9A /* Supporting Files */ = {
183 | isa = PBXGroup;
184 | children = (
185 | 5209932D19A8FFC700356E9A /* TriangleLayoutTests-Info.plist */,
186 | 5209932E19A8FFC700356E9A /* InfoPlist.strings */,
187 | );
188 | name = "Supporting Files";
189 | sourceTree = "";
190 | };
191 | 5209933E19AA1FE100356E9A /* img */ = {
192 | isa = PBXGroup;
193 | children = (
194 | 5209933F19AA1FEE00356E9A /* 安国伟.jpg */,
195 | 5209934019AA1FEE00356E9A /* 白佳洁.jpg */,
196 | 5209934119AA1FEE00356E9A /* 常宽.jpg */,
197 | 5209934219AA1FEE00356E9A /* 陈博.jpg */,
198 | 5209934319AA1FEE00356E9A /* 陈昕.jpg */,
199 | 5209934419AA1FEE00356E9A /* 邓智.jpg */,
200 | 5209934519AA1FEE00356E9A /* 丁昊.jpg */,
201 | 5209934619AA1FEE00356E9A /* 符之飞.jpg */,
202 | 5209934719AA1FEE00356E9A /* 韩雪峰.jpg */,
203 | 5209934819AA1FEE00356E9A /* 蒋寒霄.jpg */,
204 | 5209934919AA1FEE00356E9A /* 靳姜珊.jpg */,
205 | 5209934A19AA1FEE00356E9A /* 李仲真.jpg */,
206 | 5209934B19AA1FEE00356E9A /* 马宏达.jpg */,
207 | 5209934C19AA1FEE00356E9A /* 马英.jpg */,
208 | 5209934D19AA1FEE00356E9A /* 聂富龄.jpg */,
209 | 5209934E19AA1FEE00356E9A /* 邱尧尧.jpg */,
210 | 5209934F19AA1FEE00356E9A /* 宋旭东.jpg */,
211 | 5209935019AA1FEE00356E9A /* 王晨.jpg */,
212 | 5209935119AA1FEE00356E9A /* 王建男.jpg */,
213 | 5209935219AA1FEE00356E9A /* 王兆云.jpg */,
214 | 5209935319AA1FEE00356E9A /* 杨毅.jpg */,
215 | 5209935419AA1FEE00356E9A /* 尹乙林.jpg */,
216 | 5209935519AA1FEE00356E9A /* 张冠超.jpg */,
217 | 5209935619AA1FEE00356E9A /* 张宁浩.jpg */,
218 | 5209935719AA1FEE00356E9A /* 张启峰.jpg */,
219 | 5209935819AA1FEE00356E9A /* 张世琦.jpg */,
220 | 5209935919AA1FEE00356E9A /* 张雅琼.jpg */,
221 | 5209935A19AA1FEE00356E9A /* 赵生辉.jpg */,
222 | 5209935B19AA1FEE00356E9A /* 郑海坤.jpg */,
223 | 5209935C19AA1FEE00356E9A /* 周琦.jpg */,
224 | );
225 | name = img;
226 | sourceTree = "";
227 | };
228 | /* End PBXGroup section */
229 |
230 | /* Begin PBXNativeTarget section */
231 | 5209930219A8FFC700356E9A /* TriangleLayout */ = {
232 | isa = PBXNativeTarget;
233 | buildConfigurationList = 5209933519A8FFC700356E9A /* Build configuration list for PBXNativeTarget "TriangleLayout" */;
234 | buildPhases = (
235 | 520992FF19A8FFC700356E9A /* Sources */,
236 | 5209930019A8FFC700356E9A /* Frameworks */,
237 | 5209930119A8FFC700356E9A /* Resources */,
238 | );
239 | buildRules = (
240 | );
241 | dependencies = (
242 | );
243 | name = TriangleLayout;
244 | productName = TriangleLayout;
245 | productReference = 5209930319A8FFC700356E9A /* TriangleLayout.app */;
246 | productType = "com.apple.product-type.application";
247 | };
248 | 5209932319A8FFC700356E9A /* TriangleLayoutTests */ = {
249 | isa = PBXNativeTarget;
250 | buildConfigurationList = 5209933819A8FFC700356E9A /* Build configuration list for PBXNativeTarget "TriangleLayoutTests" */;
251 | buildPhases = (
252 | 5209932019A8FFC700356E9A /* Sources */,
253 | 5209932119A8FFC700356E9A /* Frameworks */,
254 | 5209932219A8FFC700356E9A /* Resources */,
255 | );
256 | buildRules = (
257 | );
258 | dependencies = (
259 | 5209932A19A8FFC700356E9A /* PBXTargetDependency */,
260 | );
261 | name = TriangleLayoutTests;
262 | productName = TriangleLayoutTests;
263 | productReference = 5209932419A8FFC700356E9A /* TriangleLayoutTests.xctest */;
264 | productType = "com.apple.product-type.bundle.unit-test";
265 | };
266 | /* End PBXNativeTarget section */
267 |
268 | /* Begin PBXProject section */
269 | 520992FB19A8FFC600356E9A /* Project object */ = {
270 | isa = PBXProject;
271 | attributes = {
272 | CLASSPREFIX = Triangle;
273 | LastUpgradeCheck = 0510;
274 | ORGANIZATIONNAME = lanou;
275 | TargetAttributes = {
276 | 5209932319A8FFC700356E9A = {
277 | TestTargetID = 5209930219A8FFC700356E9A;
278 | };
279 | };
280 | };
281 | buildConfigurationList = 520992FE19A8FFC600356E9A /* Build configuration list for PBXProject "TriangleLayout" */;
282 | compatibilityVersion = "Xcode 3.2";
283 | developmentRegion = English;
284 | hasScannedForEncodings = 0;
285 | knownRegions = (
286 | en,
287 | Base,
288 | );
289 | mainGroup = 520992FA19A8FFC600356E9A;
290 | productRefGroup = 5209930419A8FFC700356E9A /* Products */;
291 | projectDirPath = "";
292 | projectRoot = "";
293 | targets = (
294 | 5209930219A8FFC700356E9A /* TriangleLayout */,
295 | 5209932319A8FFC700356E9A /* TriangleLayoutTests */,
296 | );
297 | };
298 | /* End PBXProject section */
299 |
300 | /* Begin PBXResourcesBuildPhase section */
301 | 5209930119A8FFC700356E9A /* Resources */ = {
302 | isa = PBXResourcesBuildPhase;
303 | buildActionMask = 2147483647;
304 | files = (
305 | 5209931F19A8FFC700356E9A /* Images.xcassets in Resources */,
306 | 5209931119A8FFC700356E9A /* InfoPlist.strings in Resources */,
307 | 5209931A19A8FFC700356E9A /* Main.storyboard in Resources */,
308 | );
309 | runOnlyForDeploymentPostprocessing = 0;
310 | };
311 | 5209932219A8FFC700356E9A /* Resources */ = {
312 | isa = PBXResourcesBuildPhase;
313 | buildActionMask = 2147483647;
314 | files = (
315 | 5209933019A8FFC700356E9A /* InfoPlist.strings in Resources */,
316 | );
317 | runOnlyForDeploymentPostprocessing = 0;
318 | };
319 | /* End PBXResourcesBuildPhase section */
320 |
321 | /* Begin PBXSourcesBuildPhase section */
322 | 520992FF19A8FFC700356E9A /* Sources */ = {
323 | isa = PBXSourcesBuildPhase;
324 | buildActionMask = 2147483647;
325 | files = (
326 | 5209931719A8FFC700356E9A /* TriangleAppDelegate.m in Sources */,
327 | 5209931D19A8FFC700356E9A /* TriangleViewController.m in Sources */,
328 | 5209931319A8FFC700356E9A /* main.m in Sources */,
329 | 5209933D19AA0EBA00356E9A /* Triangle.m in Sources */,
330 | );
331 | runOnlyForDeploymentPostprocessing = 0;
332 | };
333 | 5209932019A8FFC700356E9A /* Sources */ = {
334 | isa = PBXSourcesBuildPhase;
335 | buildActionMask = 2147483647;
336 | files = (
337 | 5209933219A8FFC700356E9A /* TriangleLayoutTests.m in Sources */,
338 | );
339 | runOnlyForDeploymentPostprocessing = 0;
340 | };
341 | /* End PBXSourcesBuildPhase section */
342 |
343 | /* Begin PBXTargetDependency section */
344 | 5209932A19A8FFC700356E9A /* PBXTargetDependency */ = {
345 | isa = PBXTargetDependency;
346 | target = 5209930219A8FFC700356E9A /* TriangleLayout */;
347 | targetProxy = 5209932919A8FFC700356E9A /* PBXContainerItemProxy */;
348 | };
349 | /* End PBXTargetDependency section */
350 |
351 | /* Begin PBXVariantGroup section */
352 | 5209930F19A8FFC700356E9A /* InfoPlist.strings */ = {
353 | isa = PBXVariantGroup;
354 | children = (
355 | 5209931019A8FFC700356E9A /* en */,
356 | );
357 | name = InfoPlist.strings;
358 | sourceTree = "";
359 | };
360 | 5209931819A8FFC700356E9A /* Main.storyboard */ = {
361 | isa = PBXVariantGroup;
362 | children = (
363 | 5209931919A8FFC700356E9A /* Base */,
364 | );
365 | name = Main.storyboard;
366 | sourceTree = "";
367 | };
368 | 5209932E19A8FFC700356E9A /* InfoPlist.strings */ = {
369 | isa = PBXVariantGroup;
370 | children = (
371 | 5209932F19A8FFC700356E9A /* en */,
372 | );
373 | name = InfoPlist.strings;
374 | sourceTree = "";
375 | };
376 | /* End PBXVariantGroup section */
377 |
378 | /* Begin XCBuildConfiguration section */
379 | 5209933319A8FFC700356E9A /* Debug */ = {
380 | isa = XCBuildConfiguration;
381 | buildSettings = {
382 | ALWAYS_SEARCH_USER_PATHS = NO;
383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
384 | CLANG_CXX_LIBRARY = "libc++";
385 | CLANG_ENABLE_MODULES = YES;
386 | CLANG_ENABLE_OBJC_ARC = YES;
387 | CLANG_WARN_BOOL_CONVERSION = YES;
388 | CLANG_WARN_CONSTANT_CONVERSION = YES;
389 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
390 | CLANG_WARN_EMPTY_BODY = YES;
391 | CLANG_WARN_ENUM_CONVERSION = YES;
392 | CLANG_WARN_INT_CONVERSION = YES;
393 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
394 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
395 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
396 | COPY_PHASE_STRIP = NO;
397 | GCC_C_LANGUAGE_STANDARD = gnu99;
398 | GCC_DYNAMIC_NO_PIC = NO;
399 | GCC_OPTIMIZATION_LEVEL = 0;
400 | GCC_PREPROCESSOR_DEFINITIONS = (
401 | "DEBUG=1",
402 | "$(inherited)",
403 | );
404 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
405 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
406 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
407 | GCC_WARN_UNDECLARED_SELECTOR = YES;
408 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
409 | GCC_WARN_UNUSED_FUNCTION = YES;
410 | GCC_WARN_UNUSED_VARIABLE = YES;
411 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
412 | ONLY_ACTIVE_ARCH = YES;
413 | SDKROOT = iphoneos;
414 | };
415 | name = Debug;
416 | };
417 | 5209933419A8FFC700356E9A /* Release */ = {
418 | isa = XCBuildConfiguration;
419 | buildSettings = {
420 | ALWAYS_SEARCH_USER_PATHS = NO;
421 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
422 | CLANG_CXX_LIBRARY = "libc++";
423 | CLANG_ENABLE_MODULES = YES;
424 | CLANG_ENABLE_OBJC_ARC = YES;
425 | CLANG_WARN_BOOL_CONVERSION = YES;
426 | CLANG_WARN_CONSTANT_CONVERSION = YES;
427 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
428 | CLANG_WARN_EMPTY_BODY = YES;
429 | CLANG_WARN_ENUM_CONVERSION = YES;
430 | CLANG_WARN_INT_CONVERSION = YES;
431 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
432 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
433 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
434 | COPY_PHASE_STRIP = YES;
435 | ENABLE_NS_ASSERTIONS = NO;
436 | GCC_C_LANGUAGE_STANDARD = gnu99;
437 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
438 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
439 | GCC_WARN_UNDECLARED_SELECTOR = YES;
440 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
441 | GCC_WARN_UNUSED_FUNCTION = YES;
442 | GCC_WARN_UNUSED_VARIABLE = YES;
443 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
444 | SDKROOT = iphoneos;
445 | VALIDATE_PRODUCT = YES;
446 | };
447 | name = Release;
448 | };
449 | 5209933619A8FFC700356E9A /* Debug */ = {
450 | isa = XCBuildConfiguration;
451 | buildSettings = {
452 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
453 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
454 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
455 | GCC_PREFIX_HEADER = "TriangleLayout/TriangleLayout-Prefix.pch";
456 | INFOPLIST_FILE = "TriangleLayout/TriangleLayout-Info.plist";
457 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
458 | PRODUCT_NAME = "$(TARGET_NAME)";
459 | WRAPPER_EXTENSION = app;
460 | };
461 | name = Debug;
462 | };
463 | 5209933719A8FFC700356E9A /* Release */ = {
464 | isa = XCBuildConfiguration;
465 | buildSettings = {
466 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
467 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
468 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
469 | GCC_PREFIX_HEADER = "TriangleLayout/TriangleLayout-Prefix.pch";
470 | INFOPLIST_FILE = "TriangleLayout/TriangleLayout-Info.plist";
471 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
472 | PRODUCT_NAME = "$(TARGET_NAME)";
473 | WRAPPER_EXTENSION = app;
474 | };
475 | name = Release;
476 | };
477 | 5209933919A8FFC700356E9A /* Debug */ = {
478 | isa = XCBuildConfiguration;
479 | buildSettings = {
480 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/TriangleLayout.app/TriangleLayout";
481 | FRAMEWORK_SEARCH_PATHS = (
482 | "$(SDKROOT)/Developer/Library/Frameworks",
483 | "$(inherited)",
484 | "$(DEVELOPER_FRAMEWORKS_DIR)",
485 | );
486 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
487 | GCC_PREFIX_HEADER = "TriangleLayout/TriangleLayout-Prefix.pch";
488 | GCC_PREPROCESSOR_DEFINITIONS = (
489 | "DEBUG=1",
490 | "$(inherited)",
491 | );
492 | INFOPLIST_FILE = "TriangleLayoutTests/TriangleLayoutTests-Info.plist";
493 | PRODUCT_NAME = "$(TARGET_NAME)";
494 | TEST_HOST = "$(BUNDLE_LOADER)";
495 | WRAPPER_EXTENSION = xctest;
496 | };
497 | name = Debug;
498 | };
499 | 5209933A19A8FFC700356E9A /* Release */ = {
500 | isa = XCBuildConfiguration;
501 | buildSettings = {
502 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/TriangleLayout.app/TriangleLayout";
503 | FRAMEWORK_SEARCH_PATHS = (
504 | "$(SDKROOT)/Developer/Library/Frameworks",
505 | "$(inherited)",
506 | "$(DEVELOPER_FRAMEWORKS_DIR)",
507 | );
508 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
509 | GCC_PREFIX_HEADER = "TriangleLayout/TriangleLayout-Prefix.pch";
510 | INFOPLIST_FILE = "TriangleLayoutTests/TriangleLayoutTests-Info.plist";
511 | PRODUCT_NAME = "$(TARGET_NAME)";
512 | TEST_HOST = "$(BUNDLE_LOADER)";
513 | WRAPPER_EXTENSION = xctest;
514 | };
515 | name = Release;
516 | };
517 | /* End XCBuildConfiguration section */
518 |
519 | /* Begin XCConfigurationList section */
520 | 520992FE19A8FFC600356E9A /* Build configuration list for PBXProject "TriangleLayout" */ = {
521 | isa = XCConfigurationList;
522 | buildConfigurations = (
523 | 5209933319A8FFC700356E9A /* Debug */,
524 | 5209933419A8FFC700356E9A /* Release */,
525 | );
526 | defaultConfigurationIsVisible = 0;
527 | defaultConfigurationName = Release;
528 | };
529 | 5209933519A8FFC700356E9A /* Build configuration list for PBXNativeTarget "TriangleLayout" */ = {
530 | isa = XCConfigurationList;
531 | buildConfigurations = (
532 | 5209933619A8FFC700356E9A /* Debug */,
533 | 5209933719A8FFC700356E9A /* Release */,
534 | );
535 | defaultConfigurationIsVisible = 0;
536 | defaultConfigurationName = Release;
537 | };
538 | 5209933819A8FFC700356E9A /* Build configuration list for PBXNativeTarget "TriangleLayoutTests" */ = {
539 | isa = XCConfigurationList;
540 | buildConfigurations = (
541 | 5209933919A8FFC700356E9A /* Debug */,
542 | 5209933A19A8FFC700356E9A /* Release */,
543 | );
544 | defaultConfigurationIsVisible = 0;
545 | defaultConfigurationName = Release;
546 | };
547 | /* End XCConfigurationList section */
548 | };
549 | rootObject = 520992FB19A8FFC600356E9A /* Project object */;
550 | }
551 |
--------------------------------------------------------------------------------