├── HomeKit
├── Assets.xcassets
│ ├── Contents.json
│ ├── tabbar
│ │ ├── Contents.json
│ │ ├── tabBar_bg.imageset
│ │ │ ├── tabBar_bg@2x.png
│ │ │ └── Contents.json
│ │ ├── tabBar_me_normal.imageset
│ │ │ ├── tabBar_me_normal@2x.png
│ │ │ └── Contents.json
│ │ ├── tabBar_me_press.imageset
│ │ │ ├── tabBar_me_press@2x.png
│ │ │ └── Contents.json
│ │ ├── tabBar_home_press.imageset
│ │ │ ├── tabBar_home_press@2x.png
│ │ │ └── Contents.json
│ │ ├── tabBar_home_normal.imageset
│ │ │ ├── tabBar_home_normal@2x.png
│ │ │ └── Contents.json
│ │ ├── tabBar_wealth_press.imageset
│ │ │ ├── tabBar_wealth_press@2x.png
│ │ │ └── Contents.json
│ │ ├── tabBar_category_press.imageset
│ │ │ ├── tabBar_cetegory_press@2x.png
│ │ │ └── Contents.json
│ │ ├── tabBar_wealth_normal.imageset
│ │ │ ├── tabBar_wealth_normal@2x.png
│ │ │ └── Contents.json
│ │ └── tabBar_category_normal.imageset
│ │ │ ├── tabBar_category_normal@2x.png
│ │ │ └── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── ESMTabBarVC.h
├── ESMOneViewController.h
├── ESMTwoViewController.h
├── ESMMeViewController.h
├── ESMTestViewController.h
├── ESMHomeViewController.h
├── ESMMoneyViewController.h
├── ESMBaseViewController.h
├── main.m
├── ESMNavigationViewController.h
├── ESMTabBarViewController.h
├── ScreenShotView.h
├── AppDelegate.h
├── ESMOneViewController.m
├── ESMMeViewController.m
├── ESMHomeViewController.m
├── ESMBaseViewController.m
├── ESMTestViewController.m
├── Info.plist
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.storyboard
├── ESMTabBarViewController.m
├── ScreenShotView.m
├── AppDelegate.m
├── ESMTabBarVC.m
├── ESMTwoViewController.m
├── ESMMoneyViewController.m
└── ESMNavigationViewController.m
├── HomeKit.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
├── xcuserdata
│ └── fanfan.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── HomeKit.xcscheme
└── project.pbxproj
├── HomeKitTests
├── Info.plist
└── HomeKitTests.m
└── HomeKitUITests
├── Info.plist
└── HomeKitUITests.m
/HomeKit/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_bg.imageset/tabBar_bg@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fan-xiang/HomeKit/HEAD/HomeKit/Assets.xcassets/tabbar/tabBar_bg.imageset/tabBar_bg@2x.png
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_me_normal.imageset/tabBar_me_normal@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fan-xiang/HomeKit/HEAD/HomeKit/Assets.xcassets/tabbar/tabBar_me_normal.imageset/tabBar_me_normal@2x.png
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_me_press.imageset/tabBar_me_press@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fan-xiang/HomeKit/HEAD/HomeKit/Assets.xcassets/tabbar/tabBar_me_press.imageset/tabBar_me_press@2x.png
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_home_press.imageset/tabBar_home_press@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fan-xiang/HomeKit/HEAD/HomeKit/Assets.xcassets/tabbar/tabBar_home_press.imageset/tabBar_home_press@2x.png
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_home_normal.imageset/tabBar_home_normal@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fan-xiang/HomeKit/HEAD/HomeKit/Assets.xcassets/tabbar/tabBar_home_normal.imageset/tabBar_home_normal@2x.png
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_wealth_press.imageset/tabBar_wealth_press@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fan-xiang/HomeKit/HEAD/HomeKit/Assets.xcassets/tabbar/tabBar_wealth_press.imageset/tabBar_wealth_press@2x.png
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_category_press.imageset/tabBar_cetegory_press@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fan-xiang/HomeKit/HEAD/HomeKit/Assets.xcassets/tabbar/tabBar_category_press.imageset/tabBar_cetegory_press@2x.png
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_wealth_normal.imageset/tabBar_wealth_normal@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fan-xiang/HomeKit/HEAD/HomeKit/Assets.xcassets/tabbar/tabBar_wealth_normal.imageset/tabBar_wealth_normal@2x.png
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_category_normal.imageset/tabBar_category_normal@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fan-xiang/HomeKit/HEAD/HomeKit/Assets.xcassets/tabbar/tabBar_category_normal.imageset/tabBar_category_normal@2x.png
--------------------------------------------------------------------------------
/HomeKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/HomeKit/ESMTabBarVC.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESMTabBarVC.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMTabBarViewController.h"
10 |
11 | @interface ESMTabBarVC : ESMTabBarViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/HomeKit/ESMOneViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESMOneViewController.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMBaseViewController.h"
10 |
11 | @interface ESMOneViewController : ESMBaseViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/HomeKit/ESMTwoViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESMTwoViewController.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/28.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMBaseViewController.h"
10 |
11 | @interface ESMTwoViewController : ESMBaseViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/HomeKit/ESMMeViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESMMeViewController.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "ESMBaseViewController.h"
11 |
12 | @interface ESMMeViewController : ESMBaseViewController
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/HomeKit/ESMTestViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESMTestViewController.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "ESMBaseViewController.h"
11 | @interface ESMTestViewController : ESMBaseViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/HomeKit/ESMHomeViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESMHomeViewController.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "ESMBaseViewController.h"
11 |
12 | @interface ESMHomeViewController : ESMBaseViewController
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/HomeKit/ESMMoneyViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESMMoneyViewController.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "ESMBaseViewController.h"
11 |
12 | @interface ESMMoneyViewController : ESMBaseViewController
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/HomeKit/ESMBaseViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESMBaseViewController.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ESMBaseViewController : UIViewController
12 |
13 | @property (nonatomic, assign) BOOL enablePanGesture;//是否支持拖动pop手势,默认yes,支持手势
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/HomeKit/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_bg.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "tabBar_bg@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_me_normal.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "tabBar_me_normal@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_me_press.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "tabBar_me_press@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/HomeKit/ESMNavigationViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESMNavigationViewController.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ESMNavigationViewController : UINavigationController
12 |
13 | @property (strong ,nonatomic) NSMutableArray *arrayScreenshot;
14 |
15 | @property (nonatomic, strong) UIPanGestureRecognizer *panGesture;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_home_normal.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "tabBar_home_normal@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_home_press.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "tabBar_home_press@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_wealth_press.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "tabBar_wealth_press@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_category_press.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "tabBar_cetegory_press@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_wealth_normal.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "tabBar_wealth_normal@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/tabbar/tabBar_category_normal.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "tabBar_category_normal@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/HomeKit/ESMTabBarViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESMTabBarViewController.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ESMTabBarViewController : UITabBarController
12 |
13 | - (void)addOneChildVc:(UIViewController *)childVc title:(NSString *)title imageName:(NSString *)imageName selectedImageName:(NSString *)selectedImageName;
14 |
15 | - (void)addChildVCs;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/HomeKit/ScreenShotView.h:
--------------------------------------------------------------------------------
1 | //
2 | // ScreenShotView.h
3 | // ScreenShotBack
4 | //
5 | // Created by 郑文明 on 16/5/10.
6 | // Copyright © 2016年 郑文明. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ScreenShotView : UIView
12 | @property (nonatomic, strong) UIImageView *imgView;
13 | @property (nonatomic, strong) UIView *maskView;
14 | @property (nonatomic, strong) NSMutableArray *arrayImage;
15 |
16 | - (void)showEffectChange:(CGPoint)pt;
17 | - (void)restore;
18 | - (void)screenShot;
19 | @end
20 |
--------------------------------------------------------------------------------
/HomeKit/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #define kUseScreenShotGesture 1
12 |
13 | #if kUseScreenShotGesture
14 | #import "ScreenShotView.h"
15 | #endif
16 |
17 | @interface AppDelegate : UIResponder
18 |
19 | @property (strong, nonatomic) UIWindow *window;
20 |
21 |
22 | #if kUseScreenShotGesture
23 | @property (strong, nonatomic) ScreenShotView *screenshotView;
24 | #endif
25 | @end
26 |
27 |
--------------------------------------------------------------------------------
/HomeKit.xcodeproj/xcuserdata/fanfan.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/HomeKit/ESMOneViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ESMOneViewController.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMOneViewController.h"
10 |
11 | @interface ESMOneViewController ()
12 |
13 | @end
14 |
15 | @implementation ESMOneViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | // Do any additional setup after loading the view.
20 | self.view.backgroundColor = [UIColor redColor];
21 | }
22 |
23 | - (void)didReceiveMemoryWarning {
24 | [super didReceiveMemoryWarning];
25 | // Dispose of any resources that can be recreated.
26 | }
27 |
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/HomeKitTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/HomeKitUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/HomeKit.xcodeproj/xcuserdata/fanfan.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | HomeKit.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | A935074F1DC1F54900CD6D3F
16 |
17 | primary
18 |
19 |
20 | A93507681DC1F54900CD6D3F
21 |
22 | primary
23 |
24 |
25 | A93507731DC1F54900CD6D3F
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/HomeKit/ESMMeViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ESMMeViewController.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMMeViewController.h"
10 |
11 | @interface ESMMeViewController ()
12 |
13 | @end
14 |
15 | @implementation ESMMeViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | // Do any additional setup after loading the view.
20 | }
21 |
22 | - (void)didReceiveMemoryWarning {
23 | [super didReceiveMemoryWarning];
24 | // Dispose of any resources that can be recreated.
25 | }
26 |
27 | /*
28 | #pragma mark - Navigation
29 |
30 | // In a storyboard-based application, you will often want to do a little preparation before navigation
31 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
32 | // Get the new view controller using [segue destinationViewController].
33 | // Pass the selected object to the new view controller.
34 | }
35 | */
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/HomeKit/ESMHomeViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ESMHomeViewController.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMHomeViewController.h"
10 |
11 | @interface ESMHomeViewController ()
12 |
13 | @end
14 |
15 | @implementation ESMHomeViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | self.view.backgroundColor = [UIColor brownColor];
20 | }
21 |
22 | - (void)didReceiveMemoryWarning {
23 | [super didReceiveMemoryWarning];
24 | // Dispose of any resources that can be recreated.
25 | }
26 |
27 | /*
28 | #pragma mark - Navigation
29 |
30 | // In a storyboard-based application, you will often want to do a little preparation before navigation
31 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
32 | // Get the new view controller using [segue destinationViewController].
33 | // Pass the selected object to the new view controller.
34 | }
35 | */
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/HomeKitTests/HomeKitTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // HomeKitTests.m
3 | // HomeKitTests
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface HomeKitTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation HomeKitTests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 | // Put setup code here. This method is called before the invocation of each test method in the class.
20 | }
21 |
22 | - (void)tearDown {
23 | // Put teardown code here. This method is called after the invocation of each test method in the class.
24 | [super tearDown];
25 | }
26 |
27 | - (void)testExample {
28 | // This is an example of a functional test case.
29 | // Use XCTAssert and related functions to verify your tests produce the correct results.
30 | }
31 |
32 | - (void)testPerformanceExample {
33 | // This is an example of a performance test case.
34 | [self measureBlock:^{
35 | // Put the code you want to measure the time of here.
36 | }];
37 | }
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/HomeKit/ESMBaseViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ESMBaseViewController.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMBaseViewController.h"
10 |
11 | @interface ESMBaseViewController ()
12 |
13 | @end
14 |
15 | @implementation ESMBaseViewController
16 |
17 | - (id)init{
18 | self = [super init];
19 | if (self) {
20 | self.enablePanGesture = YES;
21 | }
22 | return self;
23 | }
24 | - (void)viewDidLoad {
25 | [super viewDidLoad];
26 | self.view.backgroundColor = [UIColor whiteColor];
27 |
28 | }
29 |
30 |
31 | - (void)didReceiveMemoryWarning {
32 | [super didReceiveMemoryWarning];
33 | // Dispose of any resources that can be recreated.
34 | }
35 |
36 | /*
37 | #pragma mark - Navigation
38 |
39 | // In a storyboard-based application, you will often want to do a little preparation before navigation
40 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
41 | // Get the new view controller using [segue destinationViewController].
42 | // Pass the selected object to the new view controller.
43 | }
44 | */
45 |
46 | @end
47 |
--------------------------------------------------------------------------------
/HomeKitUITests/HomeKitUITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // HomeKitUITests.m
3 | // HomeKitUITests
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface HomeKitUITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation HomeKitUITests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 |
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 |
22 | // In UI tests it is usually best to stop immediately when a failure occurs.
23 | self.continueAfterFailure = NO;
24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
25 | [[[XCUIApplication alloc] init] launch];
26 |
27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
28 | }
29 |
30 | - (void)tearDown {
31 | // Put teardown code here. This method is called after the invocation of each test method in the class.
32 | [super tearDown];
33 | }
34 |
35 | - (void)testExample {
36 | // Use recording to get started writing UI tests.
37 | // Use XCTAssert and related functions to verify your tests produce the correct results.
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/HomeKit/ESMTestViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ESMTestViewController.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMTestViewController.h"
10 | #import "ESMOneViewController.h"
11 |
12 | @interface ESMTestViewController ()
13 |
14 | @end
15 |
16 | @implementation ESMTestViewController
17 |
18 | - (void)viewDidLoad {
19 | [super viewDidLoad];
20 | // Do any additional setup after loading the view.
21 | UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
22 | [button setTitle:@"测试" forState:UIControlStateNormal];
23 | button.backgroundColor = [UIColor redColor];
24 | [button addTarget:self action:@selector(button) forControlEvents: UIControlEventTouchUpInside];
25 | [self.view addSubview:button];
26 | }
27 |
28 | - (void)button {
29 |
30 | [self.navigationController pushViewController:[[ESMOneViewController alloc]init] animated:YES];
31 | }
32 |
33 | - (void)didReceiveMemoryWarning {
34 | [super didReceiveMemoryWarning];
35 | // Dispose of any resources that can be recreated.
36 | }
37 |
38 | /*
39 | #pragma mark - Navigation
40 |
41 | // In a storyboard-based application, you will often want to do a little preparation before navigation
42 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
43 | // Get the new view controller using [segue destinationViewController].
44 | // Pass the selected object to the new view controller.
45 | }
46 | */
47 |
48 | @end
49 |
--------------------------------------------------------------------------------
/HomeKit/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/HomeKit/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 |
--------------------------------------------------------------------------------
/HomeKit/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/HomeKit/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | }
88 | ],
89 | "info" : {
90 | "version" : 1,
91 | "author" : "xcode"
92 | }
93 | }
--------------------------------------------------------------------------------
/HomeKit/ESMTabBarViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ESMTabBarViewController.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMTabBarViewController.h"
10 | #import "ESMNavigationViewController.h"
11 |
12 | @interface ESMTabBarViewController ()
13 |
14 | @end
15 |
16 | @implementation ESMTabBarViewController
17 |
18 | - (void)viewDidLoad {
19 | [super viewDidLoad];
20 | [self addChildVCs];
21 | }
22 |
23 | - (void)addChildVCs {
24 | NSAssert(NO, @"Should not call this method");
25 | }
26 |
27 | - (void)addOneChildVc:(UIViewController *)childVc title:(NSString *)title imageName:(NSString *)imageName selectedImageName:(NSString *)selectedImageName {
28 | ESMNavigationViewController *nav = [[ESMNavigationViewController alloc] initWithRootViewController:childVc];
29 | [self addChildViewController:nav];
30 | childVc.title = title;
31 | UIImage *image = [UIImage imageNamed:imageName];
32 | childVc.tabBarItem.image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
33 | UIImage *selectedImage = [UIImage imageNamed:selectedImageName];
34 | if ([[UIDevice currentDevice].systemVersion doubleValue] >= 7.0){
35 | //声明这张图用原图
36 | selectedImage = [selectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
37 | }
38 | childVc.tabBarItem.selectedImage = selectedImage;
39 | childVc.tabBarItem.title = title;
40 | }
41 |
42 |
43 | - (void)didReceiveMemoryWarning {
44 | [super didReceiveMemoryWarning];
45 | // Dispose of any resources that can be recreated.
46 | }
47 |
48 | /*
49 | #pragma mark - Navigation
50 |
51 | // In a storyboard-based application, you will often want to do a little preparation before navigation
52 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
53 | // Get the new view controller using [segue destinationViewController].
54 | // Pass the selected object to the new view controller.
55 | }
56 | */
57 |
58 | @end
59 |
--------------------------------------------------------------------------------
/HomeKit/ScreenShotView.m:
--------------------------------------------------------------------------------
1 |
2 |
3 | //
4 | // ScreenShotView.m
5 | // ScreenShotBack
6 | //
7 | // Created by 郑文明 on 16/5/10.
8 | // Copyright © 2016年 郑文明. All rights reserved.
9 | //
10 |
11 | #import "ScreenShotView.h"
12 |
13 | #import
14 | #import "AppDelegate.h"
15 |
16 | @implementation ScreenShotView
17 |
18 | - (id)initWithFrame:(CGRect)frame
19 | {
20 | self = [super initWithFrame:frame];
21 | if (self) {
22 |
23 | self.arrayImage = [NSMutableArray array];
24 | self.backgroundColor = [UIColor blackColor];
25 | self.imgView = [[UIImageView alloc] initWithFrame:self.bounds];
26 |
27 | self.maskView = [[UIView alloc] initWithFrame:self.bounds];
28 | _maskView.backgroundColor = [UIColor colorWithHue:0 saturation:0 brightness:0 alpha:0.4];
29 | [self addSubview:_imgView];
30 | // [self addSubview:_maskView];
31 | }
32 | return self;
33 | }
34 |
35 | - (void)layoutSubviews
36 | {
37 | [super layoutSubviews];
38 | }
39 |
40 | - (void)showEffectChange:(CGPoint)pt
41 | {
42 | if (pt.x > 0)
43 | {
44 | _maskView.backgroundColor = [UIColor colorWithHue:0 saturation:0 brightness:0 alpha:-pt.x / 320.0 * 0.4 + 0.4];
45 | _imgView.transform = CGAffineTransformMakeScale(0.95 + (pt.x / 320.0 * 0.05), 0.95 + (pt.x / 320.0 * 0.05));
46 | }
47 | }
48 |
49 | - (void)restore
50 | {
51 | if (_maskView && _imgView)
52 | {
53 | _maskView.backgroundColor = [UIColor colorWithHue:0 saturation:0 brightness:0 alpha:0.4];
54 | _imgView.transform = CGAffineTransformMakeScale(0.95, 0.95);
55 | }
56 | }
57 |
58 | - (void)screenShot
59 | {
60 | AppDelegate *appdelegate = (AppDelegate*)[UIApplication sharedApplication].delegate;
61 | UIGraphicsBeginImageContextWithOptions(CGSizeMake([UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height), YES, 0);
62 | [appdelegate.window.layer renderInContext:UIGraphicsGetCurrentContext()];
63 | UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
64 | UIGraphicsEndImageContext();
65 | CGImageRef imageRef = viewImage.CGImage;
66 | UIImage *sendImage = [[UIImage alloc] initWithCGImage:imageRef];
67 | self.imgView.image = sendImage;
68 | self.imgView.transform = CGAffineTransformMakeScale(0.95, 0.95);
69 | }
70 |
71 |
72 | @end
73 |
--------------------------------------------------------------------------------
/HomeKit/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 | #import "ESMTabBarVC.h"
11 |
12 | @interface AppDelegate ()
13 |
14 | @end
15 |
16 | @implementation AppDelegate
17 |
18 |
19 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
20 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
21 | self.window.backgroundColor=[UIColor whiteColor];
22 | ESMTabBarVC *tabBar = [[ESMTabBarVC alloc]init];
23 | self.window.rootViewController = tabBar;
24 | [self.window makeKeyAndVisible];
25 | #if kUseScreenShotGesture
26 | self.screenshotView = [[ScreenShotView alloc] initWithFrame:CGRectMake(-self.window.frame.size.width, 0, self.window.frame.size.width, self.window.frame.size.height)];
27 | [self.window insertSubview:_screenshotView atIndex:0];
28 | self.screenshotView.hidden = YES;
29 | #endif
30 |
31 |
32 |
33 | return YES;
34 | }
35 |
36 |
37 | - (void)applicationWillResignActive:(UIApplication *)application {
38 | // 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.
39 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
40 | }
41 |
42 |
43 | - (void)applicationDidEnterBackground:(UIApplication *)application {
44 | // 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.
45 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
46 | }
47 |
48 |
49 | - (void)applicationWillEnterForeground:(UIApplication *)application {
50 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
51 | }
52 |
53 |
54 | - (void)applicationDidBecomeActive:(UIApplication *)application {
55 | // 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.
56 | }
57 |
58 |
59 | - (void)applicationWillTerminate:(UIApplication *)application {
60 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
61 | }
62 |
63 |
64 | @end
65 |
--------------------------------------------------------------------------------
/HomeKit/ESMTabBarVC.m:
--------------------------------------------------------------------------------
1 | //
2 | // ESMTabBarVC.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMTabBarVC.h"
10 | #import "ESMHomeViewController.h"
11 | #import "ESMTestViewController.h"
12 | #import "ESMMoneyViewController.h"
13 | #import "ESMMeViewController.h"
14 |
15 | #define kRGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
16 |
17 | @interface ESMTabBarVC ()
18 |
19 | @end
20 |
21 | @implementation ESMTabBarVC
22 |
23 | - (void)viewDidLoad {
24 | [super viewDidLoad];
25 | UIImage *image = [UIImage imageNamed:@"tabBar_bg"];
26 | UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.tabBar.frame.size.width, self.tabBar.frame.size.height)];
27 | imageView.image = image;
28 | imageView.clipsToBounds = YES;
29 | imageView.contentMode = UIViewContentModeScaleAspectFill;
30 | [self.tabBar insertSubview:imageView atIndex:1];
31 | }
32 |
33 | -(void)addChildVCs {
34 | ESMHomeViewController *homeVC = [[ESMHomeViewController alloc]init];
35 | [self addOneChildVc:homeVC title:@"首页" imageName:@"tabBar_home_normal" selectedImageName:@"tabBar_home_press"];
36 |
37 | ESMTestViewController *recomVc = [[ESMTestViewController alloc]init];
38 | [self addOneChildVc:recomVc title:@"测试" imageName:@"tabBar_category_normal" selectedImageName:@"tabBar_category_press"];
39 | ESMMoneyViewController *wealthVc = [[ESMMoneyViewController alloc]init] ;
40 | [self addOneChildVc:wealthVc title:@"钞票" imageName:@"tabBar_wealth_normal" selectedImageName:@"tabBar_wealth_press"];
41 | ESMMeViewController *meVc = [[ESMMeViewController alloc]init] ;
42 | [self addOneChildVc:meVc title:@"我" imageName:@"tabBar_me_normal" selectedImageName:@"tabBar_me_press"];
43 | }
44 |
45 | - (instancetype)init {
46 | self = [super init];
47 | if (self) {
48 | UITabBarItem *apperrance = [UITabBarItem appearance];
49 | [apperrance setTitleTextAttributes:@{NSForegroundColorAttributeName:kRGBA(251, 74, 74, 1)} forState:UIControlStateSelected];
50 | [apperrance setTitleTextAttributes:@{NSForegroundColorAttributeName : kRGBA(133, 133, 133, 1)} forState:UIControlStateNormal];
51 | }
52 | return self;
53 | }
54 |
55 |
56 | - (void)didReceiveMemoryWarning {
57 | [super didReceiveMemoryWarning];
58 | // Dispose of any resources that can be recreated.
59 | }
60 |
61 | /*
62 | #pragma mark - Navigation
63 |
64 | // In a storyboard-based application, you will often want to do a little preparation before navigation
65 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
66 | // Get the new view controller using [segue destinationViewController].
67 | // Pass the selected object to the new view controller.
68 | }
69 | */
70 |
71 | @end
72 |
--------------------------------------------------------------------------------
/HomeKit/ESMTwoViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ESMTwoViewController.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/28.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMTwoViewController.h"
10 |
11 | #define kScreenWidth [UIScreen mainScreen].bounds.size.width
12 | #define kScreenHeight [UIScreen mainScreen].bounds.size.height
13 | #define KLineHeight kScreenWidth/375
14 |
15 |
16 | @interface ESMTwoViewController ()
17 |
18 | @property (strong, nonatomic)UITableView *tableView;
19 |
20 |
21 | @end
22 |
23 | @implementation ESMTwoViewController
24 |
25 | - (void)viewDidLoad {
26 | [super viewDidLoad];
27 | // Do any additional setup after loading the view.
28 | [self.view addSubview:self.tableView];
29 | }
30 |
31 |
32 | #pragma mark - delegate
33 |
34 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
35 | return 1;
36 | }
37 |
38 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
39 | return 9;
40 | }
41 |
42 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
43 | return KLineHeight*50;
44 | }
45 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
46 | static NSString *cellIdentifier = @"myCell";
47 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
48 | cell.selectionStyle = UITableViewCellSelectionStyleNone;
49 | if (!cell) {
50 | cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellIdentifier];
51 | cell.textLabel.text = @[@"好啊好啊",@"哈哈",@"啦啦",@"我的烟火",@"我的天",@"wpsdh",@"skdhfjk",@"sklhflkjsdhf",@"sdkjfhgk"][indexPath.row];
52 | }
53 | return cell;
54 | }
55 |
56 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
57 |
58 |
59 |
60 | }
61 |
62 | - (UITableView *)tableView {
63 | if (!_tableView) {
64 | _tableView = [[UITableView alloc]initWithFrame:CGRectMake(0,0, kScreenWidth,kScreenHeight) style:UITableViewStylePlain];
65 | _tableView.delegate = self;
66 | _tableView.dataSource = self;
67 | _tableView.backgroundColor = [UIColor whiteColor];
68 | }
69 | return _tableView;
70 | }
71 |
72 |
73 |
74 | - (void)didReceiveMemoryWarning {
75 | [super didReceiveMemoryWarning];
76 | // Dispose of any resources that can be recreated.
77 | }
78 |
79 | /*
80 | #pragma mark - Navigation
81 |
82 | // In a storyboard-based application, you will often want to do a little preparation before navigation
83 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
84 | // Get the new view controller using [segue destinationViewController].
85 | // Pass the selected object to the new view controller.
86 | }
87 | */
88 |
89 | @end
90 |
--------------------------------------------------------------------------------
/HomeKit/ESMMoneyViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ESMMoneyViewController.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMMoneyViewController.h"
10 | #import "ESMOneViewController.h"
11 |
12 | #define kScreenWidth [UIScreen mainScreen].bounds.size.width
13 | #define kScreenHeight [UIScreen mainScreen].bounds.size.height
14 | #define KLineHeight kScreenWidth/375
15 |
16 | @interface ESMMoneyViewController ()
17 |
18 | @property (strong, nonatomic)UITableView *tableView;
19 |
20 | @end
21 |
22 | @implementation ESMMoneyViewController
23 |
24 | - (void)viewDidLoad {
25 | [super viewDidLoad];
26 | [self.view addSubview:self.tableView];
27 | }
28 |
29 | #pragma mark - delegate
30 |
31 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
32 | return 1;
33 | }
34 |
35 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
36 | return 9;
37 | }
38 |
39 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
40 | return KLineHeight*50;
41 | }
42 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
43 | static NSString *cellIdentifier = @"myCell";
44 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
45 | cell.selectionStyle = UITableViewCellSelectionStyleNone;
46 | if (!cell) {
47 | cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellIdentifier];
48 | cell.textLabel.text = @[@"好啊好啊",@"哈哈",@"啦啦",@"我的烟火",@"我的天",@"wpsdh",@"skdhfjk",@"sklhflkjsdhf",@"sdkjfhgk"][indexPath.row];
49 | }
50 | return cell;
51 | }
52 |
53 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
54 |
55 |
56 | [self.navigationController pushViewController:[[ESMOneViewController alloc]init] animated:YES];
57 | }
58 |
59 | - (UITableView *)tableView {
60 | if (!_tableView) {
61 | _tableView = [[UITableView alloc]initWithFrame:CGRectMake(0,0, kScreenWidth,kScreenHeight) style:UITableViewStylePlain];
62 | _tableView.delegate = self;
63 | _tableView.dataSource = self;
64 | _tableView.backgroundColor = [UIColor whiteColor];
65 | }
66 | return _tableView;
67 | }
68 |
69 |
70 |
71 | - (void)didReceiveMemoryWarning {
72 | [super didReceiveMemoryWarning];
73 | // Dispose of any resources that can be recreated.
74 | }
75 |
76 | /*
77 | #pragma mark - Navigation
78 |
79 | // In a storyboard-based application, you will often want to do a little preparation before navigation
80 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
81 | // Get the new view controller using [segue destinationViewController].
82 | // Pass the selected object to the new view controller.
83 | }
84 | */
85 |
86 | @end
87 |
--------------------------------------------------------------------------------
/HomeKit.xcodeproj/xcuserdata/fanfan.xcuserdatad/xcschemes/HomeKit.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
43 |
49 |
50 |
51 |
52 |
53 |
59 |
60 |
61 |
62 |
63 |
64 |
74 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
95 |
101 |
102 |
103 |
104 |
106 |
107 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/HomeKit/ESMNavigationViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ESMNavigationViewController.m
3 | // HomeKit
4 | //
5 | // Created by 可米小子 on 16/10/27.
6 | // Copyright © 2016年 可米小子. All rights reserved.
7 | //
8 |
9 | #import "ESMNavigationViewController.h"
10 | #import "AppDelegate.h"
11 | #import "ESMBaseViewController.h"
12 |
13 | // 打开边界多少距离才触发pop
14 | #define DISTANCE_TO_POP 80
15 |
16 | @interface ESMNavigationViewController ()
17 |
18 | @end
19 |
20 | @implementation ESMNavigationViewController
21 |
22 | - (void)viewDidLoad {
23 | [super viewDidLoad];
24 | //屏蔽系统的手势
25 | self.interactivePopGestureRecognizer.enabled = NO;
26 | self.panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePanGesture:)];
27 | _panGesture.delegate = self;
28 | [self.view addGestureRecognizer:_panGesture];
29 | }
30 |
31 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
32 | {
33 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
34 | if (self) {
35 | self.arrayScreenshot = [NSMutableArray array];
36 | }
37 | return self;
38 | }
39 |
40 | //设置状态栏前景色默认颜色
41 | -(UIStatusBarStyle)preferredStatusBarStyle {
42 | return UIStatusBarStyleLightContent;
43 | }
44 |
45 | - (UIViewController *)childViewControllerForStatusBarStyle {
46 | return self.topViewController;
47 | }
48 |
49 | - (BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)gestureRecognizer {
50 | if (gestureRecognizer.view == self.view) {
51 | ESMBaseViewController *topView = (ESMBaseViewController *)self.topViewController;
52 |
53 | if (!topView.enablePanGesture)
54 | return NO;
55 | else
56 | {
57 | CGPoint translate = [gestureRecognizer translationInView:self.view];
58 |
59 | BOOL possible = translate.x != 0 && fabs(translate.y) == 0;
60 | if (possible)
61 | return YES;
62 | else
63 | return NO;
64 | return YES;
65 | }
66 | }
67 | return NO;
68 | }
69 |
70 | - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
71 | {
72 | if ([otherGestureRecognizer isKindOfClass:NSClassFromString(@"UIScrollViewPanGestureRecognizer")] || [otherGestureRecognizer isKindOfClass:NSClassFromString(@"UIPanGestureRecognizer")] ) //设置该条件是避免跟tableview的删除,筛选界面展开的左滑事件有冲突
73 | {
74 | return NO;
75 | }
76 |
77 | return YES;
78 | }
79 |
80 | - (void)handlePanGesture:(UIPanGestureRecognizer *)panGesture
81 | {
82 | AppDelegate *appdelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
83 |
84 | NSInteger kScreen = [UIScreen mainScreen].bounds.size.width;
85 | UIViewController *rootVC = appdelegate.window.rootViewController;
86 | UIViewController *presentedVC = rootVC.presentedViewController;
87 | if (self.viewControllers.count == 1)
88 | {
89 | return;
90 | }
91 | if (panGesture.state == UIGestureRecognizerStateBegan)
92 | {
93 | appdelegate.screenshotView.hidden = NO;
94 | appdelegate.screenshotView.imgView.image = self.arrayScreenshot[self.arrayScreenshot.count - 1];
95 | }
96 | else if (panGesture.state == UIGestureRecognizerStateChanged)
97 | {
98 | CGPoint point_inView = [panGesture translationInView:self.view];
99 |
100 | if (point_inView.x >= 10)
101 | {
102 | rootVC.view.transform = CGAffineTransformMakeTranslation(point_inView.x - 10, 0);
103 | appdelegate.screenshotView.transform = CGAffineTransformMakeTranslation (point_inView.x, 0);
104 | presentedVC.view.transform = CGAffineTransformMakeTranslation(point_inView.x - 10, 0);
105 | }
106 | }
107 | else if (panGesture.state == UIGestureRecognizerStateEnded)
108 | {
109 | CGPoint point_inView = [panGesture translationInView:self.view];
110 | if (point_inView.x >= DISTANCE_TO_POP)
111 | {
112 | [UIView animateWithDuration:0.3 animations:^{
113 | rootVC.view.transform = CGAffineTransformMakeTranslation(kScreen, 0);
114 | appdelegate.screenshotView.transform = CGAffineTransformMakeTranslation(kScreen, 0);
115 | presentedVC.view.transform = CGAffineTransformMakeTranslation(kScreen, 0);
116 | } completion:^(BOOL finished) {
117 | [self popViewControllerAnimated:NO];
118 | rootVC.view.transform = CGAffineTransformIdentity;
119 | presentedVC.view.transform = CGAffineTransformIdentity;
120 | appdelegate.screenshotView.hidden = YES;
121 | appdelegate.screenshotView.transform = CGAffineTransformMakeTranslation(-kScreen, 0);
122 | }];
123 | }
124 | else
125 | {
126 | [UIView animateWithDuration:0.3 animations:^{
127 | rootVC.view.transform = CGAffineTransformIdentity;
128 | appdelegate.screenshotView.transform = CGAffineTransformIdentity;
129 | presentedVC.view.transform = CGAffineTransformIdentity;
130 | } completion:^(BOOL finished) {
131 | appdelegate.screenshotView.hidden = YES;
132 | }];
133 | }
134 | }
135 | }
136 |
137 |
138 |
139 | - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
140 | {
141 | #if kUseScreenShotGesture
142 | if (self.viewControllers.count == 0){
143 | return [super pushViewController:viewController animated:animated];
144 | }else if (self.viewControllers.count>=1) {
145 | viewController.hidesBottomBarWhenPushed = YES;//隐藏二级页面的tabbar
146 | }
147 | AppDelegate *appdelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
148 | UIGraphicsBeginImageContextWithOptions(CGSizeMake(appdelegate.window.frame.size.width, appdelegate.window.frame.size.height), YES, 0);
149 | [appdelegate.window.layer renderInContext:UIGraphicsGetCurrentContext()];
150 | UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
151 | UIGraphicsEndImageContext();
152 | [self.arrayScreenshot addObject:viewImage];
153 |
154 | appdelegate.screenshotView.imgView.image = viewImage;
155 | #endif
156 | [super pushViewController:viewController animated:animated];
157 | }
158 |
159 | - (UIViewController *)popViewControllerAnimated:(BOOL)animated
160 | {
161 | #if kUseScreenShotGesture
162 | AppDelegate *appdelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
163 | [self.arrayScreenshot removeLastObject];
164 | UIImage *image = [self.arrayScreenshot lastObject];
165 |
166 | if (image)
167 | appdelegate.screenshotView.imgView.image = image;
168 | #endif
169 | UIViewController *v = [super popViewControllerAnimated:animated];
170 | return v;
171 | }
172 |
173 | - (NSArray *)popToRootViewControllerAnimated:(BOOL)animated
174 | {
175 | #if kUseScreenShotGesture
176 | AppDelegate *appdelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
177 | if (self.arrayScreenshot.count > 2)
178 | {
179 | [self.arrayScreenshot removeObjectsInRange:NSMakeRange(1, self.arrayScreenshot.count - 1)];
180 | }
181 | UIImage *image = [self.arrayScreenshot lastObject];
182 | if (image)
183 | appdelegate.screenshotView.imgView.image = image;
184 | #endif
185 | return [super popToRootViewControllerAnimated:animated];
186 | }
187 |
188 | - (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
189 | {
190 | NSArray *arr = [super popToViewController:viewController animated:animated];
191 |
192 | if (self.arrayScreenshot.count > arr.count)
193 | {
194 | for (int i = 0; i < arr.count; i++) {
195 | [self.arrayScreenshot removeLastObject];
196 | }
197 | }
198 | return arr;
199 | }
200 |
201 |
202 | - (void)didReceiveMemoryWarning {
203 | [super didReceiveMemoryWarning];
204 | // Dispose of any resources that can be recreated.
205 | }
206 |
207 | /*
208 | #pragma mark - Navigation
209 |
210 | // In a storyboard-based application, you will often want to do a little preparation before navigation
211 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
212 | // Get the new view controller using [segue destinationViewController].
213 | // Pass the selected object to the new view controller.
214 | }
215 | */
216 |
217 | @end
218 |
--------------------------------------------------------------------------------
/HomeKit.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | A93507551DC1F54900CD6D3F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A93507541DC1F54900CD6D3F /* main.m */; };
11 | A93507581DC1F54900CD6D3F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A93507571DC1F54900CD6D3F /* AppDelegate.m */; };
12 | A935075E1DC1F54900CD6D3F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A935075C1DC1F54900CD6D3F /* Main.storyboard */; };
13 | A93507601DC1F54900CD6D3F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A935075F1DC1F54900CD6D3F /* Assets.xcassets */; };
14 | A93507631DC1F54900CD6D3F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A93507611DC1F54900CD6D3F /* LaunchScreen.storyboard */; };
15 | A935076E1DC1F54900CD6D3F /* HomeKitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A935076D1DC1F54900CD6D3F /* HomeKitTests.m */; };
16 | A93507791DC1F54900CD6D3F /* HomeKitUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = A93507781DC1F54900CD6D3F /* HomeKitUITests.m */; };
17 | A93507881DC1F76E00CD6D3F /* ESMTabBarViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A93507871DC1F76E00CD6D3F /* ESMTabBarViewController.m */; };
18 | A935078B1DC1F8FB00CD6D3F /* ESMNavigationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A935078A1DC1F8FB00CD6D3F /* ESMNavigationViewController.m */; };
19 | A935078E1DC1FA8900CD6D3F /* ESMTabBarVC.m in Sources */ = {isa = PBXBuildFile; fileRef = A935078D1DC1FA8900CD6D3F /* ESMTabBarVC.m */; };
20 | A93507931DC1FB4100CD6D3F /* ESMHomeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A93507921DC1FB4100CD6D3F /* ESMHomeViewController.m */; };
21 | A93507961DC1FB5600CD6D3F /* ESMTestViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A93507951DC1FB5600CD6D3F /* ESMTestViewController.m */; };
22 | A93507991DC1FB6900CD6D3F /* ESMMoneyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A93507981DC1FB6900CD6D3F /* ESMMoneyViewController.m */; };
23 | A935079C1DC1FB7300CD6D3F /* ESMMeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A935079B1DC1FB7300CD6D3F /* ESMMeViewController.m */; };
24 | A935079F1DC206D600CD6D3F /* ESMBaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A935079E1DC206D600CD6D3F /* ESMBaseViewController.m */; };
25 | A93507A21DC2094E00CD6D3F /* ScreenShotView.m in Sources */ = {isa = PBXBuildFile; fileRef = A93507A11DC2094E00CD6D3F /* ScreenShotView.m */; };
26 | A93507A51DC20A7A00CD6D3F /* ESMOneViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A93507A41DC20A7A00CD6D3F /* ESMOneViewController.m */; };
27 | A9FD93051DC327F10075129E /* ESMTwoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9FD93041DC327F10075129E /* ESMTwoViewController.m */; };
28 | /* End PBXBuildFile section */
29 |
30 | /* Begin PBXContainerItemProxy section */
31 | A935076A1DC1F54900CD6D3F /* PBXContainerItemProxy */ = {
32 | isa = PBXContainerItemProxy;
33 | containerPortal = A93507481DC1F54900CD6D3F /* Project object */;
34 | proxyType = 1;
35 | remoteGlobalIDString = A935074F1DC1F54900CD6D3F;
36 | remoteInfo = HomeKit;
37 | };
38 | A93507751DC1F54900CD6D3F /* PBXContainerItemProxy */ = {
39 | isa = PBXContainerItemProxy;
40 | containerPortal = A93507481DC1F54900CD6D3F /* Project object */;
41 | proxyType = 1;
42 | remoteGlobalIDString = A935074F1DC1F54900CD6D3F;
43 | remoteInfo = HomeKit;
44 | };
45 | /* End PBXContainerItemProxy section */
46 |
47 | /* Begin PBXFileReference section */
48 | A93507501DC1F54900CD6D3F /* HomeKit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HomeKit.app; sourceTree = BUILT_PRODUCTS_DIR; };
49 | A93507541DC1F54900CD6D3F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
50 | A93507561DC1F54900CD6D3F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
51 | A93507571DC1F54900CD6D3F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
52 | A935075D1DC1F54900CD6D3F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
53 | A935075F1DC1F54900CD6D3F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
54 | A93507621DC1F54900CD6D3F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
55 | A93507641DC1F54900CD6D3F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
56 | A93507691DC1F54900CD6D3F /* HomeKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HomeKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
57 | A935076D1DC1F54900CD6D3F /* HomeKitTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomeKitTests.m; sourceTree = ""; };
58 | A935076F1DC1F54900CD6D3F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
59 | A93507741DC1F54900CD6D3F /* HomeKitUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HomeKitUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
60 | A93507781DC1F54900CD6D3F /* HomeKitUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomeKitUITests.m; sourceTree = ""; };
61 | A935077A1DC1F54900CD6D3F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
62 | A93507861DC1F76E00CD6D3F /* ESMTabBarViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESMTabBarViewController.h; sourceTree = ""; };
63 | A93507871DC1F76E00CD6D3F /* ESMTabBarViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESMTabBarViewController.m; sourceTree = ""; };
64 | A93507891DC1F8FB00CD6D3F /* ESMNavigationViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESMNavigationViewController.h; sourceTree = ""; };
65 | A935078A1DC1F8FB00CD6D3F /* ESMNavigationViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESMNavigationViewController.m; sourceTree = ""; };
66 | A935078C1DC1FA8900CD6D3F /* ESMTabBarVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESMTabBarVC.h; sourceTree = ""; };
67 | A935078D1DC1FA8900CD6D3F /* ESMTabBarVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESMTabBarVC.m; sourceTree = ""; };
68 | A93507911DC1FB4100CD6D3F /* ESMHomeViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESMHomeViewController.h; sourceTree = ""; };
69 | A93507921DC1FB4100CD6D3F /* ESMHomeViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESMHomeViewController.m; sourceTree = ""; };
70 | A93507941DC1FB5600CD6D3F /* ESMTestViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESMTestViewController.h; sourceTree = ""; };
71 | A93507951DC1FB5600CD6D3F /* ESMTestViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESMTestViewController.m; sourceTree = ""; };
72 | A93507971DC1FB6900CD6D3F /* ESMMoneyViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESMMoneyViewController.h; sourceTree = ""; };
73 | A93507981DC1FB6900CD6D3F /* ESMMoneyViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESMMoneyViewController.m; sourceTree = ""; };
74 | A935079A1DC1FB7300CD6D3F /* ESMMeViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESMMeViewController.h; sourceTree = ""; };
75 | A935079B1DC1FB7300CD6D3F /* ESMMeViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESMMeViewController.m; sourceTree = ""; };
76 | A935079D1DC206D600CD6D3F /* ESMBaseViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESMBaseViewController.h; sourceTree = ""; };
77 | A935079E1DC206D600CD6D3F /* ESMBaseViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESMBaseViewController.m; sourceTree = ""; };
78 | A93507A01DC2094E00CD6D3F /* ScreenShotView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScreenShotView.h; sourceTree = ""; };
79 | A93507A11DC2094E00CD6D3F /* ScreenShotView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScreenShotView.m; sourceTree = ""; };
80 | A93507A31DC20A7A00CD6D3F /* ESMOneViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESMOneViewController.h; sourceTree = ""; };
81 | A93507A41DC20A7A00CD6D3F /* ESMOneViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESMOneViewController.m; sourceTree = ""; };
82 | A9FD93031DC327F10075129E /* ESMTwoViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESMTwoViewController.h; sourceTree = ""; };
83 | A9FD93041DC327F10075129E /* ESMTwoViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESMTwoViewController.m; sourceTree = ""; };
84 | /* End PBXFileReference section */
85 |
86 | /* Begin PBXFrameworksBuildPhase section */
87 | A935074D1DC1F54900CD6D3F /* Frameworks */ = {
88 | isa = PBXFrameworksBuildPhase;
89 | buildActionMask = 2147483647;
90 | files = (
91 | );
92 | runOnlyForDeploymentPostprocessing = 0;
93 | };
94 | A93507661DC1F54900CD6D3F /* Frameworks */ = {
95 | isa = PBXFrameworksBuildPhase;
96 | buildActionMask = 2147483647;
97 | files = (
98 | );
99 | runOnlyForDeploymentPostprocessing = 0;
100 | };
101 | A93507711DC1F54900CD6D3F /* Frameworks */ = {
102 | isa = PBXFrameworksBuildPhase;
103 | buildActionMask = 2147483647;
104 | files = (
105 | );
106 | runOnlyForDeploymentPostprocessing = 0;
107 | };
108 | /* End PBXFrameworksBuildPhase section */
109 |
110 | /* Begin PBXGroup section */
111 | A93507471DC1F54900CD6D3F = {
112 | isa = PBXGroup;
113 | children = (
114 | A93507521DC1F54900CD6D3F /* HomeKit */,
115 | A935076C1DC1F54900CD6D3F /* HomeKitTests */,
116 | A93507771DC1F54900CD6D3F /* HomeKitUITests */,
117 | A93507511DC1F54900CD6D3F /* Products */,
118 | );
119 | sourceTree = "";
120 | };
121 | A93507511DC1F54900CD6D3F /* Products */ = {
122 | isa = PBXGroup;
123 | children = (
124 | A93507501DC1F54900CD6D3F /* HomeKit.app */,
125 | A93507691DC1F54900CD6D3F /* HomeKitTests.xctest */,
126 | A93507741DC1F54900CD6D3F /* HomeKitUITests.xctest */,
127 | );
128 | name = Products;
129 | sourceTree = "";
130 | };
131 | A93507521DC1F54900CD6D3F /* HomeKit */ = {
132 | isa = PBXGroup;
133 | children = (
134 | A93507561DC1F54900CD6D3F /* AppDelegate.h */,
135 | A93507571DC1F54900CD6D3F /* AppDelegate.m */,
136 | A935078F1DC1FAE600CD6D3F /* Controller */,
137 | A93507901DC1FAFC00CD6D3F /* Base */,
138 | A935075C1DC1F54900CD6D3F /* Main.storyboard */,
139 | A935075F1DC1F54900CD6D3F /* Assets.xcassets */,
140 | A93507611DC1F54900CD6D3F /* LaunchScreen.storyboard */,
141 | A93507641DC1F54900CD6D3F /* Info.plist */,
142 | A93507531DC1F54900CD6D3F /* Supporting Files */,
143 | );
144 | path = HomeKit;
145 | sourceTree = "";
146 | };
147 | A93507531DC1F54900CD6D3F /* Supporting Files */ = {
148 | isa = PBXGroup;
149 | children = (
150 | A93507541DC1F54900CD6D3F /* main.m */,
151 | );
152 | name = "Supporting Files";
153 | sourceTree = "";
154 | };
155 | A935076C1DC1F54900CD6D3F /* HomeKitTests */ = {
156 | isa = PBXGroup;
157 | children = (
158 | A935076D1DC1F54900CD6D3F /* HomeKitTests.m */,
159 | A935076F1DC1F54900CD6D3F /* Info.plist */,
160 | );
161 | path = HomeKitTests;
162 | sourceTree = "";
163 | };
164 | A93507771DC1F54900CD6D3F /* HomeKitUITests */ = {
165 | isa = PBXGroup;
166 | children = (
167 | A93507781DC1F54900CD6D3F /* HomeKitUITests.m */,
168 | A935077A1DC1F54900CD6D3F /* Info.plist */,
169 | );
170 | path = HomeKitUITests;
171 | sourceTree = "";
172 | };
173 | A935078F1DC1FAE600CD6D3F /* Controller */ = {
174 | isa = PBXGroup;
175 | children = (
176 | A93507911DC1FB4100CD6D3F /* ESMHomeViewController.h */,
177 | A93507921DC1FB4100CD6D3F /* ESMHomeViewController.m */,
178 | A93507941DC1FB5600CD6D3F /* ESMTestViewController.h */,
179 | A93507951DC1FB5600CD6D3F /* ESMTestViewController.m */,
180 | A93507A31DC20A7A00CD6D3F /* ESMOneViewController.h */,
181 | A93507A41DC20A7A00CD6D3F /* ESMOneViewController.m */,
182 | A9FD93031DC327F10075129E /* ESMTwoViewController.h */,
183 | A9FD93041DC327F10075129E /* ESMTwoViewController.m */,
184 | A93507971DC1FB6900CD6D3F /* ESMMoneyViewController.h */,
185 | A93507981DC1FB6900CD6D3F /* ESMMoneyViewController.m */,
186 | A935079A1DC1FB7300CD6D3F /* ESMMeViewController.h */,
187 | A935079B1DC1FB7300CD6D3F /* ESMMeViewController.m */,
188 | );
189 | name = Controller;
190 | sourceTree = "";
191 | };
192 | A93507901DC1FAFC00CD6D3F /* Base */ = {
193 | isa = PBXGroup;
194 | children = (
195 | A935078C1DC1FA8900CD6D3F /* ESMTabBarVC.h */,
196 | A935078D1DC1FA8900CD6D3F /* ESMTabBarVC.m */,
197 | A93507861DC1F76E00CD6D3F /* ESMTabBarViewController.h */,
198 | A93507871DC1F76E00CD6D3F /* ESMTabBarViewController.m */,
199 | A93507891DC1F8FB00CD6D3F /* ESMNavigationViewController.h */,
200 | A935078A1DC1F8FB00CD6D3F /* ESMNavigationViewController.m */,
201 | A935079D1DC206D600CD6D3F /* ESMBaseViewController.h */,
202 | A935079E1DC206D600CD6D3F /* ESMBaseViewController.m */,
203 | A93507A01DC2094E00CD6D3F /* ScreenShotView.h */,
204 | A93507A11DC2094E00CD6D3F /* ScreenShotView.m */,
205 | );
206 | name = Base;
207 | sourceTree = "";
208 | };
209 | /* End PBXGroup section */
210 |
211 | /* Begin PBXNativeTarget section */
212 | A935074F1DC1F54900CD6D3F /* HomeKit */ = {
213 | isa = PBXNativeTarget;
214 | buildConfigurationList = A935077D1DC1F54900CD6D3F /* Build configuration list for PBXNativeTarget "HomeKit" */;
215 | buildPhases = (
216 | A935074C1DC1F54900CD6D3F /* Sources */,
217 | A935074D1DC1F54900CD6D3F /* Frameworks */,
218 | A935074E1DC1F54900CD6D3F /* Resources */,
219 | );
220 | buildRules = (
221 | );
222 | dependencies = (
223 | );
224 | name = HomeKit;
225 | productName = HomeKit;
226 | productReference = A93507501DC1F54900CD6D3F /* HomeKit.app */;
227 | productType = "com.apple.product-type.application";
228 | };
229 | A93507681DC1F54900CD6D3F /* HomeKitTests */ = {
230 | isa = PBXNativeTarget;
231 | buildConfigurationList = A93507801DC1F54900CD6D3F /* Build configuration list for PBXNativeTarget "HomeKitTests" */;
232 | buildPhases = (
233 | A93507651DC1F54900CD6D3F /* Sources */,
234 | A93507661DC1F54900CD6D3F /* Frameworks */,
235 | A93507671DC1F54900CD6D3F /* Resources */,
236 | );
237 | buildRules = (
238 | );
239 | dependencies = (
240 | A935076B1DC1F54900CD6D3F /* PBXTargetDependency */,
241 | );
242 | name = HomeKitTests;
243 | productName = HomeKitTests;
244 | productReference = A93507691DC1F54900CD6D3F /* HomeKitTests.xctest */;
245 | productType = "com.apple.product-type.bundle.unit-test";
246 | };
247 | A93507731DC1F54900CD6D3F /* HomeKitUITests */ = {
248 | isa = PBXNativeTarget;
249 | buildConfigurationList = A93507831DC1F54900CD6D3F /* Build configuration list for PBXNativeTarget "HomeKitUITests" */;
250 | buildPhases = (
251 | A93507701DC1F54900CD6D3F /* Sources */,
252 | A93507711DC1F54900CD6D3F /* Frameworks */,
253 | A93507721DC1F54900CD6D3F /* Resources */,
254 | );
255 | buildRules = (
256 | );
257 | dependencies = (
258 | A93507761DC1F54900CD6D3F /* PBXTargetDependency */,
259 | );
260 | name = HomeKitUITests;
261 | productName = HomeKitUITests;
262 | productReference = A93507741DC1F54900CD6D3F /* HomeKitUITests.xctest */;
263 | productType = "com.apple.product-type.bundle.ui-testing";
264 | };
265 | /* End PBXNativeTarget section */
266 |
267 | /* Begin PBXProject section */
268 | A93507481DC1F54900CD6D3F /* Project object */ = {
269 | isa = PBXProject;
270 | attributes = {
271 | LastUpgradeCheck = 0800;
272 | ORGANIZATIONNAME = "可米小子";
273 | TargetAttributes = {
274 | A935074F1DC1F54900CD6D3F = {
275 | CreatedOnToolsVersion = 8.0;
276 | DevelopmentTeam = HMFTZ9QC7T;
277 | ProvisioningStyle = Automatic;
278 | };
279 | A93507681DC1F54900CD6D3F = {
280 | CreatedOnToolsVersion = 8.0;
281 | DevelopmentTeam = HMFTZ9QC7T;
282 | ProvisioningStyle = Automatic;
283 | TestTargetID = A935074F1DC1F54900CD6D3F;
284 | };
285 | A93507731DC1F54900CD6D3F = {
286 | CreatedOnToolsVersion = 8.0;
287 | DevelopmentTeam = HMFTZ9QC7T;
288 | ProvisioningStyle = Automatic;
289 | TestTargetID = A935074F1DC1F54900CD6D3F;
290 | };
291 | };
292 | };
293 | buildConfigurationList = A935074B1DC1F54900CD6D3F /* Build configuration list for PBXProject "HomeKit" */;
294 | compatibilityVersion = "Xcode 3.2";
295 | developmentRegion = English;
296 | hasScannedForEncodings = 0;
297 | knownRegions = (
298 | en,
299 | Base,
300 | );
301 | mainGroup = A93507471DC1F54900CD6D3F;
302 | productRefGroup = A93507511DC1F54900CD6D3F /* Products */;
303 | projectDirPath = "";
304 | projectRoot = "";
305 | targets = (
306 | A935074F1DC1F54900CD6D3F /* HomeKit */,
307 | A93507681DC1F54900CD6D3F /* HomeKitTests */,
308 | A93507731DC1F54900CD6D3F /* HomeKitUITests */,
309 | );
310 | };
311 | /* End PBXProject section */
312 |
313 | /* Begin PBXResourcesBuildPhase section */
314 | A935074E1DC1F54900CD6D3F /* Resources */ = {
315 | isa = PBXResourcesBuildPhase;
316 | buildActionMask = 2147483647;
317 | files = (
318 | A93507631DC1F54900CD6D3F /* LaunchScreen.storyboard in Resources */,
319 | A93507601DC1F54900CD6D3F /* Assets.xcassets in Resources */,
320 | A935075E1DC1F54900CD6D3F /* Main.storyboard in Resources */,
321 | );
322 | runOnlyForDeploymentPostprocessing = 0;
323 | };
324 | A93507671DC1F54900CD6D3F /* Resources */ = {
325 | isa = PBXResourcesBuildPhase;
326 | buildActionMask = 2147483647;
327 | files = (
328 | );
329 | runOnlyForDeploymentPostprocessing = 0;
330 | };
331 | A93507721DC1F54900CD6D3F /* Resources */ = {
332 | isa = PBXResourcesBuildPhase;
333 | buildActionMask = 2147483647;
334 | files = (
335 | );
336 | runOnlyForDeploymentPostprocessing = 0;
337 | };
338 | /* End PBXResourcesBuildPhase section */
339 |
340 | /* Begin PBXSourcesBuildPhase section */
341 | A935074C1DC1F54900CD6D3F /* Sources */ = {
342 | isa = PBXSourcesBuildPhase;
343 | buildActionMask = 2147483647;
344 | files = (
345 | A9FD93051DC327F10075129E /* ESMTwoViewController.m in Sources */,
346 | A935078E1DC1FA8900CD6D3F /* ESMTabBarVC.m in Sources */,
347 | A935079C1DC1FB7300CD6D3F /* ESMMeViewController.m in Sources */,
348 | A93507A21DC2094E00CD6D3F /* ScreenShotView.m in Sources */,
349 | A93507A51DC20A7A00CD6D3F /* ESMOneViewController.m in Sources */,
350 | A93507931DC1FB4100CD6D3F /* ESMHomeViewController.m in Sources */,
351 | A935078B1DC1F8FB00CD6D3F /* ESMNavigationViewController.m in Sources */,
352 | A93507581DC1F54900CD6D3F /* AppDelegate.m in Sources */,
353 | A93507961DC1FB5600CD6D3F /* ESMTestViewController.m in Sources */,
354 | A93507551DC1F54900CD6D3F /* main.m in Sources */,
355 | A93507881DC1F76E00CD6D3F /* ESMTabBarViewController.m in Sources */,
356 | A93507991DC1FB6900CD6D3F /* ESMMoneyViewController.m in Sources */,
357 | A935079F1DC206D600CD6D3F /* ESMBaseViewController.m in Sources */,
358 | );
359 | runOnlyForDeploymentPostprocessing = 0;
360 | };
361 | A93507651DC1F54900CD6D3F /* Sources */ = {
362 | isa = PBXSourcesBuildPhase;
363 | buildActionMask = 2147483647;
364 | files = (
365 | A935076E1DC1F54900CD6D3F /* HomeKitTests.m in Sources */,
366 | );
367 | runOnlyForDeploymentPostprocessing = 0;
368 | };
369 | A93507701DC1F54900CD6D3F /* Sources */ = {
370 | isa = PBXSourcesBuildPhase;
371 | buildActionMask = 2147483647;
372 | files = (
373 | A93507791DC1F54900CD6D3F /* HomeKitUITests.m in Sources */,
374 | );
375 | runOnlyForDeploymentPostprocessing = 0;
376 | };
377 | /* End PBXSourcesBuildPhase section */
378 |
379 | /* Begin PBXTargetDependency section */
380 | A935076B1DC1F54900CD6D3F /* PBXTargetDependency */ = {
381 | isa = PBXTargetDependency;
382 | target = A935074F1DC1F54900CD6D3F /* HomeKit */;
383 | targetProxy = A935076A1DC1F54900CD6D3F /* PBXContainerItemProxy */;
384 | };
385 | A93507761DC1F54900CD6D3F /* PBXTargetDependency */ = {
386 | isa = PBXTargetDependency;
387 | target = A935074F1DC1F54900CD6D3F /* HomeKit */;
388 | targetProxy = A93507751DC1F54900CD6D3F /* PBXContainerItemProxy */;
389 | };
390 | /* End PBXTargetDependency section */
391 |
392 | /* Begin PBXVariantGroup section */
393 | A935075C1DC1F54900CD6D3F /* Main.storyboard */ = {
394 | isa = PBXVariantGroup;
395 | children = (
396 | A935075D1DC1F54900CD6D3F /* Base */,
397 | );
398 | name = Main.storyboard;
399 | sourceTree = "";
400 | };
401 | A93507611DC1F54900CD6D3F /* LaunchScreen.storyboard */ = {
402 | isa = PBXVariantGroup;
403 | children = (
404 | A93507621DC1F54900CD6D3F /* Base */,
405 | );
406 | name = LaunchScreen.storyboard;
407 | sourceTree = "";
408 | };
409 | /* End PBXVariantGroup section */
410 |
411 | /* Begin XCBuildConfiguration section */
412 | A935077B1DC1F54900CD6D3F /* Debug */ = {
413 | isa = XCBuildConfiguration;
414 | buildSettings = {
415 | ALWAYS_SEARCH_USER_PATHS = NO;
416 | CLANG_ANALYZER_NONNULL = YES;
417 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
418 | CLANG_CXX_LIBRARY = "libc++";
419 | CLANG_ENABLE_MODULES = YES;
420 | CLANG_ENABLE_OBJC_ARC = YES;
421 | CLANG_WARN_BOOL_CONVERSION = YES;
422 | CLANG_WARN_CONSTANT_CONVERSION = YES;
423 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
424 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
425 | CLANG_WARN_EMPTY_BODY = YES;
426 | CLANG_WARN_ENUM_CONVERSION = YES;
427 | CLANG_WARN_INFINITE_RECURSION = YES;
428 | CLANG_WARN_INT_CONVERSION = YES;
429 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
430 | CLANG_WARN_SUSPICIOUS_MOVES = YES;
431 | CLANG_WARN_UNREACHABLE_CODE = YES;
432 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
433 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
434 | COPY_PHASE_STRIP = NO;
435 | DEBUG_INFORMATION_FORMAT = dwarf;
436 | ENABLE_STRICT_OBJC_MSGSEND = YES;
437 | ENABLE_TESTABILITY = YES;
438 | GCC_C_LANGUAGE_STANDARD = gnu99;
439 | GCC_DYNAMIC_NO_PIC = NO;
440 | GCC_NO_COMMON_BLOCKS = YES;
441 | GCC_OPTIMIZATION_LEVEL = 0;
442 | GCC_PREPROCESSOR_DEFINITIONS = (
443 | "DEBUG=1",
444 | "$(inherited)",
445 | );
446 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
447 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
448 | GCC_WARN_UNDECLARED_SELECTOR = YES;
449 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
450 | GCC_WARN_UNUSED_FUNCTION = YES;
451 | GCC_WARN_UNUSED_VARIABLE = YES;
452 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
453 | MTL_ENABLE_DEBUG_INFO = YES;
454 | ONLY_ACTIVE_ARCH = YES;
455 | SDKROOT = iphoneos;
456 | TARGETED_DEVICE_FAMILY = "1,2";
457 | };
458 | name = Debug;
459 | };
460 | A935077C1DC1F54900CD6D3F /* Release */ = {
461 | isa = XCBuildConfiguration;
462 | buildSettings = {
463 | ALWAYS_SEARCH_USER_PATHS = NO;
464 | CLANG_ANALYZER_NONNULL = YES;
465 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
466 | CLANG_CXX_LIBRARY = "libc++";
467 | CLANG_ENABLE_MODULES = YES;
468 | CLANG_ENABLE_OBJC_ARC = YES;
469 | CLANG_WARN_BOOL_CONVERSION = YES;
470 | CLANG_WARN_CONSTANT_CONVERSION = YES;
471 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
472 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
473 | CLANG_WARN_EMPTY_BODY = YES;
474 | CLANG_WARN_ENUM_CONVERSION = YES;
475 | CLANG_WARN_INFINITE_RECURSION = YES;
476 | CLANG_WARN_INT_CONVERSION = YES;
477 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
478 | CLANG_WARN_SUSPICIOUS_MOVES = YES;
479 | CLANG_WARN_UNREACHABLE_CODE = YES;
480 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
481 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
482 | COPY_PHASE_STRIP = NO;
483 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
484 | ENABLE_NS_ASSERTIONS = NO;
485 | ENABLE_STRICT_OBJC_MSGSEND = YES;
486 | GCC_C_LANGUAGE_STANDARD = gnu99;
487 | GCC_NO_COMMON_BLOCKS = YES;
488 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
489 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
490 | GCC_WARN_UNDECLARED_SELECTOR = YES;
491 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
492 | GCC_WARN_UNUSED_FUNCTION = YES;
493 | GCC_WARN_UNUSED_VARIABLE = YES;
494 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
495 | MTL_ENABLE_DEBUG_INFO = NO;
496 | SDKROOT = iphoneos;
497 | TARGETED_DEVICE_FAMILY = "1,2";
498 | VALIDATE_PRODUCT = YES;
499 | };
500 | name = Release;
501 | };
502 | A935077E1DC1F54900CD6D3F /* Debug */ = {
503 | isa = XCBuildConfiguration;
504 | buildSettings = {
505 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
506 | DEVELOPMENT_TEAM = HMFTZ9QC7T;
507 | INFOPLIST_FILE = HomeKit/Info.plist;
508 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
509 | PRODUCT_BUNDLE_IDENTIFIER = "-23456.HomeKit";
510 | PRODUCT_NAME = "$(TARGET_NAME)";
511 | };
512 | name = Debug;
513 | };
514 | A935077F1DC1F54900CD6D3F /* Release */ = {
515 | isa = XCBuildConfiguration;
516 | buildSettings = {
517 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
518 | DEVELOPMENT_TEAM = HMFTZ9QC7T;
519 | INFOPLIST_FILE = HomeKit/Info.plist;
520 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
521 | PRODUCT_BUNDLE_IDENTIFIER = "-23456.HomeKit";
522 | PRODUCT_NAME = "$(TARGET_NAME)";
523 | };
524 | name = Release;
525 | };
526 | A93507811DC1F54900CD6D3F /* Debug */ = {
527 | isa = XCBuildConfiguration;
528 | buildSettings = {
529 | BUNDLE_LOADER = "$(TEST_HOST)";
530 | DEVELOPMENT_TEAM = HMFTZ9QC7T;
531 | INFOPLIST_FILE = HomeKitTests/Info.plist;
532 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
533 | PRODUCT_BUNDLE_IDENTIFIER = "-23456.HomeKitTests";
534 | PRODUCT_NAME = "$(TARGET_NAME)";
535 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HomeKit.app/HomeKit";
536 | };
537 | name = Debug;
538 | };
539 | A93507821DC1F54900CD6D3F /* Release */ = {
540 | isa = XCBuildConfiguration;
541 | buildSettings = {
542 | BUNDLE_LOADER = "$(TEST_HOST)";
543 | DEVELOPMENT_TEAM = HMFTZ9QC7T;
544 | INFOPLIST_FILE = HomeKitTests/Info.plist;
545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
546 | PRODUCT_BUNDLE_IDENTIFIER = "-23456.HomeKitTests";
547 | PRODUCT_NAME = "$(TARGET_NAME)";
548 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HomeKit.app/HomeKit";
549 | };
550 | name = Release;
551 | };
552 | A93507841DC1F54900CD6D3F /* Debug */ = {
553 | isa = XCBuildConfiguration;
554 | buildSettings = {
555 | DEVELOPMENT_TEAM = HMFTZ9QC7T;
556 | INFOPLIST_FILE = HomeKitUITests/Info.plist;
557 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
558 | PRODUCT_BUNDLE_IDENTIFIER = "-23456.HomeKitUITests";
559 | PRODUCT_NAME = "$(TARGET_NAME)";
560 | TEST_TARGET_NAME = HomeKit;
561 | };
562 | name = Debug;
563 | };
564 | A93507851DC1F54900CD6D3F /* Release */ = {
565 | isa = XCBuildConfiguration;
566 | buildSettings = {
567 | DEVELOPMENT_TEAM = HMFTZ9QC7T;
568 | INFOPLIST_FILE = HomeKitUITests/Info.plist;
569 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
570 | PRODUCT_BUNDLE_IDENTIFIER = "-23456.HomeKitUITests";
571 | PRODUCT_NAME = "$(TARGET_NAME)";
572 | TEST_TARGET_NAME = HomeKit;
573 | };
574 | name = Release;
575 | };
576 | /* End XCBuildConfiguration section */
577 |
578 | /* Begin XCConfigurationList section */
579 | A935074B1DC1F54900CD6D3F /* Build configuration list for PBXProject "HomeKit" */ = {
580 | isa = XCConfigurationList;
581 | buildConfigurations = (
582 | A935077B1DC1F54900CD6D3F /* Debug */,
583 | A935077C1DC1F54900CD6D3F /* Release */,
584 | );
585 | defaultConfigurationIsVisible = 0;
586 | defaultConfigurationName = Release;
587 | };
588 | A935077D1DC1F54900CD6D3F /* Build configuration list for PBXNativeTarget "HomeKit" */ = {
589 | isa = XCConfigurationList;
590 | buildConfigurations = (
591 | A935077E1DC1F54900CD6D3F /* Debug */,
592 | A935077F1DC1F54900CD6D3F /* Release */,
593 | );
594 | defaultConfigurationIsVisible = 0;
595 | defaultConfigurationName = Release;
596 | };
597 | A93507801DC1F54900CD6D3F /* Build configuration list for PBXNativeTarget "HomeKitTests" */ = {
598 | isa = XCConfigurationList;
599 | buildConfigurations = (
600 | A93507811DC1F54900CD6D3F /* Debug */,
601 | A93507821DC1F54900CD6D3F /* Release */,
602 | );
603 | defaultConfigurationIsVisible = 0;
604 | defaultConfigurationName = Release;
605 | };
606 | A93507831DC1F54900CD6D3F /* Build configuration list for PBXNativeTarget "HomeKitUITests" */ = {
607 | isa = XCConfigurationList;
608 | buildConfigurations = (
609 | A93507841DC1F54900CD6D3F /* Debug */,
610 | A93507851DC1F54900CD6D3F /* Release */,
611 | );
612 | defaultConfigurationIsVisible = 0;
613 | defaultConfigurationName = Release;
614 | };
615 | /* End XCConfigurationList section */
616 | };
617 | rootObject = A93507481DC1F54900CD6D3F /* Project object */;
618 | }
619 |
--------------------------------------------------------------------------------