├── demo.gif
├── LEWatchLayout
├── en.lproj
│ └── InfoPlist.strings
├── Resources
│ └── images
│ │ ├── map.png
│ │ ├── run.png
│ │ ├── alarm.png
│ │ ├── camera.png
│ │ ├── dots.png
│ │ ├── email.png
│ │ ├── movie.png
│ │ ├── music.png
│ │ ├── phone.png
│ │ ├── photo.png
│ │ ├── spiral.png
│ │ ├── time.png
│ │ ├── watch.png
│ │ ├── weixin.png
│ │ ├── favicon.ico
│ │ ├── message.png
│ │ ├── passbook.png
│ │ ├── setting.png
│ │ ├── twitter.png
│ │ ├── weather.png
│ │ ├── stopwatch.png
│ │ └── translate.png
├── WLViewController.h
├── WLAppDelegate.h
├── LEWatchLayout
│ ├── LETestImageCell.h
│ ├── LECollectionViewWatchLayout.h
│ ├── LETestImageCell.m
│ └── LECollectionViewWatchLayout.m
├── main.m
├── LEWatchLayout-Prefix.pch
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── LEWatchLayout-Info.plist
├── WLAppDelegate.m
├── WLViewController.m
└── Base.lproj
│ └── Main.storyboard
├── LEWatchLayoutTests
├── en.lproj
│ └── InfoPlist.strings
├── LEWatchLayoutTests-Info.plist
└── LEWatchLayoutTests.m
├── LEWatchLayout.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
├── .gitignore
├── LICENSE
└── README.md
/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/demo.gif
--------------------------------------------------------------------------------
/LEWatchLayout/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/LEWatchLayoutTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/map.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/run.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/run.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/alarm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/alarm.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/camera.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/camera.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/dots.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/dots.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/email.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/movie.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/movie.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/music.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/music.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/phone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/phone.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/photo.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/spiral.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/spiral.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/time.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/time.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/watch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/watch.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/weixin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/weixin.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/favicon.ico
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/message.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/message.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/passbook.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/passbook.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/setting.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/twitter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/twitter.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/weather.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/weather.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/stopwatch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/stopwatch.png
--------------------------------------------------------------------------------
/LEWatchLayout/Resources/images/translate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/libleo/LEWatchLayout/HEAD/LEWatchLayout/Resources/images/translate.png
--------------------------------------------------------------------------------
/LEWatchLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LEWatchLayout/WLViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // WLViewController.h
3 | // LEWatchLayout
4 | //
5 | // Created by Leo on 14-9-20.
6 | // Copyright (c) 2014年 Leo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface WLViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/LEWatchLayout/WLAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // WLAppDelegate.h
3 | // LEWatchLayout
4 | //
5 | // Created by Leo on 14-9-20.
6 | // Copyright (c) 2014年 Leo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface WLAppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/LEWatchLayout/LEWatchLayout/LETestImageCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // PGImageCell.h
3 | // Playground
4 | //
5 | // Created by leo on 14-9-19.
6 | // Copyright (c) 2014年 LGear. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface LETestImageCell : UICollectionViewCell
12 |
13 | @property (nonatomic, strong) UIImageView *imageView;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/LEWatchLayout/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // LEWatchLayout
4 | //
5 | // Created by Leo on 14-9-20.
6 | // Copyright (c) 2014年 Leo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "WLAppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([WLAppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/LEWatchLayout/LEWatchLayout-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 |
--------------------------------------------------------------------------------
/LEWatchLayout/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 | }
--------------------------------------------------------------------------------
/LEWatchLayout/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 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | build/
4 | *.pbxuser
5 | !default.pbxuser
6 | *.mode1v3
7 | !default.mode1v3
8 | *.mode2v3
9 | !default.mode2v3
10 | *.perspectivev3
11 | !default.perspectivev3
12 | xcuserdata
13 | *.xccheckout
14 | *.moved-aside
15 | DerivedData
16 | *.hmap
17 | *.ipa
18 | *.xcuserstate
19 |
20 | # temp file
21 | .DS_Store
22 | *.swp
23 |
24 | # CocoaPods
25 | #
26 | # We recommend against adding the Pods directory to your .gitignore. However
27 | # you should judge for yourself, the pros and cons are mentioned at:
28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
29 | #
30 | # Pods/
31 |
--------------------------------------------------------------------------------
/LEWatchLayout/LEWatchLayout/LECollectionViewWatchLayout.h:
--------------------------------------------------------------------------------
1 | //
2 | // UICollectionViewWatchLayout.h
3 | // Playground
4 | //
5 | // Created by leo on 14-9-19.
6 | // Copyright (c) 2014年 LGear. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface LECollectionViewWatchLayout : UICollectionViewLayout
12 |
13 | @property (nonatomic, assign) CGFloat circleRadius;
14 | @property (nonatomic, assign) CGFloat circleInterval;
15 |
16 | @end
17 |
18 | @interface NSMutableArray (FixSize)
19 |
20 | + (instancetype)arrayWithCount:(NSUInteger)count;
21 | - (id)lastNullObject;
22 | - (NSInteger)lastNullObjectIndex;
23 | - (BOOL)hasNull;
24 | - (void)replaceLastNullObject:(id)obj;
25 |
26 | @end
--------------------------------------------------------------------------------
/LEWatchLayoutTests/LEWatchLayoutTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | le.gear.${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 |
--------------------------------------------------------------------------------
/LEWatchLayoutTests/LEWatchLayoutTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // LEWatchLayoutTests.m
3 | // LEWatchLayoutTests
4 | //
5 | // Created by Leo on 14-9-20.
6 | // Copyright (c) 2014年 Leo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface LEWatchLayoutTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation LEWatchLayoutTests
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 |
--------------------------------------------------------------------------------
/LEWatchLayout/LEWatchLayout/LETestImageCell.m:
--------------------------------------------------------------------------------
1 | //
2 | // PGImageCell.m
3 | // Playground
4 | //
5 | // Created by leo on 14-9-19.
6 | // Copyright (c) 2014年 LGear. All rights reserved.
7 | //
8 |
9 | #import "LETestImageCell.h"
10 |
11 | @implementation LETestImageCell
12 |
13 | - (instancetype)initWithFrame:(CGRect)frame
14 | {
15 | if (self = [super initWithFrame:frame]) {
16 | [self _init];
17 | }
18 | return self;
19 | }
20 |
21 | - (void)_init
22 | {
23 | // TODO: initialize
24 | self.imageView = [[UIImageView alloc] initWithFrame:self.bounds];
25 |
26 | // TODO: configure
27 | self.clipsToBounds = YES;
28 |
29 | self.imageView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
30 |
31 | // TODO: add subviews
32 | [self addSubview:self.imageView];
33 |
34 | // TODO: add constriants
35 | }
36 |
37 | - (void)layoutSubviews
38 | {
39 | self.layer.cornerRadius = CGRectGetWidth(self.bounds)/2.0;
40 | }
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #LEWatchLayout
2 |
3 | Apple Watch Layout base on UICollectionViewLayout
4 |
5 | 
6 |
7 | Simple usage:
8 |
9 | - copy folder `LEWatchLayout` to your project
10 |
11 | - import `LECollectionWatchLayout.h` to where need it
12 |
13 | - use layout
14 |
15 | ``` objective-c
16 | self.collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 320.0) collectionViewLayout:[[LECollectionViewWatchLayout alloc] init]];
17 | [self.collectionView registerClass:[LETestImageCell class] forCellWithReuseIdentifier:cellIdentifier];
18 | ```
19 |
20 | - date source write like this
21 |
22 | ``` objective-c
23 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
24 | {
25 | return 19;//37;
26 | }
27 |
28 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
29 | {
30 | LETestImageCell *cell = (LETestImageCell *)[collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
31 | cell.imageView.image = [UIImage imageNamed:images[[indexPath row]%[images count]]];
32 | return cell;
33 | }
34 | ```
35 |
36 | #Licensing
37 |
38 | [MIT-LICENSE](http://opensource.org/licenses/MIT)
39 |
40 | #Contributions
41 |
42 |
--------------------------------------------------------------------------------
/LEWatchLayout/LEWatchLayout-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | le.gear.${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 |
--------------------------------------------------------------------------------
/LEWatchLayout/WLAppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // WLAppDelegate.m
3 | // LEWatchLayout
4 | //
5 | // Created by Leo on 14-9-20.
6 | // Copyright (c) 2014年 Leo. All rights reserved.
7 | //
8 |
9 | #import "WLAppDelegate.h"
10 |
11 | @implementation WLAppDelegate
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 |
--------------------------------------------------------------------------------
/LEWatchLayout/WLViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // WLViewController.m
3 | // LEWatchLayout
4 | //
5 | // Created by Leo on 14-9-20.
6 | // Copyright (c) 2014年 Leo. All rights reserved.
7 | //
8 |
9 | #import "WLViewController.h"
10 | #import "LETestImageCell.h"
11 | #import "LECollectionViewWatchLayout.h"
12 |
13 | static NSArray *images;
14 | static NSString *cellIdentifier = @"iden";
15 |
16 | @interface WLViewController ()
17 |
18 | @property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
19 | @end
20 |
21 | @implementation WLViewController
22 |
23 | + (void)initialize
24 | {
25 | images = @[@"alarm.png",
26 | @"camera.png",
27 | @"time.png",
28 | @"dots.png",
29 | @"email.png",
30 | @"map.png",
31 | @"message.png",
32 | @"movie.png",
33 | @"music.png",
34 | @"passbook.png",
35 | @"phone.png",
36 | @"photo.png",
37 | @"run.png",
38 | @"setting.png",
39 | @"spiral.png",
40 | @"stopwatch.png",
41 | @"translate.png",
42 | @"twitter.png",
43 | @"weather.png",
44 | @"weixin.png",];
45 | }
46 |
47 | #pragma mark life cycle
48 |
49 | - (void)viewDidLoad
50 | {
51 | [super viewDidLoad];
52 | // self.collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 320.0) collectionViewLayout:[[LECollectionViewWatchLayout alloc] init]];
53 | [self.collectionView registerClass:[LETestImageCell class] forCellWithReuseIdentifier:cellIdentifier];
54 | }
55 |
56 | #pragma mark UICollectionViewDataSource
57 |
58 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
59 | {
60 | return 19;//37;
61 | }
62 |
63 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
64 | {
65 | LETestImageCell *cell = (LETestImageCell *)[collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
66 | cell.imageView.image = [UIImage imageNamed:images[[indexPath row]%[images count]]];
67 | return cell;
68 | }
69 |
70 | #pragma mark UICollectionViewDelegate
71 |
72 | - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
73 | {
74 |
75 | }
76 |
77 | @end
78 |
--------------------------------------------------------------------------------
/LEWatchLayout/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/LEWatchLayout/LEWatchLayout/LECollectionViewWatchLayout.m:
--------------------------------------------------------------------------------
1 | //
2 | // UICollectionViewWatchLayout.m
3 | // Playground
4 | //
5 | // Created by leo on 14-9-19.
6 | // Copyright (c) 2014年 LGear. All rights reserved.
7 | //
8 |
9 | #import "LECollectionViewWatchLayout.h"
10 |
11 | @implementation LECollectionViewWatchLayout
12 | {
13 | // layout params
14 | NSInteger _count;
15 |
16 | NSInteger _hexWidth;
17 | NSInteger _maxWidth;
18 |
19 | NSMutableArray *_attributes;
20 | NSMutableArray *_hexSquare;
21 |
22 | // transform params
23 | CGFloat _fixSizeRadius;
24 | CGFloat _offsetDivid;
25 | }
26 |
27 | - (id)initWithCoder:(NSCoder *)aDecoder
28 | {
29 | if (self = [super initWithCoder:aDecoder]) {
30 | [self _init];
31 | }
32 | return self;
33 | }
34 |
35 | - (instancetype)init
36 | {
37 | if (self = [super init]) {
38 | [self _init];
39 | }
40 | return self;
41 | }
42 |
43 | - (void)_init
44 | {
45 | self.circleInterval = 5.0;
46 | self.circleRadius = 30.0;
47 | _attributes = [NSMutableArray array];
48 | _hexSquare = [NSMutableArray array];
49 |
50 | _fixSizeRadius = 50.0;
51 | _offsetDivid = 3.0;
52 | }
53 |
54 | #pragma mark UICollectionViewLayout
55 |
56 | - (void)prepareLayout
57 | {
58 | _count = [self.collectionView numberOfItemsInSection:0];
59 | _hexWidth = [self _layoutHexWidthWithCount:_count];
60 | _maxWidth = _hexWidth + _hexWidth - 1;
61 | [self _fillAttributes];
62 | }
63 |
64 | - (CGSize)collectionViewContentSize
65 | {
66 | return self.collectionView.bounds.size;
67 | }
68 |
69 | - (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect
70 | {
71 | return _attributes;
72 | }
73 |
74 | - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds
75 | {
76 | [UIView animateWithDuration:0.0 animations:^(void){
77 | [self _calculateTransforms];
78 | }];
79 | return NO;
80 | }
81 |
82 | - (void)prepareForCollectionViewUpdates:(NSArray *)updateItems
83 | {
84 |
85 | }
86 |
87 | #pragma mark self method
88 |
89 | - (void)_calculateTransforms
90 | {
91 | CGPoint offsetCenter = CGPointMake(CGRectGetMidX(self.collectionView.bounds),
92 | CGRectGetMidY(self.collectionView.bounds));
93 | for (UICollectionViewCell *cell in self.collectionView.visibleCells) {
94 | [self _transformItem:cell withCenter:offsetCenter];
95 | }
96 | }
97 |
98 | - (void)_transformItem:(id)item withCenter:(CGPoint)offsetCenter
99 | {
100 | CGFloat xof = item.center.x - offsetCenter.x;
101 | CGFloat yof = item.center.y - offsetCenter.y;
102 | CGFloat absOffset = sqrtf(xof * xof + yof * yof);
103 | CGFloat exp = absOffset < _fixSizeRadius ? 0.0 : (absOffset - _fixSizeRadius)/80.0;
104 | CGFloat scale = powf(0.5f, exp);
105 | if (scale < 0.1) {
106 | scale = 0.1;
107 | }
108 |
109 | CGAffineTransform scaleTr = CGAffineTransformMakeScale(scale, scale);
110 | CGAffineTransform transTr = CGAffineTransformMakeTranslation((scale - 1)*xof/_offsetDivid,
111 | (scale - 1)*yof/_offsetDivid);
112 | // NSLog(@"trans is %@, offset is %f", NSStringFromCGAffineTransform(transTr), absOffset);
113 | item.transform = CGAffineTransformConcat(scaleTr, transTr);
114 | }
115 |
116 | - (NSInteger)_layoutHexWidthWithCount:(NSInteger)count
117 | {
118 | double m = 2.0 - 2.0 * count;
119 | double d = 3.0 - pow(-3.0 + 12.0 * count, 0.5);
120 | if (d == 0.0) {
121 | return 1;
122 | } else {
123 | return (NSInteger)ceil(m/d);
124 | }
125 | }
126 |
127 | - (void)_fillAttributes
128 | {
129 | // prepare
130 | [_attributes removeAllObjects];
131 | [_hexSquare removeAllObjects];
132 | CGPoint offsetCenter = CGPointMake(CGRectGetMidX(self.collectionView.bounds),
133 | CGRectGetMidY(self.collectionView.bounds));
134 |
135 | [_hexSquare addObject:[NSMutableArray arrayWithCount:_maxWidth]];
136 | for (NSInteger row = 0; row < _maxWidth - _hexWidth; row++) {
137 | [_hexSquare addObject:[NSMutableArray arrayWithCount:_maxWidth - row - 1]];
138 | [_hexSquare addObject:[NSMutableArray arrayWithCount:_maxWidth - row - 1]];
139 | }
140 |
141 | // fill
142 | for (NSInteger i = 0; i < _count; i++) {
143 | UICollectionViewLayoutAttributes *attr = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:[NSIndexPath indexPathForRow:i inSection:0]];
144 | attr.size = CGSizeMake(self.circleRadius * 2.0, self.circleRadius * 2.0);
145 | for (NSMutableArray *rowArray in _hexSquare) {
146 | if ([rowArray hasNull]) {
147 | NSInteger rowNumber = [_hexSquare indexOfObject:rowArray];
148 | NSInteger preRowNumber = 0;
149 | if (rowNumber == 0) {
150 | attr.center = CGPointMake(CGRectGetMidX(self.collectionView.bounds) + (i - floor(_maxWidth/2.0)) * [self _selfInterval],
151 | CGRectGetMidY(self.collectionView.bounds));
152 | } else if (rowNumber%2 == 1) { // 单数
153 | preRowNumber = rowNumber < 2 ? 0 : rowNumber - 2;
154 | NSInteger objIndex = [rowArray lastNullObjectIndex];
155 | UICollectionViewLayoutAttributes *preAttr = [[_hexSquare objectAtIndex:preRowNumber] objectAtIndex:objIndex];
156 | attr.center = CGPointMake(preAttr.center.x + cos(M_PI/3.0) * [self _selfInterval],
157 | preAttr.center.y - sin(M_PI/3.0) * [self _selfInterval]);
158 | } else if (rowNumber%2 == 0) {
159 | preRowNumber = rowNumber - 2;
160 | NSInteger objIndex = [rowArray lastNullObjectIndex];
161 | UICollectionViewLayoutAttributes *preAttr = [[_hexSquare objectAtIndex:preRowNumber] objectAtIndex:objIndex];
162 | attr.center = CGPointMake(preAttr.center.x + cos(M_PI/3.0) * [self _selfInterval],
163 | preAttr.center.y + sin(M_PI/3.0) * [self _selfInterval]);
164 | }
165 | [rowArray replaceLastNullObject:attr];
166 | [_attributes addObject:attr];
167 | [self _transformItem:attr withCenter:offsetCenter];
168 | break;
169 | }
170 | }
171 | }
172 | }
173 |
174 | - (CGFloat)_selfInterval
175 | {
176 | return self.circleRadius * 2.0 + self.circleInterval;
177 | }
178 |
179 | @end
180 |
181 |
182 | @implementation NSMutableArray (FixSize)
183 |
184 | + (instancetype)arrayWithCount:(NSUInteger)count
185 | {
186 | NSMutableArray *tempArray = [NSMutableArray arrayWithCapacity:count];
187 | for (NSUInteger i = 0 ; i < count; i++) {
188 | [tempArray addObject:[[NSNull alloc] init]];
189 | }
190 | return tempArray;
191 | }
192 |
193 | - (id)lastNullObject
194 | {
195 | for (NSObject *obj in self) {
196 | if ([obj isKindOfClass:[NSNull class]]) {
197 | return obj;
198 | }
199 | }
200 | return nil;
201 | }
202 |
203 | - (NSInteger)lastNullObjectIndex
204 | {
205 | return [self indexOfObject:[self lastNullObject]];
206 | }
207 |
208 | - (BOOL)hasNull
209 | {
210 | return [self lastNullObject] == nil ? NO : YES;
211 | }
212 |
213 | - (void)replaceLastNullObject:(id)obj
214 | {
215 | NSObject *lastNullObj = [self lastNullObject];
216 | if ([lastNullObj isKindOfClass:[NSNull class]]) {
217 | [self replaceObjectAtIndex:[self indexOfObject:lastNullObj] withObject:obj];
218 | }
219 | }
220 |
221 | @end
222 |
--------------------------------------------------------------------------------
/LEWatchLayout.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | B3DB128D19CD403700A80946 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3DB128C19CD403700A80946 /* Foundation.framework */; };
11 | B3DB128F19CD403700A80946 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3DB128E19CD403700A80946 /* CoreGraphics.framework */; };
12 | B3DB129119CD403700A80946 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3DB129019CD403700A80946 /* UIKit.framework */; };
13 | B3DB129719CD403700A80946 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = B3DB129519CD403700A80946 /* InfoPlist.strings */; };
14 | B3DB129919CD403700A80946 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = B3DB129819CD403700A80946 /* main.m */; };
15 | B3DB129D19CD403700A80946 /* WLAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B3DB129C19CD403700A80946 /* WLAppDelegate.m */; };
16 | B3DB12A019CD403700A80946 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B3DB129E19CD403700A80946 /* Main.storyboard */; };
17 | B3DB12A319CD403700A80946 /* WLViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B3DB12A219CD403700A80946 /* WLViewController.m */; };
18 | B3DB12A519CD403700A80946 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12A419CD403700A80946 /* Images.xcassets */; };
19 | B3DB12AC19CD403700A80946 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3DB12AB19CD403700A80946 /* XCTest.framework */; };
20 | B3DB12AD19CD403700A80946 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3DB128C19CD403700A80946 /* Foundation.framework */; };
21 | B3DB12AE19CD403700A80946 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3DB129019CD403700A80946 /* UIKit.framework */; };
22 | B3DB12B619CD403700A80946 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12B419CD403700A80946 /* InfoPlist.strings */; };
23 | B3DB12B819CD403700A80946 /* LEWatchLayoutTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B3DB12B719CD403700A80946 /* LEWatchLayoutTests.m */; };
24 | B3DB12DC19CD407800A80946 /* LECollectionViewWatchLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = B3DB12C319CD407800A80946 /* LECollectionViewWatchLayout.m */; };
25 | B3DB12DD19CD407800A80946 /* alarm.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12C619CD407800A80946 /* alarm.png */; };
26 | B3DB12DE19CD407800A80946 /* camera.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12C719CD407800A80946 /* camera.png */; };
27 | B3DB12DF19CD407800A80946 /* dots.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12C819CD407800A80946 /* dots.png */; };
28 | B3DB12E019CD407800A80946 /* email.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12C919CD407800A80946 /* email.png */; };
29 | B3DB12E119CD407800A80946 /* favicon.ico in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12CA19CD407800A80946 /* favicon.ico */; };
30 | B3DB12E219CD407800A80946 /* map.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12CB19CD407800A80946 /* map.png */; };
31 | B3DB12E319CD407800A80946 /* message.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12CC19CD407800A80946 /* message.png */; };
32 | B3DB12E419CD407800A80946 /* movie.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12CD19CD407800A80946 /* movie.png */; };
33 | B3DB12E519CD407800A80946 /* music.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12CE19CD407800A80946 /* music.png */; };
34 | B3DB12E619CD407800A80946 /* passbook.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12CF19CD407800A80946 /* passbook.png */; };
35 | B3DB12E719CD407800A80946 /* phone.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12D019CD407800A80946 /* phone.png */; };
36 | B3DB12E819CD407800A80946 /* photo.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12D119CD407800A80946 /* photo.png */; };
37 | B3DB12E919CD407800A80946 /* run.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12D219CD407800A80946 /* run.png */; };
38 | B3DB12EA19CD407800A80946 /* setting.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12D319CD407800A80946 /* setting.png */; };
39 | B3DB12EB19CD407800A80946 /* spiral.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12D419CD407800A80946 /* spiral.png */; };
40 | B3DB12EC19CD407800A80946 /* stopwatch.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12D519CD407800A80946 /* stopwatch.png */; };
41 | B3DB12ED19CD407800A80946 /* time.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12D619CD407800A80946 /* time.png */; };
42 | B3DB12EE19CD407800A80946 /* translate.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12D719CD407800A80946 /* translate.png */; };
43 | B3DB12EF19CD407800A80946 /* twitter.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12D819CD407800A80946 /* twitter.png */; };
44 | B3DB12F019CD407800A80946 /* watch.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12D919CD407800A80946 /* watch.png */; };
45 | B3DB12F119CD407800A80946 /* weather.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12DA19CD407800A80946 /* weather.png */; };
46 | B3DB12F219CD407800A80946 /* weixin.png in Resources */ = {isa = PBXBuildFile; fileRef = B3DB12DB19CD407800A80946 /* weixin.png */; };
47 | B3DB12F519CD41A600A80946 /* LETestImageCell.m in Sources */ = {isa = PBXBuildFile; fileRef = B3DB12F419CD41A600A80946 /* LETestImageCell.m */; };
48 | /* End PBXBuildFile section */
49 |
50 | /* Begin PBXContainerItemProxy section */
51 | B3DB12AF19CD403700A80946 /* PBXContainerItemProxy */ = {
52 | isa = PBXContainerItemProxy;
53 | containerPortal = B3DB128119CD403700A80946 /* Project object */;
54 | proxyType = 1;
55 | remoteGlobalIDString = B3DB128819CD403700A80946;
56 | remoteInfo = LEWatchLayout;
57 | };
58 | /* End PBXContainerItemProxy section */
59 |
60 | /* Begin PBXFileReference section */
61 | B3DB128919CD403700A80946 /* LEWatchLayout.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LEWatchLayout.app; sourceTree = BUILT_PRODUCTS_DIR; };
62 | B3DB128C19CD403700A80946 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
63 | B3DB128E19CD403700A80946 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
64 | B3DB129019CD403700A80946 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
65 | B3DB129419CD403700A80946 /* LEWatchLayout-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "LEWatchLayout-Info.plist"; sourceTree = ""; };
66 | B3DB129619CD403700A80946 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
67 | B3DB129819CD403700A80946 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
68 | B3DB129A19CD403700A80946 /* LEWatchLayout-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LEWatchLayout-Prefix.pch"; sourceTree = ""; };
69 | B3DB129B19CD403700A80946 /* WLAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WLAppDelegate.h; sourceTree = ""; };
70 | B3DB129C19CD403700A80946 /* WLAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WLAppDelegate.m; sourceTree = ""; };
71 | B3DB129F19CD403700A80946 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
72 | B3DB12A119CD403700A80946 /* WLViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WLViewController.h; sourceTree = ""; };
73 | B3DB12A219CD403700A80946 /* WLViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WLViewController.m; sourceTree = ""; };
74 | B3DB12A419CD403700A80946 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
75 | B3DB12AA19CD403700A80946 /* LEWatchLayoutTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LEWatchLayoutTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
76 | B3DB12AB19CD403700A80946 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
77 | B3DB12B319CD403700A80946 /* LEWatchLayoutTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "LEWatchLayoutTests-Info.plist"; sourceTree = ""; };
78 | B3DB12B519CD403700A80946 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
79 | B3DB12B719CD403700A80946 /* LEWatchLayoutTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LEWatchLayoutTests.m; sourceTree = ""; };
80 | B3DB12C219CD407800A80946 /* LECollectionViewWatchLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LECollectionViewWatchLayout.h; sourceTree = ""; };
81 | B3DB12C319CD407800A80946 /* LECollectionViewWatchLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LECollectionViewWatchLayout.m; sourceTree = ""; };
82 | B3DB12C619CD407800A80946 /* alarm.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = alarm.png; sourceTree = ""; };
83 | B3DB12C719CD407800A80946 /* camera.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = camera.png; sourceTree = ""; };
84 | B3DB12C819CD407800A80946 /* dots.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = dots.png; sourceTree = ""; };
85 | B3DB12C919CD407800A80946 /* email.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = email.png; sourceTree = ""; };
86 | B3DB12CA19CD407800A80946 /* favicon.ico */ = {isa = PBXFileReference; lastKnownFileType = image.ico; path = favicon.ico; sourceTree = ""; };
87 | B3DB12CB19CD407800A80946 /* map.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = map.png; sourceTree = ""; };
88 | B3DB12CC19CD407800A80946 /* message.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = message.png; sourceTree = ""; };
89 | B3DB12CD19CD407800A80946 /* movie.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = movie.png; sourceTree = ""; };
90 | B3DB12CE19CD407800A80946 /* music.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = music.png; sourceTree = ""; };
91 | B3DB12CF19CD407800A80946 /* passbook.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = passbook.png; sourceTree = ""; };
92 | B3DB12D019CD407800A80946 /* phone.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = phone.png; sourceTree = ""; };
93 | B3DB12D119CD407800A80946 /* photo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = photo.png; sourceTree = ""; };
94 | B3DB12D219CD407800A80946 /* run.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = run.png; sourceTree = ""; };
95 | B3DB12D319CD407800A80946 /* setting.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = setting.png; sourceTree = ""; };
96 | B3DB12D419CD407800A80946 /* spiral.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = spiral.png; sourceTree = ""; };
97 | B3DB12D519CD407800A80946 /* stopwatch.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = stopwatch.png; sourceTree = ""; };
98 | B3DB12D619CD407800A80946 /* time.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = time.png; sourceTree = ""; };
99 | B3DB12D719CD407800A80946 /* translate.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = translate.png; sourceTree = ""; };
100 | B3DB12D819CD407800A80946 /* twitter.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = twitter.png; sourceTree = ""; };
101 | B3DB12D919CD407800A80946 /* watch.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = watch.png; sourceTree = ""; };
102 | B3DB12DA19CD407800A80946 /* weather.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = weather.png; sourceTree = ""; };
103 | B3DB12DB19CD407800A80946 /* weixin.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = weixin.png; sourceTree = ""; };
104 | B3DB12F319CD41A600A80946 /* LETestImageCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LETestImageCell.h; sourceTree = ""; };
105 | B3DB12F419CD41A600A80946 /* LETestImageCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LETestImageCell.m; sourceTree = ""; };
106 | /* End PBXFileReference section */
107 |
108 | /* Begin PBXFrameworksBuildPhase section */
109 | B3DB128619CD403700A80946 /* Frameworks */ = {
110 | isa = PBXFrameworksBuildPhase;
111 | buildActionMask = 2147483647;
112 | files = (
113 | B3DB128F19CD403700A80946 /* CoreGraphics.framework in Frameworks */,
114 | B3DB129119CD403700A80946 /* UIKit.framework in Frameworks */,
115 | B3DB128D19CD403700A80946 /* Foundation.framework in Frameworks */,
116 | );
117 | runOnlyForDeploymentPostprocessing = 0;
118 | };
119 | B3DB12A719CD403700A80946 /* Frameworks */ = {
120 | isa = PBXFrameworksBuildPhase;
121 | buildActionMask = 2147483647;
122 | files = (
123 | B3DB12AC19CD403700A80946 /* XCTest.framework in Frameworks */,
124 | B3DB12AE19CD403700A80946 /* UIKit.framework in Frameworks */,
125 | B3DB12AD19CD403700A80946 /* Foundation.framework in Frameworks */,
126 | );
127 | runOnlyForDeploymentPostprocessing = 0;
128 | };
129 | /* End PBXFrameworksBuildPhase section */
130 |
131 | /* Begin PBXGroup section */
132 | B3DB128019CD403700A80946 = {
133 | isa = PBXGroup;
134 | children = (
135 | B3DB129219CD403700A80946 /* LEWatchLayout */,
136 | B3DB12B119CD403700A80946 /* LEWatchLayoutTests */,
137 | B3DB128B19CD403700A80946 /* Frameworks */,
138 | B3DB128A19CD403700A80946 /* Products */,
139 | );
140 | sourceTree = "";
141 | };
142 | B3DB128A19CD403700A80946 /* Products */ = {
143 | isa = PBXGroup;
144 | children = (
145 | B3DB128919CD403700A80946 /* LEWatchLayout.app */,
146 | B3DB12AA19CD403700A80946 /* LEWatchLayoutTests.xctest */,
147 | );
148 | name = Products;
149 | sourceTree = "";
150 | };
151 | B3DB128B19CD403700A80946 /* Frameworks */ = {
152 | isa = PBXGroup;
153 | children = (
154 | B3DB128C19CD403700A80946 /* Foundation.framework */,
155 | B3DB128E19CD403700A80946 /* CoreGraphics.framework */,
156 | B3DB129019CD403700A80946 /* UIKit.framework */,
157 | B3DB12AB19CD403700A80946 /* XCTest.framework */,
158 | );
159 | name = Frameworks;
160 | sourceTree = "";
161 | };
162 | B3DB129219CD403700A80946 /* LEWatchLayout */ = {
163 | isa = PBXGroup;
164 | children = (
165 | B3DB12C119CD407800A80946 /* LEWatchLayout */,
166 | B3DB12C419CD407800A80946 /* Resources */,
167 | B3DB129B19CD403700A80946 /* WLAppDelegate.h */,
168 | B3DB129C19CD403700A80946 /* WLAppDelegate.m */,
169 | B3DB129E19CD403700A80946 /* Main.storyboard */,
170 | B3DB12A119CD403700A80946 /* WLViewController.h */,
171 | B3DB12A219CD403700A80946 /* WLViewController.m */,
172 | B3DB12A419CD403700A80946 /* Images.xcassets */,
173 | B3DB129319CD403700A80946 /* Supporting Files */,
174 | );
175 | path = LEWatchLayout;
176 | sourceTree = "";
177 | };
178 | B3DB129319CD403700A80946 /* Supporting Files */ = {
179 | isa = PBXGroup;
180 | children = (
181 | B3DB129419CD403700A80946 /* LEWatchLayout-Info.plist */,
182 | B3DB129519CD403700A80946 /* InfoPlist.strings */,
183 | B3DB129819CD403700A80946 /* main.m */,
184 | B3DB129A19CD403700A80946 /* LEWatchLayout-Prefix.pch */,
185 | );
186 | name = "Supporting Files";
187 | sourceTree = "";
188 | };
189 | B3DB12B119CD403700A80946 /* LEWatchLayoutTests */ = {
190 | isa = PBXGroup;
191 | children = (
192 | B3DB12B719CD403700A80946 /* LEWatchLayoutTests.m */,
193 | B3DB12B219CD403700A80946 /* Supporting Files */,
194 | );
195 | path = LEWatchLayoutTests;
196 | sourceTree = "";
197 | };
198 | B3DB12B219CD403700A80946 /* Supporting Files */ = {
199 | isa = PBXGroup;
200 | children = (
201 | B3DB12B319CD403700A80946 /* LEWatchLayoutTests-Info.plist */,
202 | B3DB12B419CD403700A80946 /* InfoPlist.strings */,
203 | );
204 | name = "Supporting Files";
205 | sourceTree = "";
206 | };
207 | B3DB12C119CD407800A80946 /* LEWatchLayout */ = {
208 | isa = PBXGroup;
209 | children = (
210 | B3DB12F319CD41A600A80946 /* LETestImageCell.h */,
211 | B3DB12F419CD41A600A80946 /* LETestImageCell.m */,
212 | B3DB12C219CD407800A80946 /* LECollectionViewWatchLayout.h */,
213 | B3DB12C319CD407800A80946 /* LECollectionViewWatchLayout.m */,
214 | );
215 | path = LEWatchLayout;
216 | sourceTree = "";
217 | };
218 | B3DB12C419CD407800A80946 /* Resources */ = {
219 | isa = PBXGroup;
220 | children = (
221 | B3DB12C519CD407800A80946 /* images */,
222 | );
223 | path = Resources;
224 | sourceTree = "";
225 | };
226 | B3DB12C519CD407800A80946 /* images */ = {
227 | isa = PBXGroup;
228 | children = (
229 | B3DB12C619CD407800A80946 /* alarm.png */,
230 | B3DB12C719CD407800A80946 /* camera.png */,
231 | B3DB12C819CD407800A80946 /* dots.png */,
232 | B3DB12C919CD407800A80946 /* email.png */,
233 | B3DB12CA19CD407800A80946 /* favicon.ico */,
234 | B3DB12CB19CD407800A80946 /* map.png */,
235 | B3DB12CC19CD407800A80946 /* message.png */,
236 | B3DB12CD19CD407800A80946 /* movie.png */,
237 | B3DB12CE19CD407800A80946 /* music.png */,
238 | B3DB12CF19CD407800A80946 /* passbook.png */,
239 | B3DB12D019CD407800A80946 /* phone.png */,
240 | B3DB12D119CD407800A80946 /* photo.png */,
241 | B3DB12D219CD407800A80946 /* run.png */,
242 | B3DB12D319CD407800A80946 /* setting.png */,
243 | B3DB12D419CD407800A80946 /* spiral.png */,
244 | B3DB12D519CD407800A80946 /* stopwatch.png */,
245 | B3DB12D619CD407800A80946 /* time.png */,
246 | B3DB12D719CD407800A80946 /* translate.png */,
247 | B3DB12D819CD407800A80946 /* twitter.png */,
248 | B3DB12D919CD407800A80946 /* watch.png */,
249 | B3DB12DA19CD407800A80946 /* weather.png */,
250 | B3DB12DB19CD407800A80946 /* weixin.png */,
251 | );
252 | path = images;
253 | sourceTree = "";
254 | };
255 | /* End PBXGroup section */
256 |
257 | /* Begin PBXNativeTarget section */
258 | B3DB128819CD403700A80946 /* LEWatchLayout */ = {
259 | isa = PBXNativeTarget;
260 | buildConfigurationList = B3DB12BB19CD403700A80946 /* Build configuration list for PBXNativeTarget "LEWatchLayout" */;
261 | buildPhases = (
262 | B3DB128519CD403700A80946 /* Sources */,
263 | B3DB128619CD403700A80946 /* Frameworks */,
264 | B3DB128719CD403700A80946 /* Resources */,
265 | );
266 | buildRules = (
267 | );
268 | dependencies = (
269 | );
270 | name = LEWatchLayout;
271 | productName = LEWatchLayout;
272 | productReference = B3DB128919CD403700A80946 /* LEWatchLayout.app */;
273 | productType = "com.apple.product-type.application";
274 | };
275 | B3DB12A919CD403700A80946 /* LEWatchLayoutTests */ = {
276 | isa = PBXNativeTarget;
277 | buildConfigurationList = B3DB12BE19CD403700A80946 /* Build configuration list for PBXNativeTarget "LEWatchLayoutTests" */;
278 | buildPhases = (
279 | B3DB12A619CD403700A80946 /* Sources */,
280 | B3DB12A719CD403700A80946 /* Frameworks */,
281 | B3DB12A819CD403700A80946 /* Resources */,
282 | );
283 | buildRules = (
284 | );
285 | dependencies = (
286 | B3DB12B019CD403700A80946 /* PBXTargetDependency */,
287 | );
288 | name = LEWatchLayoutTests;
289 | productName = LEWatchLayoutTests;
290 | productReference = B3DB12AA19CD403700A80946 /* LEWatchLayoutTests.xctest */;
291 | productType = "com.apple.product-type.bundle.unit-test";
292 | };
293 | /* End PBXNativeTarget section */
294 |
295 | /* Begin PBXProject section */
296 | B3DB128119CD403700A80946 /* Project object */ = {
297 | isa = PBXProject;
298 | attributes = {
299 | CLASSPREFIX = WL;
300 | LastUpgradeCheck = 0510;
301 | ORGANIZATIONNAME = Leo;
302 | TargetAttributes = {
303 | B3DB12A919CD403700A80946 = {
304 | TestTargetID = B3DB128819CD403700A80946;
305 | };
306 | };
307 | };
308 | buildConfigurationList = B3DB128419CD403700A80946 /* Build configuration list for PBXProject "LEWatchLayout" */;
309 | compatibilityVersion = "Xcode 3.2";
310 | developmentRegion = English;
311 | hasScannedForEncodings = 0;
312 | knownRegions = (
313 | en,
314 | Base,
315 | );
316 | mainGroup = B3DB128019CD403700A80946;
317 | productRefGroup = B3DB128A19CD403700A80946 /* Products */;
318 | projectDirPath = "";
319 | projectRoot = "";
320 | targets = (
321 | B3DB128819CD403700A80946 /* LEWatchLayout */,
322 | B3DB12A919CD403700A80946 /* LEWatchLayoutTests */,
323 | );
324 | };
325 | /* End PBXProject section */
326 |
327 | /* Begin PBXResourcesBuildPhase section */
328 | B3DB128719CD403700A80946 /* Resources */ = {
329 | isa = PBXResourcesBuildPhase;
330 | buildActionMask = 2147483647;
331 | files = (
332 | B3DB12EC19CD407800A80946 /* stopwatch.png in Resources */,
333 | B3DB12EB19CD407800A80946 /* spiral.png in Resources */,
334 | B3DB12E219CD407800A80946 /* map.png in Resources */,
335 | B3DB12F219CD407800A80946 /* weixin.png in Resources */,
336 | B3DB12E419CD407800A80946 /* movie.png in Resources */,
337 | B3DB12E819CD407800A80946 /* photo.png in Resources */,
338 | B3DB12A519CD403700A80946 /* Images.xcassets in Resources */,
339 | B3DB12ED19CD407800A80946 /* time.png in Resources */,
340 | B3DB12DD19CD407800A80946 /* alarm.png in Resources */,
341 | B3DB12EE19CD407800A80946 /* translate.png in Resources */,
342 | B3DB12E119CD407800A80946 /* favicon.ico in Resources */,
343 | B3DB12E519CD407800A80946 /* music.png in Resources */,
344 | B3DB129719CD403700A80946 /* InfoPlist.strings in Resources */,
345 | B3DB12A019CD403700A80946 /* Main.storyboard in Resources */,
346 | B3DB12DE19CD407800A80946 /* camera.png in Resources */,
347 | B3DB12E619CD407800A80946 /* passbook.png in Resources */,
348 | B3DB12E719CD407800A80946 /* phone.png in Resources */,
349 | B3DB12EA19CD407800A80946 /* setting.png in Resources */,
350 | B3DB12EF19CD407800A80946 /* twitter.png in Resources */,
351 | B3DB12DF19CD407800A80946 /* dots.png in Resources */,
352 | B3DB12E019CD407800A80946 /* email.png in Resources */,
353 | B3DB12F019CD407800A80946 /* watch.png in Resources */,
354 | B3DB12E319CD407800A80946 /* message.png in Resources */,
355 | B3DB12F119CD407800A80946 /* weather.png in Resources */,
356 | B3DB12E919CD407800A80946 /* run.png in Resources */,
357 | );
358 | runOnlyForDeploymentPostprocessing = 0;
359 | };
360 | B3DB12A819CD403700A80946 /* Resources */ = {
361 | isa = PBXResourcesBuildPhase;
362 | buildActionMask = 2147483647;
363 | files = (
364 | B3DB12B619CD403700A80946 /* InfoPlist.strings in Resources */,
365 | );
366 | runOnlyForDeploymentPostprocessing = 0;
367 | };
368 | /* End PBXResourcesBuildPhase section */
369 |
370 | /* Begin PBXSourcesBuildPhase section */
371 | B3DB128519CD403700A80946 /* Sources */ = {
372 | isa = PBXSourcesBuildPhase;
373 | buildActionMask = 2147483647;
374 | files = (
375 | B3DB12A319CD403700A80946 /* WLViewController.m in Sources */,
376 | B3DB129919CD403700A80946 /* main.m in Sources */,
377 | B3DB12F519CD41A600A80946 /* LETestImageCell.m in Sources */,
378 | B3DB12DC19CD407800A80946 /* LECollectionViewWatchLayout.m in Sources */,
379 | B3DB129D19CD403700A80946 /* WLAppDelegate.m in Sources */,
380 | );
381 | runOnlyForDeploymentPostprocessing = 0;
382 | };
383 | B3DB12A619CD403700A80946 /* Sources */ = {
384 | isa = PBXSourcesBuildPhase;
385 | buildActionMask = 2147483647;
386 | files = (
387 | B3DB12B819CD403700A80946 /* LEWatchLayoutTests.m in Sources */,
388 | );
389 | runOnlyForDeploymentPostprocessing = 0;
390 | };
391 | /* End PBXSourcesBuildPhase section */
392 |
393 | /* Begin PBXTargetDependency section */
394 | B3DB12B019CD403700A80946 /* PBXTargetDependency */ = {
395 | isa = PBXTargetDependency;
396 | target = B3DB128819CD403700A80946 /* LEWatchLayout */;
397 | targetProxy = B3DB12AF19CD403700A80946 /* PBXContainerItemProxy */;
398 | };
399 | /* End PBXTargetDependency section */
400 |
401 | /* Begin PBXVariantGroup section */
402 | B3DB129519CD403700A80946 /* InfoPlist.strings */ = {
403 | isa = PBXVariantGroup;
404 | children = (
405 | B3DB129619CD403700A80946 /* en */,
406 | );
407 | name = InfoPlist.strings;
408 | sourceTree = "";
409 | };
410 | B3DB129E19CD403700A80946 /* Main.storyboard */ = {
411 | isa = PBXVariantGroup;
412 | children = (
413 | B3DB129F19CD403700A80946 /* Base */,
414 | );
415 | name = Main.storyboard;
416 | sourceTree = "";
417 | };
418 | B3DB12B419CD403700A80946 /* InfoPlist.strings */ = {
419 | isa = PBXVariantGroup;
420 | children = (
421 | B3DB12B519CD403700A80946 /* en */,
422 | );
423 | name = InfoPlist.strings;
424 | sourceTree = "";
425 | };
426 | /* End PBXVariantGroup section */
427 |
428 | /* Begin XCBuildConfiguration section */
429 | B3DB12B919CD403700A80946 /* Debug */ = {
430 | isa = XCBuildConfiguration;
431 | buildSettings = {
432 | ALWAYS_SEARCH_USER_PATHS = NO;
433 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
434 | CLANG_CXX_LIBRARY = "libc++";
435 | CLANG_ENABLE_MODULES = YES;
436 | CLANG_ENABLE_OBJC_ARC = YES;
437 | CLANG_WARN_BOOL_CONVERSION = YES;
438 | CLANG_WARN_CONSTANT_CONVERSION = YES;
439 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
440 | CLANG_WARN_EMPTY_BODY = YES;
441 | CLANG_WARN_ENUM_CONVERSION = YES;
442 | CLANG_WARN_INT_CONVERSION = YES;
443 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
444 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
445 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
446 | COPY_PHASE_STRIP = NO;
447 | GCC_C_LANGUAGE_STANDARD = gnu99;
448 | GCC_DYNAMIC_NO_PIC = NO;
449 | GCC_OPTIMIZATION_LEVEL = 0;
450 | GCC_PREPROCESSOR_DEFINITIONS = (
451 | "DEBUG=1",
452 | "$(inherited)",
453 | );
454 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
455 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
456 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
457 | GCC_WARN_UNDECLARED_SELECTOR = YES;
458 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
459 | GCC_WARN_UNUSED_FUNCTION = YES;
460 | GCC_WARN_UNUSED_VARIABLE = YES;
461 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
462 | ONLY_ACTIVE_ARCH = YES;
463 | SDKROOT = iphoneos;
464 | };
465 | name = Debug;
466 | };
467 | B3DB12BA19CD403700A80946 /* Release */ = {
468 | isa = XCBuildConfiguration;
469 | buildSettings = {
470 | ALWAYS_SEARCH_USER_PATHS = NO;
471 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
472 | CLANG_CXX_LIBRARY = "libc++";
473 | CLANG_ENABLE_MODULES = YES;
474 | CLANG_ENABLE_OBJC_ARC = YES;
475 | CLANG_WARN_BOOL_CONVERSION = YES;
476 | CLANG_WARN_CONSTANT_CONVERSION = YES;
477 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
478 | CLANG_WARN_EMPTY_BODY = YES;
479 | CLANG_WARN_ENUM_CONVERSION = YES;
480 | CLANG_WARN_INT_CONVERSION = YES;
481 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
482 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
483 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
484 | COPY_PHASE_STRIP = YES;
485 | ENABLE_NS_ASSERTIONS = NO;
486 | GCC_C_LANGUAGE_STANDARD = gnu99;
487 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
488 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
489 | GCC_WARN_UNDECLARED_SELECTOR = YES;
490 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
491 | GCC_WARN_UNUSED_FUNCTION = YES;
492 | GCC_WARN_UNUSED_VARIABLE = YES;
493 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
494 | SDKROOT = iphoneos;
495 | VALIDATE_PRODUCT = YES;
496 | };
497 | name = Release;
498 | };
499 | B3DB12BC19CD403700A80946 /* Debug */ = {
500 | isa = XCBuildConfiguration;
501 | buildSettings = {
502 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
503 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
504 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
505 | GCC_PREFIX_HEADER = "LEWatchLayout/LEWatchLayout-Prefix.pch";
506 | INFOPLIST_FILE = "LEWatchLayout/LEWatchLayout-Info.plist";
507 | PRODUCT_NAME = "$(TARGET_NAME)";
508 | WRAPPER_EXTENSION = app;
509 | };
510 | name = Debug;
511 | };
512 | B3DB12BD19CD403700A80946 /* Release */ = {
513 | isa = XCBuildConfiguration;
514 | buildSettings = {
515 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
516 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
517 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
518 | GCC_PREFIX_HEADER = "LEWatchLayout/LEWatchLayout-Prefix.pch";
519 | INFOPLIST_FILE = "LEWatchLayout/LEWatchLayout-Info.plist";
520 | PRODUCT_NAME = "$(TARGET_NAME)";
521 | WRAPPER_EXTENSION = app;
522 | };
523 | name = Release;
524 | };
525 | B3DB12BF19CD403700A80946 /* Debug */ = {
526 | isa = XCBuildConfiguration;
527 | buildSettings = {
528 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/LEWatchLayout.app/LEWatchLayout";
529 | FRAMEWORK_SEARCH_PATHS = (
530 | "$(SDKROOT)/Developer/Library/Frameworks",
531 | "$(inherited)",
532 | "$(DEVELOPER_FRAMEWORKS_DIR)",
533 | );
534 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
535 | GCC_PREFIX_HEADER = "LEWatchLayout/LEWatchLayout-Prefix.pch";
536 | GCC_PREPROCESSOR_DEFINITIONS = (
537 | "DEBUG=1",
538 | "$(inherited)",
539 | );
540 | INFOPLIST_FILE = "LEWatchLayoutTests/LEWatchLayoutTests-Info.plist";
541 | PRODUCT_NAME = "$(TARGET_NAME)";
542 | TEST_HOST = "$(BUNDLE_LOADER)";
543 | WRAPPER_EXTENSION = xctest;
544 | };
545 | name = Debug;
546 | };
547 | B3DB12C019CD403700A80946 /* Release */ = {
548 | isa = XCBuildConfiguration;
549 | buildSettings = {
550 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/LEWatchLayout.app/LEWatchLayout";
551 | FRAMEWORK_SEARCH_PATHS = (
552 | "$(SDKROOT)/Developer/Library/Frameworks",
553 | "$(inherited)",
554 | "$(DEVELOPER_FRAMEWORKS_DIR)",
555 | );
556 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
557 | GCC_PREFIX_HEADER = "LEWatchLayout/LEWatchLayout-Prefix.pch";
558 | INFOPLIST_FILE = "LEWatchLayoutTests/LEWatchLayoutTests-Info.plist";
559 | PRODUCT_NAME = "$(TARGET_NAME)";
560 | TEST_HOST = "$(BUNDLE_LOADER)";
561 | WRAPPER_EXTENSION = xctest;
562 | };
563 | name = Release;
564 | };
565 | /* End XCBuildConfiguration section */
566 |
567 | /* Begin XCConfigurationList section */
568 | B3DB128419CD403700A80946 /* Build configuration list for PBXProject "LEWatchLayout" */ = {
569 | isa = XCConfigurationList;
570 | buildConfigurations = (
571 | B3DB12B919CD403700A80946 /* Debug */,
572 | B3DB12BA19CD403700A80946 /* Release */,
573 | );
574 | defaultConfigurationIsVisible = 0;
575 | defaultConfigurationName = Release;
576 | };
577 | B3DB12BB19CD403700A80946 /* Build configuration list for PBXNativeTarget "LEWatchLayout" */ = {
578 | isa = XCConfigurationList;
579 | buildConfigurations = (
580 | B3DB12BC19CD403700A80946 /* Debug */,
581 | B3DB12BD19CD403700A80946 /* Release */,
582 | );
583 | defaultConfigurationIsVisible = 0;
584 | };
585 | B3DB12BE19CD403700A80946 /* Build configuration list for PBXNativeTarget "LEWatchLayoutTests" */ = {
586 | isa = XCConfigurationList;
587 | buildConfigurations = (
588 | B3DB12BF19CD403700A80946 /* Debug */,
589 | B3DB12C019CD403700A80946 /* Release */,
590 | );
591 | defaultConfigurationIsVisible = 0;
592 | };
593 | /* End XCConfigurationList section */
594 | };
595 | rootObject = B3DB128119CD403700A80946 /* Project object */;
596 | }
597 |
--------------------------------------------------------------------------------