├── .gitignore ├── Attacker copy-Info.plist ├── Engineer copy-Info.plist ├── Engineer.xcodeproj ├── project.pbxproj └── xcshareddata │ └── xcschemes │ ├── Engineer copy.xcscheme │ └── Engineer.xcscheme ├── Engineer ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── AppIcon29x29.png │ │ ├── AppIcon29x29@2x.png │ │ ├── AppIcon40x40@2x.png │ │ ├── AppIcon57x57.png │ │ ├── AppIcon57x57@2x.png │ │ ├── AppIcon60x60@2x.png │ │ ├── AppIcon60x60@3x.png │ │ └── Contents.json │ ├── Contents.json │ └── bottomImages │ │ ├── Contents.json │ │ ├── ic_sport_gps_run_normal.imageset │ │ ├── Contents.json │ │ └── ic_sport_gps_run_normal~iphone.png │ │ ├── ic_sport_gps_run_normal~iphone.imageset │ │ ├── Contents.json │ │ └── ic_sport_gps_run_normal~iphone@2x.png │ │ ├── main_tab_background.imageset │ │ ├── Contents.json │ │ └── main_tab_background~iphone.png │ │ ├── main_tab_background~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_background~iphone@2x.png │ │ ├── main_tab_title_discover_0.imageset │ │ ├── Contents.json │ │ └── main_tab_title_discover_0~iphone.png │ │ ├── main_tab_title_discover_0~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_title_discover_0~iphone@2x.png │ │ ├── main_tab_title_discover_1.imageset │ │ ├── Contents.json │ │ └── main_tab_title_discover_1~iphone.png │ │ ├── main_tab_title_discover_1~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_title_discover_1~iphone@2x.png │ │ ├── main_tab_title_message_0.imageset │ │ ├── Contents.json │ │ └── main_tab_title_message_0~iphone.png │ │ ├── main_tab_title_message_0~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_title_message_0~iphone@2x.png │ │ ├── main_tab_title_message_1.imageset │ │ ├── Contents.json │ │ └── main_tab_title_message_1~iphone.png │ │ ├── main_tab_title_message_1~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_title_message_1~iphone@2x.png │ │ ├── main_tab_title_personal_0.imageset │ │ ├── Contents.json │ │ └── main_tab_title_personal_0~iphone.png │ │ ├── main_tab_title_personal_0~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_title_personal_0~iphone@2x.png │ │ ├── main_tab_title_personal_1.imageset │ │ ├── Contents.json │ │ └── main_tab_title_personal_1~iphone.png │ │ ├── main_tab_title_personal_1~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_title_personal_1~iphone@2x.png │ │ ├── main_tab_title_social_0.imageset │ │ ├── Contents.json │ │ └── main_tab_title_social_0~iphone.png │ │ ├── main_tab_title_social_0~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_title_social_0~iphone@2x.png │ │ ├── main_tab_title_social_1.imageset │ │ ├── Contents.json │ │ └── main_tab_title_social_1~iphone.png │ │ ├── main_tab_title_social_1~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_title_social_1~iphone@2x.png │ │ ├── main_tab_title_sport_0.imageset │ │ ├── Contents.json │ │ └── main_tab_title_sport_0~iphone.png │ │ ├── main_tab_title_sport_0~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_title_sport_0~iphone@2x.png │ │ ├── main_tab_title_sport_1.imageset │ │ ├── Contents.json │ │ └── main_tab_title_sport_1~iphone.png │ │ └── main_tab_title_sport_1~iphone.imageset │ │ ├── Contents.json │ │ └── main_tab_title_sport_1~iphone@2x.png ├── Base.lproj │ └── LaunchScreen.storyboard ├── Default@2x-568h.png ├── Default@2x-R2.png ├── Default@2x-R4.png ├── Documents │ └── 组件化结构.xmind ├── Engineer.pch ├── Expand │ ├── Category │ │ ├── UIView+Frame.h │ │ └── UIView+Frame.m │ ├── Macros │ │ └── Header.h │ └── Tool │ │ ├── FZUtility.h │ │ └── FZUtility.m ├── FZMediator │ └── Module_Mine │ │ ├── CTMediator+Mine.h │ │ └── CTMediator+Mine.m ├── Found │ ├── Controllers │ │ ├── FZFoundViewController.h │ │ └── FZFoundViewController.m │ ├── Coordinators │ │ ├── FZFoundCoordinatorProtocol.h │ │ ├── FZFoundVCCoordinator.h │ │ └── FZFoundVCCoordinator.m │ ├── Models │ │ ├── FZUserModel.h │ │ └── FZUserModel.m │ ├── Requests │ │ ├── FZFoundRequest.h │ │ └── FZFoundRequest.m │ ├── Servers │ │ ├── FZFoundServer.h │ │ └── FZFoundServer.m │ ├── Storage │ │ ├── FZFoundStorage.h │ │ └── FZFoundStorage.m │ ├── Types │ │ └── FZFoundEnumType.h │ ├── ViewModels │ │ ├── FZFoundViewModel.h │ │ └── FZFoundViewModel.m │ └── Views │ │ ├── FZGradientView.h │ │ └── FZGradientView.m ├── Info.plist ├── Message │ └── Controllers │ │ ├── FZMessageViewController.h │ │ └── FZMessageViewController.m ├── Mine │ ├── Actions │ │ ├── Target_Mine.h │ │ └── Target_Mine.m │ ├── ComponentProtocolImplete │ │ ├── FZModuleMineProtocolImplete.h │ │ └── FZModuleMineProtocolImplete.m │ ├── Controllers │ │ ├── FZMineViewController.h │ │ ├── FZMineViewController.m │ │ ├── FZMineViewController.xib │ │ ├── FZSportsPlanVC.h │ │ ├── FZSportsPlanVC.m │ │ ├── FZSportsResultVC.h │ │ └── FZSportsResultVC.m │ └── Coordinators │ │ ├── FZMineCoordinator.h │ │ ├── FZMineCoordinator.m │ │ └── FZMineCoordinatorProtocol.h ├── Other │ ├── BaseNavigationtroller.h │ ├── BaseNavigationtroller.m │ ├── BaseViewController.h │ ├── BaseViewController.m │ ├── FZCoordinatorProtocol.h │ ├── MainTabBarViewController.h │ └── MainTabBarViewController.m ├── ProtocolMediator │ ├── FZComponentProtocol.h │ ├── FZProtocolMediator.h │ └── FZProtocolMediator.m ├── Resource │ ├── TextFont │ │ └── 汉仪菱心体简.ttf │ ├── home.png │ └── personal.png ├── Sports │ └── Controllers │ │ ├── FZSportsViewController.h │ │ └── FZSportsViewController.m ├── SportsCircle │ └── Controllers │ │ ├── FZSportsCircleViewController.h │ │ ├── FZSportsCircleViewController.m │ │ └── FZSportsCircleViewController.xib └── main.m ├── ExportOptions.plist ├── LICENSE ├── Podfile ├── README.md ├── RoleModule ├── RoleModule.xcodeproj │ └── project.pbxproj ├── RoleModule │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ └── main.m └── RoleModuleTests │ ├── Info.plist │ └── RoleModuleTests.m ├── compile_commands.json └── xcodebuild.log /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | *.xcworkspace/ 20 | 21 | ## Other 22 | *.moved-aside 23 | *.xcuserstate 24 | *.lock 25 | *.xcworkspacedata 26 | 27 | ## Obj-C/Swift specific 28 | *.hmap 29 | *.ipa 30 | *.dSYM.zip 31 | *.dSYM 32 | 33 | # CocoaPods 34 | # 35 | # We recommend against adding the Pods directory to your .gitignore. However 36 | # you should judge for yourself, the pros and cons are mentioned at: 37 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 38 | # 39 | Pods/ 40 | 41 | # Carthage 42 | # 43 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 44 | # Carthage/Checkouts 45 | 46 | Carthage/Build 47 | 48 | # fastlane 49 | # 50 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 51 | # screenshots whenever they are needed. 52 | # For more information about the recommended setup visit: 53 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 54 | 55 | fastlane/report.xml 56 | fastlane/screenshots 57 | 58 | # Code Injection 59 | # 60 | # After new code Injection tools there's a generated folder /iOSInjectionProject 61 | # https://github.com/johnno1962/injectionforxcode 62 | 63 | iOSInjectionProject/ -------------------------------------------------------------------------------- /Attacker copy-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.Victim 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | 被攻击者 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleURLTypes 22 | 23 | 24 | CFBundleTypeRole 25 | Editor 26 | CFBundleURLSchemes 27 | 28 | victim 29 | 30 | 31 | 32 | CFBundleVersion 33 | 1 34 | LSApplicationQueriesSchemes 35 | 36 | weixin 37 | 38 | LSRequiresIPhoneOS 39 | 40 | UIAppFonts 41 | 42 | 汉仪菱心体简.ttf 43 | 44 | UILaunchStoryboardName 45 | LaunchScreen 46 | UIRequiredDeviceCapabilities 47 | 48 | armv7 49 | 50 | UISupportedInterfaceOrientations 51 | 52 | UIInterfaceOrientationPortrait 53 | UIInterfaceOrientationLandscapeLeft 54 | UIInterfaceOrientationLandscapeRight 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /Engineer copy-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.Attacker 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | 攻击者 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleURLTypes 22 | 23 | 24 | CFBundleTypeRole 25 | Editor 26 | CFBundleURLSchemes 27 | 28 | attacker 29 | 30 | 31 | 32 | CFBundleVersion 33 | 1 34 | LSApplicationQueriesSchemes 35 | 36 | engineer 37 | weixin 38 | 39 | LSRequiresIPhoneOS 40 | 41 | UIAppFonts 42 | 43 | 汉仪菱心体简.ttf 44 | 45 | UILaunchStoryboardName 46 | LaunchScreen 47 | UIRequiredDeviceCapabilities 48 | 49 | armv7 50 | 51 | UISupportedInterfaceOrientations 52 | 53 | UIInterfaceOrientationPortrait 54 | UIInterfaceOrientationLandscapeLeft 55 | UIInterfaceOrientationLandscapeRight 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /Engineer.xcodeproj/xcshareddata/xcschemes/Engineer copy.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /Engineer.xcodeproj/xcshareddata/xcschemes/Engineer.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /Engineer/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/6. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Engineer/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/6. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "MainTabBarViewController.h" 11 | #import 12 | 13 | @interface AppDelegate () 14 | 15 | @end 16 | 17 | @implementation AppDelegate 18 | 19 | 20 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 21 | 22 | UIWindow *window =[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; 23 | self.window=window; 24 | window.backgroundColor=[UIColor whiteColor]; 25 | 26 | MainTabBarViewController *viewController=[[MainTabBarViewController alloc]init]; 27 | [window setRootViewController:viewController]; 28 | 29 | [window makeKeyAndVisible]; 30 | 31 | return YES; 32 | } 33 | 34 | - (void)applicationWillResignActive:(UIApplication *)application { 35 | // 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. 36 | // 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. 37 | } 38 | 39 | - (void)applicationDidEnterBackground:(UIApplication *)application { 40 | // 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. 41 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 42 | } 43 | 44 | - (void)applicationWillEnterForeground:(UIApplication *)application { 45 | // 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. 46 | } 47 | 48 | - (void)applicationDidBecomeActive:(UIApplication *)application { 49 | // 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. 50 | } 51 | 52 | - (void)applicationWillTerminate:(UIApplication *)application { 53 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 54 | } 55 | 56 | - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { 57 | return [[[CTMediator sharedInstance] performActionWithUrl:url completion:nil] boolValue]; 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon29x29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon29x29.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon57x57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon57x57.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon57x57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon57x57@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon60x60@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/AppIcon.appiconset/AppIcon60x60@3x.png -------------------------------------------------------------------------------- /Engineer/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" : "1x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "29x29", 26 | "scale" : "3x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "40x40", 36 | "scale" : "3x" 37 | }, 38 | { 39 | "size" : "57x57", 40 | "idiom" : "iphone", 41 | "filename" : "AppIcon57x57.png", 42 | "scale" : "1x" 43 | }, 44 | { 45 | "size" : "57x57", 46 | "idiom" : "iphone", 47 | "filename" : "AppIcon57x57@2x.png", 48 | "scale" : "2x" 49 | }, 50 | { 51 | "size" : "60x60", 52 | "idiom" : "iphone", 53 | "filename" : "AppIcon60x60@2x.png", 54 | "scale" : "2x" 55 | }, 56 | { 57 | "size" : "60x60", 58 | "idiom" : "iphone", 59 | "filename" : "AppIcon60x60@3x.png", 60 | "scale" : "3x" 61 | }, 62 | { 63 | "size" : "29x29", 64 | "idiom" : "ipad", 65 | "filename" : "AppIcon29x29.png", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "29x29", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "40x40", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "size" : "40x40", 80 | "idiom" : "ipad", 81 | "filename" : "AppIcon40x40@2x.png", 82 | "scale" : "2x" 83 | }, 84 | { 85 | "idiom" : "ios-marketing", 86 | "size" : "1024x1024", 87 | "scale" : "1x" 88 | }, 89 | { 90 | "size" : "24x24", 91 | "idiom" : "watch", 92 | "scale" : "2x", 93 | "role" : "notificationCenter", 94 | "subtype" : "38mm" 95 | }, 96 | { 97 | "size" : "27.5x27.5", 98 | "idiom" : "watch", 99 | "scale" : "2x", 100 | "role" : "notificationCenter", 101 | "subtype" : "42mm" 102 | }, 103 | { 104 | "size" : "29x29", 105 | "idiom" : "watch", 106 | "filename" : "AppIcon29x29@2x.png", 107 | "role" : "companionSettings", 108 | "scale" : "2x" 109 | }, 110 | { 111 | "size" : "29x29", 112 | "idiom" : "watch", 113 | "role" : "companionSettings", 114 | "scale" : "3x" 115 | }, 116 | { 117 | "size" : "40x40", 118 | "idiom" : "watch", 119 | "scale" : "2x", 120 | "role" : "appLauncher", 121 | "subtype" : "38mm" 122 | }, 123 | { 124 | "size" : "44x44", 125 | "idiom" : "watch", 126 | "scale" : "2x", 127 | "role" : "appLauncher", 128 | "subtype" : "40mm" 129 | }, 130 | { 131 | "size" : "50x50", 132 | "idiom" : "watch", 133 | "scale" : "2x", 134 | "role" : "appLauncher", 135 | "subtype" : "44mm" 136 | }, 137 | { 138 | "size" : "86x86", 139 | "idiom" : "watch", 140 | "scale" : "2x", 141 | "role" : "quickLook", 142 | "subtype" : "38mm" 143 | }, 144 | { 145 | "size" : "98x98", 146 | "idiom" : "watch", 147 | "scale" : "2x", 148 | "role" : "quickLook", 149 | "subtype" : "42mm" 150 | }, 151 | { 152 | "size" : "108x108", 153 | "idiom" : "watch", 154 | "scale" : "2x", 155 | "role" : "quickLook", 156 | "subtype" : "44mm" 157 | }, 158 | { 159 | "idiom" : "watch-marketing", 160 | "size" : "1024x1024", 161 | "scale" : "1x" 162 | } 163 | ], 164 | "info" : { 165 | "version" : 1, 166 | "author" : "xcode" 167 | } 168 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/ic_sport_gps_run_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "ic_sport_gps_run_normal~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/ic_sport_gps_run_normal.imageset/ic_sport_gps_run_normal~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/ic_sport_gps_run_normal.imageset/ic_sport_gps_run_normal~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/ic_sport_gps_run_normal~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "ic_sport_gps_run_normal~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/ic_sport_gps_run_normal~iphone.imageset/ic_sport_gps_run_normal~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/ic_sport_gps_run_normal~iphone.imageset/ic_sport_gps_run_normal~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_background~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_background.imageset/main_tab_background~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_background.imageset/main_tab_background~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_background~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_background~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_background~iphone.imageset/main_tab_background~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_background~iphone.imageset/main_tab_background~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_0.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_title_discover_0~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_0.imageset/main_tab_title_discover_0~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_0.imageset/main_tab_title_discover_0~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_0~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_title_discover_0~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_0~iphone.imageset/main_tab_title_discover_0~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_0~iphone.imageset/main_tab_title_discover_0~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_title_discover_1~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_1.imageset/main_tab_title_discover_1~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_1.imageset/main_tab_title_discover_1~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_1~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_title_discover_1~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_1~iphone.imageset/main_tab_title_discover_1~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_discover_1~iphone.imageset/main_tab_title_discover_1~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_message_0.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_title_message_0~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_message_0.imageset/main_tab_title_message_0~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_message_0.imageset/main_tab_title_message_0~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_message_0~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_title_message_0~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_message_0~iphone.imageset/main_tab_title_message_0~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_message_0~iphone.imageset/main_tab_title_message_0~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_message_1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_title_message_1~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_message_1.imageset/main_tab_title_message_1~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_message_1.imageset/main_tab_title_message_1~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_message_1~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_title_message_1~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_message_1~iphone.imageset/main_tab_title_message_1~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_message_1~iphone.imageset/main_tab_title_message_1~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_0.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_title_personal_0~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_0.imageset/main_tab_title_personal_0~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_0.imageset/main_tab_title_personal_0~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_0~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_title_personal_0~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_0~iphone.imageset/main_tab_title_personal_0~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_0~iphone.imageset/main_tab_title_personal_0~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_title_personal_1~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_1.imageset/main_tab_title_personal_1~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_1.imageset/main_tab_title_personal_1~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_1~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_title_personal_1~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_1~iphone.imageset/main_tab_title_personal_1~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_personal_1~iphone.imageset/main_tab_title_personal_1~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_social_0.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_title_social_0~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_social_0.imageset/main_tab_title_social_0~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_social_0.imageset/main_tab_title_social_0~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_social_0~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_title_social_0~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_social_0~iphone.imageset/main_tab_title_social_0~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_social_0~iphone.imageset/main_tab_title_social_0~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_social_1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_title_social_1~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_social_1.imageset/main_tab_title_social_1~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_social_1.imageset/main_tab_title_social_1~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_social_1~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_title_social_1~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_social_1~iphone.imageset/main_tab_title_social_1~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_social_1~iphone.imageset/main_tab_title_social_1~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_0.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_title_sport_0~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_0.imageset/main_tab_title_sport_0~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_0.imageset/main_tab_title_sport_0~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_0~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_title_sport_0~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_0~iphone.imageset/main_tab_title_sport_0~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_0~iphone.imageset/main_tab_title_sport_0~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "filename" : "main_tab_title_sport_1~iphone.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_1.imageset/main_tab_title_sport_1~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_1.imageset/main_tab_title_sport_1~iphone.png -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_1~iphone.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "main_tab_title_sport_1~iphone@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 | } -------------------------------------------------------------------------------- /Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_1~iphone.imageset/main_tab_title_sport_1~iphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Assets.xcassets/bottomImages/main_tab_title_sport_1~iphone.imageset/main_tab_title_sport_1~iphone@2x.png -------------------------------------------------------------------------------- /Engineer/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 | -------------------------------------------------------------------------------- /Engineer/Default@2x-568h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Default@2x-568h.png -------------------------------------------------------------------------------- /Engineer/Default@2x-R2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Default@2x-R2.png -------------------------------------------------------------------------------- /Engineer/Default@2x-R4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Default@2x-R4.png -------------------------------------------------------------------------------- /Engineer/Documents/组件化结构.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Documents/组件化结构.xmind -------------------------------------------------------------------------------- /Engineer/Engineer.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Map.pch 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #ifndef Map_pch 10 | #define Map_pch 11 | 12 | // Include any system framework and library headers here that should be included in all compilation units. 13 | // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file. 14 | 15 | #import "Header.h" 16 | #import "FZUtility.h" 17 | 18 | #endif /* Map_pch */ 19 | -------------------------------------------------------------------------------- /Engineer/Expand/Category/UIView+Frame.h: -------------------------------------------------------------------------------- 1 | // UIView+Frame.h 2 | // 3 | // Copyright (c) 2009 Alex Nazaroff, AJR (http://ajiiro.com/) 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 13 | // all 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 21 | // THE SOFTWARE. 22 | 23 | #import 24 | #import 25 | 26 | @interface UIView (FrameExt) 27 | -(void) setOrigin:(CGPoint)loc; 28 | -(void) setX:(CGFloat)x; 29 | -(void) setY:(CGFloat)y; 30 | -(void) setSize:(CGSize)sz; 31 | -(void) setWidth:(CGFloat)w; 32 | -(void) setHeight:(CGFloat)h; 33 | -(void) setCenterX:(CGFloat) x; 34 | -(void) setCenterY:(CGFloat) y; 35 | -(CGPoint) origin; 36 | -(CGFloat) x; 37 | -(CGFloat) y; 38 | -(CGFloat) left; 39 | -(CGFloat) top; 40 | -(CGFloat) bottom; 41 | -(CGFloat) right; 42 | -(CGSize) size; 43 | -(CGFloat) height; 44 | -(CGFloat) width; 45 | -(CGFloat) centerX; 46 | -(CGFloat) centerY; 47 | @end 48 | -------------------------------------------------------------------------------- /Engineer/Expand/Category/UIView+Frame.m: -------------------------------------------------------------------------------- 1 | // UIView+Frame.m 2 | // 3 | // Copyright (c) 2009 Alex Nazaroff, AJR (http://ajiiro.com/) 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 13 | // all 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 21 | // THE SOFTWARE. 22 | 23 | #import "UIView+Frame.h" 24 | 25 | @implementation UIView (Frames) 26 | 27 | -(void) setOrigin:(CGPoint)loc 28 | { 29 | CGRect rc = self.frame; 30 | rc.origin = loc; 31 | self.frame = rc; 32 | } 33 | 34 | -(void) setX:(CGFloat)x 35 | { 36 | CGRect rc = self.frame; 37 | rc.origin.x = x; 38 | self.frame = rc; 39 | } 40 | 41 | -(void) setY:(CGFloat)y 42 | { 43 | CGRect rc = self.frame; 44 | rc.origin.y = y; 45 | self.frame = rc; 46 | } 47 | 48 | -(void) setSize:(CGSize)sz 49 | { 50 | CGRect rc = self.frame; 51 | rc.size = sz; 52 | self.frame = rc; 53 | } 54 | 55 | -(void) setWidth:(CGFloat)w 56 | { 57 | CGRect rc = self.frame; 58 | rc.size.width = w; 59 | self.frame = rc; 60 | } 61 | 62 | -(void) setHeight:(CGFloat)h 63 | { 64 | CGRect rc = self.frame; 65 | rc.size.height = h; 66 | self.frame = rc; 67 | } 68 | 69 | -(void) setCenterY:(CGFloat) y 70 | { 71 | CGPoint pt = self.center; 72 | pt.y = y; 73 | self.center = pt; 74 | } 75 | 76 | -(void) setCenterX:(CGFloat) x 77 | { 78 | CGPoint pt = self.center; 79 | pt.x = x; 80 | self.center = pt; 81 | } 82 | 83 | -(CGPoint) origin 84 | { 85 | return self.frame.origin; 86 | } 87 | 88 | -(CGFloat) x 89 | { 90 | return self.frame.origin.x; 91 | } 92 | 93 | -(CGFloat) y 94 | { 95 | return self.frame.origin.y; 96 | } 97 | 98 | -(CGFloat) top 99 | { 100 | return self.frame.origin.y; 101 | } 102 | 103 | -(CGFloat) left 104 | { 105 | return self.frame.origin.x; 106 | } 107 | 108 | -(CGFloat) right 109 | { 110 | return self.frame.origin.x + self.frame.size.width; 111 | } 112 | 113 | -(CGFloat) bottom 114 | { 115 | return self.frame.origin.y + self.frame.size.height; 116 | } 117 | 118 | -(CGSize) size 119 | { 120 | return self.frame.size; 121 | } 122 | 123 | -(CGFloat) height 124 | { 125 | return self.frame.size.height; 126 | } 127 | 128 | -(CGFloat) width 129 | { 130 | return self.frame.size.width; 131 | } 132 | 133 | -(CGFloat) centerX 134 | { 135 | return self.center.x; 136 | } 137 | 138 | -(CGFloat) centerY 139 | { 140 | return self.center.y; 141 | } 142 | 143 | @end 144 | -------------------------------------------------------------------------------- /Engineer/Expand/Macros/Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Header.h 3 | // MyTestWorkProduct 4 | // 5 | // Created by zhoufei on 15/11/3. 6 | // Copyright © 2015年 zhoufei. All rights reserved. 7 | // 8 | 9 | #ifndef Header_h 10 | #define Header_h 11 | 12 | #ifdef DEBUG //debug log 13 | # define MyLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); 14 | #else 15 | 16 | # define MyLog(...); 17 | #endif 18 | 19 | #define isLargeIOS7 [[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0 20 | #define ScreenHight ([[[UIDevice currentDevice] systemVersion] floatValue]>=7.0?[UIScreen mainScreen].bounds.size.height:[UIScreen mainScreen].bounds.size.height-70) 21 | #define ScreenWidth [UIScreen mainScreen].bounds.size.width 22 | #define tableViewOrigin ([[[UIDevice currentDevice] systemVersion] floatValue]>=7.0?64:0) 23 | 24 | 25 | #define kRootDocumentsPath [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/"] 26 | 27 | #define kRootLibraryPath [NSHomeDirectory() stringByAppendingPathComponent:@"Library/"] 28 | 29 | #define kRootCachePath [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches/"] 30 | 31 | //主题颜色 #0075c2 32 | #define COLOR_THEME RGBACOLOR(105, 189, 76, 1) 33 | 34 | //背景颜色 35 | #define COLOR_BACKGROUND [UIColor colorWithWhite:0.941 alpha:1.000] 36 | 37 | #define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)] 38 | 39 | 40 | #endif /* Header_h */ 41 | -------------------------------------------------------------------------------- /Engineer/Expand/Tool/FZUtility.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZUtility.h 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/16. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FZUtility : NSObject 12 | +(UIFont*)customFont; 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Expand/Tool/FZUtility.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZUtility.m 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/16. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | 10 | #import "FZUtility.h" 11 | 12 | @implementation FZUtility 13 | +(UIFont*)customFont{ 14 | // 字体路径 15 | NSString *fontPath = [[NSBundle mainBundle] pathForResource:@"汉仪菱心体简" ofType:@"ttf"]; 16 | NSURL *url = [NSURL fileURLWithPath:fontPath]; 17 | CGDataProviderRef fontDataProvider = CGDataProviderCreateWithURL((__bridge CFURLRef)url); 18 | if (fontDataProvider == NULL) 19 | return nil; 20 | CGFontRef newFont = CGFontCreateWithDataProvider(fontDataProvider); 21 | CGDataProviderRelease(fontDataProvider); 22 | if (newFont == NULL) return nil; 23 | NSString *fontName = (__bridge NSString *)CGFontCopyFullName(newFont); 24 | UIFont *font = [UIFont fontWithName:fontName size:17.0f]; 25 | CGFontRelease(newFont); 26 | return font; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Engineer/FZMediator/Module_Mine/CTMediator+Mine.h: -------------------------------------------------------------------------------- 1 | // 2 | // CTMediator+Mine.h 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | // 中介者之-<我的>模块 访问入口 9 | 10 | #import "CTMediator.h" 11 | #import 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface CTMediator (Mine) 16 | - (UIViewController *)Mediator_fetchSportsResultVC:(NSDictionary *)param; 17 | - (UIViewController *)Mediator_fetchSportsPlanVC:(NSDictionary *)param; 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /Engineer/FZMediator/Module_Mine/CTMediator+Mine.m: -------------------------------------------------------------------------------- 1 | // 2 | // CTMediator+Mine.m 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "CTMediator+Mine.h" 10 | 11 | NSString * const FZMediatorTargetMine = @"Mine"; 12 | 13 | NSString * const FZMediatorActionNativFetchSportsResultVC = @"nativeFetchSportsResultVC"; 14 | NSString * const FZMediatorActionNativFetchSportsPlanVC = @"nativeFetchSportsPlanVC"; 15 | 16 | NSString * const FZMediatorActionRemoteFetchSportsResultVC = @"remoteFetchSportsResultVC"; 17 | 18 | 19 | @implementation CTMediator (Mine) 20 | - (UIViewController *)Mediator_fetchSportsResultVC:(NSDictionary *)param { 21 | 22 | UIViewController *vc = [self performTarget:FZMediatorTargetMine action:FZMediatorActionNativFetchSportsResultVC params:param shouldCacheTarget:YES]; 23 | if (vc == nil) { 24 | return [UIViewController new]; 25 | } else { 26 | return vc; 27 | } 28 | } 29 | - (UIViewController *)Mediator_fetchSportsPlanVC:(NSDictionary *)param { 30 | UIViewController *vc = [self performTarget:FZMediatorTargetMine action:FZMediatorActionNativFetchSportsPlanVC params:param shouldCacheTarget:YES]; 31 | if (vc == nil) { 32 | return [UIViewController new]; 33 | } else { 34 | return vc; 35 | } 36 | } 37 | @end 38 | -------------------------------------------------------------------------------- /Engineer/Found/Controllers/FZFoundViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundViewController.h 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "BaseViewController.h" 10 | 11 | @interface FZFoundViewController : BaseViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Found/Controllers/FZFoundViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundViewController.m 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZFoundViewController.h" 10 | 11 | @implementation FZFoundViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Found/Coordinators/FZFoundCoordinatorProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundCoordinatorProtocol.h 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "FZCoordinatorProtocol.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @protocol FZFoundCoordinatorProtocol 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /Engineer/Found/Coordinators/FZFoundVCCoordinator.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundVCCoordinator.h 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "FZFoundCoordinatorProtocol.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface FZFoundVCCoordinator : NSObject 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /Engineer/Found/Coordinators/FZFoundVCCoordinator.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundVCCoordinator.m 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZFoundVCCoordinator.h" 10 | 11 | @implementation FZFoundVCCoordinator 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Found/Models/FZUserModel.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZUserModel.h 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface FZUserModel : NSObject 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Engineer/Found/Models/FZUserModel.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZUserModel.m 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZUserModel.h" 10 | 11 | @implementation FZUserModel 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Found/Requests/FZFoundRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundRequest.h 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/5. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | // 请求对象 9 | 10 | #import 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface FZFoundRequest : NSObject 15 | @property(nonatomic, strong) NSString *parameter; 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /Engineer/Found/Requests/FZFoundRequest.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundRequest.m 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/5. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZFoundRequest.h" 10 | 11 | @implementation FZFoundRequest 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Found/Servers/FZFoundServer.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundServer.h 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/5. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface FZFoundServer : NSObject 14 | //Found模块提供给外界的服务 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Engineer/Found/Servers/FZFoundServer.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundServer.m 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/5. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZFoundServer.h" 10 | 11 | @implementation FZFoundServer 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Found/Storage/FZFoundStorage.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundStorage.h 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface FZFoundStorage : NSObject 14 | //从数据库读取信息 15 | - (void)readData:(NSString *)path; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /Engineer/Found/Storage/FZFoundStorage.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundStorage.m 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZFoundStorage.h" 10 | 11 | @implementation FZFoundStorage 12 | 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Engineer/Found/Types/FZFoundEnumType.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundEnumType.h 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #ifndef FZFoundEnumType_h 10 | #define FZFoundEnumType_h 11 | 12 | 13 | #endif /* FZFoundEnumType_h */ 14 | -------------------------------------------------------------------------------- /Engineer/Found/ViewModels/FZFoundViewModel.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundViewModel.h 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface FZFoundViewModel : NSObject 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Engineer/Found/ViewModels/FZFoundViewModel.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZFoundViewModel.m 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZFoundViewModel.h" 10 | 11 | @implementation FZFoundViewModel 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Found/Views/FZGradientView.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZGradientView.h 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface FZGradientView : UIView 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Engineer/Found/Views/FZGradientView.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZGradientView.m 3 | // Map 4 | // 5 | // Created by 周飞 on 2018/11/3. 6 | // Copyright © 2018年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZGradientView.h" 10 | 11 | @implementation FZGradientView 12 | 13 | /* 14 | // Only override drawRect: if you perform custom drawing. 15 | // An empty implementation adversely affects performance during animation. 16 | - (void)drawRect:(CGRect)rect { 17 | // Drawing code 18 | } 19 | */ 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Engineer/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleURLTypes 22 | 23 | 24 | CFBundleTypeRole 25 | Editor 26 | CFBundleURLSchemes 27 | 28 | engineer 29 | 30 | 31 | 32 | CFBundleVersion 33 | 1 34 | LSApplicationQueriesSchemes 35 | 36 | weixin 37 | 38 | LSRequiresIPhoneOS 39 | 40 | UIAppFonts 41 | 42 | 汉仪菱心体简.ttf 43 | 44 | UILaunchStoryboardName 45 | LaunchScreen 46 | UIRequiredDeviceCapabilities 47 | 48 | armv7 49 | 50 | UISupportedInterfaceOrientations 51 | 52 | UIInterfaceOrientationPortrait 53 | UIInterfaceOrientationLandscapeLeft 54 | UIInterfaceOrientationLandscapeRight 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /Engineer/Message/Controllers/FZMessageViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZMessageViewController.h 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "BaseViewController.h" 10 | 11 | @interface FZMessageViewController : BaseViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Message/Controllers/FZMessageViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZMessageViewController.m 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZMessageViewController.h" 10 | 11 | @implementation FZMessageViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Mine/Actions/Target_Mine.h: -------------------------------------------------------------------------------- 1 | // 2 | // Target_Mine.h 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | // 模块对外服务类 9 | 10 | #import 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface Target_Mine : NSObject 15 | - (id)Action_nativeFetchSportsResultVC:(NSDictionary *)param; 16 | - (id)Action_nativeFetchSportsPlanVC:(NSDictionary *)param; 17 | 18 | - (void)Action_remoteAlertSportsResultVC:(NSDictionary *)param; 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Engineer/Mine/Actions/Target_Mine.m: -------------------------------------------------------------------------------- 1 | // 2 | // Target_Mine.m 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "Target_Mine.h" 10 | #import "FZMineCoordinator.h" 11 | #import "FZSportsPlanVC.h" 12 | #import "FZSportsResultVC.h" 13 | #import 14 | 15 | @implementation Target_Mine 16 | - (id)Action_nativeFetchSportsResultVC:(NSDictionary *)param { 17 | UIViewController *vc = [[FZMineCoordinator sharedFZMineCoordinator] targetVCWithClassName:NSStringFromClass([FZSportsResultVC class])]; 18 | if ([vc isKindOfClass:[FZSportsResultVC class]]) { 19 | [(FZSportsResultVC *)vc configContent:param[@"title"]]; 20 | } 21 | return vc; 22 | } 23 | - (id)Action_nativeFetchSportsPlanVC:(NSDictionary *)param { 24 | UIViewController *vc = [[FZMineCoordinator sharedFZMineCoordinator] targetVCWithClassName:NSStringFromClass([FZSportsPlanVC class])]; 25 | if ([vc isKindOfClass:[FZSportsPlanVC class]]) { 26 | [(FZSportsPlanVC *)vc configContent:param[@"title"]]; 27 | } 28 | return vc; 29 | } 30 | 31 | - (void)Action_remoteAlertSportsResultVC:(NSDictionary *)param { 32 | UIViewController *vc = [[FZMineCoordinator sharedFZMineCoordinator] targetVCWithClassName:NSStringFromClass([FZSportsResultVC class])]; 33 | if ([vc isKindOfClass:[FZSportsResultVC class]]) { 34 | [(FZSportsPlanVC *)vc configContent:param[@"title"]]; 35 | } 36 | 37 | id appDelegate = [UIApplication sharedApplication].delegate; 38 | UITabBarController *rootVC = [[appDelegate window] rootViewController]; 39 | [rootVC.childViewControllers[0] pushViewController:vc animated:YES]; 40 | } 41 | @end 42 | -------------------------------------------------------------------------------- /Engineer/Mine/ComponentProtocolImplete/FZModuleMineProtocolImplete.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZModuleMineProtocolImplete.h 3 | // Engineer 4 | // 5 | // Created by 周飞 on 2019/1/21. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "FZComponentProtocol.h" 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface FZModuleMineProtocolImplete : NSObject 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Engineer/Mine/ComponentProtocolImplete/FZModuleMineProtocolImplete.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZModuleMineProtocolImplete.m 3 | // Engineer 4 | // 5 | // Created by 周飞 on 2019/1/21. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZModuleMineProtocolImplete.h" 10 | #import "FZProtocolMediator.h" 11 | #import "FZSportsPlanVC.h" 12 | #import "FZSportsResultVC.h" 13 | 14 | @implementation FZModuleMineProtocolImplete 15 | + (void)load { 16 | [[FZProtocolMediator sharedFZProtocolMediator] registerProtocol:NSProtocolFromString(@"FZModuleMineProtocol") forClass:[FZModuleMineProtocolImplete class]]; 17 | } 18 | 19 | + (UIViewController *)fetchSportsPlanVC:title { 20 | FZSportsPlanVC *plan = [FZSportsPlanVC new]; 21 | [plan configContent:title]; 22 | return plan; 23 | } 24 | 25 | + (UIViewController *)fetchSportsResultVC:title { 26 | FZSportsResultVC *result = [FZSportsResultVC new]; 27 | [result configContent:title]; 28 | return result; 29 | } 30 | @end 31 | -------------------------------------------------------------------------------- /Engineer/Mine/Controllers/FZMineViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZMineViewController.h 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "BaseViewController.h" 10 | 11 | @interface FZMineViewController : BaseViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Mine/Controllers/FZMineViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZMineViewController.m 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZMineViewController.h" 10 | #import "FZMineCoordinator.h" 11 | #import "FZSportsPlanVC.h" 12 | #import "FZSportsResultVC.h" 13 | 14 | @interface FZMineViewController () 15 | 16 | @end 17 | 18 | @implementation FZMineViewController 19 | 20 | - (IBAction)sportsPlan:(UIButton *)sender { 21 | UIViewController *vc = [[FZMineCoordinator sharedFZMineCoordinator] targetVCWithClassName:NSStringFromClass([FZSportsPlanVC class])]; 22 | [(FZSportsPlanVC *)vc configContent:sender.currentTitle]; 23 | [self.navigationController pushViewController:vc animated:YES]; 24 | } 25 | 26 | - (IBAction)sportsResult:(UIButton *)sender { 27 | UIViewController *vc = [[FZMineCoordinator sharedFZMineCoordinator] targetVCWithClassName:NSStringFromClass([FZSportsResultVC class])]; 28 | [(FZSportsPlanVC *)vc configContent:sender.currentTitle]; 29 | [self.navigationController pushViewController:vc animated:YES]; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Engineer/Mine/Controllers/FZMineViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 35 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /Engineer/Mine/Controllers/FZSportsPlanVC.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZSportsPlanVC.h 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface FZSportsPlanVC : UIViewController 14 | - (void)configContent:(NSString *)text ; 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Engineer/Mine/Controllers/FZSportsPlanVC.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZSportsPlanVC.m 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZSportsPlanVC.h" 10 | #import 11 | #import 12 | #import 13 | 14 | @interface FZSportsPlanVC () 15 | @property (nonatomic, strong) UILabel *content; 16 | @property (nonatomic, strong) NSString *contentText; 17 | @end 18 | 19 | @implementation FZSportsPlanVC 20 | #pragma mark - Life Cycle 21 | + (void)load { 22 | [MGJRouter registerURLPattern:@"engineer://SportsPlanVC" toObjectHandler:^id(NSDictionary *routerParameters) { 23 | FZSportsPlanVC *planVC = [FZSportsPlanVC new]; 24 | [planVC configContent:routerParameters[@"MGJRouterParameterUserInfo"][@"title"]]; 25 | return planVC; 26 | }]; 27 | } 28 | 29 | - (void)viewDidLoad { 30 | [super viewDidLoad]; 31 | // Do any additional setup after loading the view. 32 | [self setupUI]; 33 | } 34 | 35 | #pragma mark - Getter, Setter 36 | - (UILabel *)content { 37 | if (!_content) { 38 | _content = [UILabel shortCutLabelWithFrame:self.view.bounds title:nil]; 39 | _content.backgroundColor = [UIColor clearColor]; 40 | _content.textColor = [UIColor whiteColor]; 41 | _content.font = [UIFont systemFontOfSize:20]; 42 | } 43 | return _content; 44 | } 45 | #pragma mark - Event 46 | 47 | #pragma mark - Public Method 48 | - (void)configContent:(NSString *)text { 49 | self.contentText = text; 50 | } 51 | #pragma mark - Private Method 52 | - (void)setupData { 53 | 54 | } 55 | 56 | - (void)setupUI { 57 | self.view.backgroundColor = [UIColor blueColor]; 58 | self.title = @"个人中心"; 59 | [self.view addSubview:self.content]; 60 | self.content.text = self.contentText; 61 | [self.content mas_makeConstraints:^(MASConstraintMaker *make) { 62 | make.edges.equalTo(self.view); 63 | }]; 64 | } 65 | 66 | - (void)resetData { 67 | 68 | } 69 | 70 | - (void)resetUI { 71 | 72 | } 73 | 74 | #pragma mark - Delegate 75 | 76 | #pragma mark - NSCopying 77 | 78 | #pragma mark - NSObject 79 | @end 80 | -------------------------------------------------------------------------------- /Engineer/Mine/Controllers/FZSportsResultVC.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZSportsResultVC.h 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface FZSportsResultVC : UIViewController 14 | - (void)configContent:(NSString *)text ; 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Engineer/Mine/Controllers/FZSportsResultVC.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZSportsResultVC.m 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZSportsResultVC.h" 10 | #import 11 | #import 12 | #import 13 | 14 | @interface FZSportsResultVC () 15 | @property (nonatomic, strong) UILabel *content; 16 | @property (nonatomic, strong) NSString *contentText; 17 | 18 | @end 19 | 20 | @implementation FZSportsResultVC 21 | #pragma mark - Life Cycle 22 | + (void)load { 23 | [MGJRouter registerURLPattern:@"engineer://SportsResultVC" toObjectHandler:^id(NSDictionary *routerParameters) { 24 | FZSportsResultVC *resultVC = [FZSportsResultVC new]; 25 | [resultVC configContent:routerParameters[@"MGJRouterParameterUserInfo"][@"title"]]; 26 | return resultVC; 27 | }]; 28 | } 29 | 30 | - (void)viewDidLoad { 31 | [super viewDidLoad]; 32 | // Do any additional setup after loading the view. 33 | [self setupUI]; 34 | } 35 | 36 | #pragma mark - Getter, Setter 37 | - (UILabel *)content { 38 | if (!_content) { 39 | _content = [UILabel shortCutLabelWithFrame:self.view.bounds title:nil]; 40 | _content.backgroundColor = [UIColor clearColor]; 41 | _content.textColor = [UIColor whiteColor]; 42 | _content.font = [UIFont systemFontOfSize:20]; 43 | } 44 | return _content; 45 | } 46 | #pragma mark - Event 47 | 48 | #pragma mark - Public Method 49 | - (void)configContent:(NSString *)text { 50 | self.contentText = text; 51 | } 52 | #pragma mark - Private Method 53 | - (void)setupData { 54 | 55 | } 56 | 57 | - (void)setupUI { 58 | self.view.backgroundColor = [UIColor purpleColor]; 59 | self.title = @"个人中心"; 60 | 61 | [self.view addSubview:self.content]; 62 | self.content.text = self.contentText; 63 | [self.content mas_makeConstraints:^(MASConstraintMaker *make) { 64 | make.edges.equalTo(self.view); 65 | }]; 66 | } 67 | 68 | - (void)resetData { 69 | 70 | } 71 | 72 | - (void)resetUI { 73 | 74 | } 75 | 76 | #pragma mark - Delegate 77 | 78 | #pragma mark - NSCopying 79 | 80 | #pragma mark - NSObject 81 | @end 82 | -------------------------------------------------------------------------------- /Engineer/Mine/Coordinators/FZMineCoordinator.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZMineCoordinator.h 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import "FZMineCoordinatorProtocol.h" 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface FZMineCoordinator : NSObject 16 | SingletonH(FZMineCoordinator) 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /Engineer/Mine/Coordinators/FZMineCoordinator.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZMineCoordinator.m 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZMineCoordinator.h" 10 | 11 | @implementation FZMineCoordinator 12 | SingletonM(FZMineCoordinator) 13 | - (UIViewController *)targetVCWithClassName:(NSString *)calssName { 14 | Class class = NSClassFromString(calssName); 15 | if (class == nil) { 16 | return nil; 17 | } 18 | return [class new]; 19 | } 20 | @end 21 | -------------------------------------------------------------------------------- /Engineer/Mine/Coordinators/FZMineCoordinatorProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZMineCoordinator.h 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "FZCoordinatorProtocol.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @protocol FZMineCoordinatorProtocol 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /Engineer/Other/BaseNavigationtroller.h: -------------------------------------------------------------------------------- 1 | // 2 | // MyNavigationtroller.h 3 | // xueba 4 | // 5 | // Created by Tim on 12/6/14. 6 | // Copyright (c) 2014 aim. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface BaseNavigationtroller : UINavigationController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Other/BaseNavigationtroller.m: -------------------------------------------------------------------------------- 1 | // 2 | // MyNavigationtroller.m 3 | // xueba 4 | // 5 | // Created by Tim on 12/6/14. 6 | // Copyright (c) 2014 aim. All rights reserved. 7 | // 8 | 9 | #import "BaseNavigationtroller.h" 10 | 11 | 12 | // 判断是否为iOS7 13 | #define iOS7 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) 14 | 15 | 16 | @interface BaseNavigationtroller () 17 | 18 | @end 19 | 20 | @implementation BaseNavigationtroller 21 | 22 | + (void)initialize 23 | { 24 | // 1.取出设置主题的对象 25 | UINavigationBar *navBar = [UINavigationBar appearance]; 26 | // navBar.translucent=NO; 27 | // 2.设置导航栏的背景图片 背景颜色 28 | if (iOS7) { // iOS7 以上 29 | navBar.barTintColor = COLOR_THEME; 30 | 31 | } else { // iOS7 一下 32 | navBar.tintColor = COLOR_THEME; 33 | 34 | } 35 | 36 | // 3.标题 37 | 38 | [navBar setTitleTextAttributes:@{ 39 | NSForegroundColorAttributeName:[UIColor whiteColor], 40 | NSFontAttributeName:[FZUtility customFont], 41 | 42 | }]; 43 | 44 | NSArray * fontArrays = [[NSArray alloc] initWithArray:[UIFont familyNames]]; 45 | for (NSString * temp in fontArrays) { 46 | NSLog(@"Font name = %@", temp); 47 | } 48 | } 49 | 50 | 51 | #pragma mark 控制状态栏的样式 52 | - (UIStatusBarStyle)preferredStatusBarStyle 53 | { 54 | return UIStatusBarStyleLightContent; 55 | } 56 | 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /Engineer/Other/BaseViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BaseViewController.h 3 | // MyTestWorkProduct 4 | // 5 | // Created by zhoufei on 15/11/2. 6 | // Copyright © 2015年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface BaseViewController : UIViewController 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Engineer/Other/BaseViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BaseViewController.m 3 | // MyTestWorkProduct 4 | // 5 | // Created by zhoufei on 15/11/2. 6 | // Copyright © 2015年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "BaseViewController.h" 10 | 11 | @interface BaseViewController () 12 | 13 | @end 14 | 15 | @implementation BaseViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | 21 | self.edgesForExtendedLayout=UIRectEdgeNone; 22 | } 23 | 24 | - (void)didReceiveMemoryWarning { 25 | [super didReceiveMemoryWarning]; 26 | // Dispose of any resources that can be recreated. 27 | } 28 | 29 | /* 30 | #pragma mark - Navigation 31 | 32 | // In a storyboard-based application, you will often want to do a little preparation before navigation 33 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 34 | // Get the new view controller using [segue destinationViewController]. 35 | // Pass the selected object to the new view controller. 36 | } 37 | */ 38 | 39 | - (UIStatusBarStyle)preferredStatusBarStyle 40 | { 41 | return UIStatusBarStyleDefault; 42 | } 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /Engineer/Other/FZCoordinatorProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZCoordinatorProtocol.h 3 | // Engineer 4 | // 5 | // Created by zhoufei on 2019/1/19. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @protocol FZCoordinatorProtocol 14 | - (UIViewController *)targetVCWithClassName:(NSString *)calssName; 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Engineer/Other/MainTabBarViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // RootViewController.h 3 | // MyTestWorkProduct 4 | // 5 | // Created by zhoufei on 15/11/2. 6 | // Copyright © 2015年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MainTabBarViewController : UITabBarController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Other/MainTabBarViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // RootViewController.m 3 | // MyTestWorkProduct 4 | // 5 | // Created by zhoufei on 15/11/2. 6 | // Copyright © 2015年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "MainTabBarViewController.h" 10 | #import "BaseNavigationtroller.h" 11 | #import "FZMessageViewController.h" 12 | #import "FZMineViewController.h" 13 | #import "FZSportsViewController.h" 14 | #import "FZSportsCircleViewController.h" 15 | #import "FZFoundViewController.h" 16 | #import 17 | 18 | #define kTopY -15 19 | 20 | @interface MainTabBarViewController () 21 | { 22 | NSMutableArray *controlArray; 23 | } 24 | @end 25 | 26 | @implementation MainTabBarViewController 27 | #pragma mark - Life Cycle 28 | - (void)viewDidLoad { 29 | [super viewDidLoad]; 30 | // Do any additional setup after loading the view from its nib. 31 | 32 | [self setupUI]; 33 | } 34 | 35 | 36 | #pragma mark - Getter, Setter 37 | 38 | #pragma mark - Event 39 | 40 | #pragma mark - Public Method 41 | 42 | #pragma mark - Private Method 43 | - (void)setupData { 44 | 45 | } 46 | 47 | - (void)setupUI { 48 | 49 | [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:RGBACOLOR(105, 189, 76, 1),NSForegroundColorAttributeName, nil]forState:UIControlStateSelected]; 50 | [[UITabBarItem appearance] setTitlePositionAdjustment:UIOffsetMake(0, -2)]; 51 | 52 | FZSportsCircleViewController *sportsCircle=[[FZSportsCircleViewController alloc]init]; 53 | BaseNavigationtroller *nav1=[[BaseNavigationtroller alloc]initWithRootViewController:sportsCircle]; 54 | sportsCircle.title=@"运动圈"; 55 | nav1.tabBarItem.image=[[UIImage imageNamed:@"main_tab_title_social_0~iphone"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 56 | nav1.tabBarItem.selectedImage=[[UIImage imageNamed:@"main_tab_title_social_1~iphone"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 57 | //赋值图片 58 | 59 | FZFoundViewController *found=[[FZFoundViewController alloc]init]; 60 | BaseNavigationtroller *nav2=[[BaseNavigationtroller alloc]initWithRootViewController:found]; 61 | found.title=@"发现"; 62 | nav2.tabBarItem.image=[[UIImage imageNamed:@"main_tab_title_discover_0~iphone"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 63 | nav2.tabBarItem.selectedImage=[[UIImage imageNamed:@"main_tab_title_discover_1~iphone"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 64 | 65 | 66 | FZSportsViewController *sports=[[FZSportsViewController alloc]init]; 67 | BaseNavigationtroller *nav3=[[BaseNavigationtroller alloc]initWithRootViewController:sports]; 68 | sports.title=@"运动"; 69 | nav3.tabBarItem.image=[[UIImage imageNamed:@"main_tab_title_sport_0~iphone"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 70 | nav3.tabBarItem.selectedImage=[[UIImage imageNamed:@"main_tab_title_sport_1~iphone"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 71 | nav3.tabBarItem.tag=1003; 72 | nav3.tabBarItem.badgeValue=@"1"; 73 | 74 | FZMessageViewController *message=[[FZMessageViewController alloc]init]; 75 | BaseNavigationtroller *nav4=[[BaseNavigationtroller alloc]initWithRootViewController:message]; 76 | message.title=@"消息"; 77 | nav4.tabBarItem.image=[[UIImage imageNamed:@"main_tab_title_message_0~iphone"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 78 | nav4.tabBarItem.selectedImage=[[UIImage imageNamed:@"main_tab_title_message_1~iphone"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 79 | nav4.tabBarItem.badgeValue=@"2"; 80 | 81 | FZMineViewController *main=[[FZMineViewController alloc]init]; 82 | BaseNavigationtroller *nav5=[[BaseNavigationtroller alloc]initWithRootViewController:main]; 83 | main.title=@"个人中心"; 84 | nav5.tabBarItem.image=[[UIImage imageNamed:@"main_tab_title_personal_0~iphone"] 85 | imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 86 | nav5.tabBarItem.selectedImage=[[UIImage imageNamed:@"main_tab_title_personal_1~iphone"] 87 | imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 88 | 89 | 90 | nav1.tabBarItem.imageInsets=UIEdgeInsetsMake(-1, 0, 1, 0); 91 | nav2.tabBarItem.imageInsets=UIEdgeInsetsMake(-1, 0, 1, 0); 92 | nav3.tabBarItem.imageInsets=UIEdgeInsetsMake(-1, 0, 1, 0); 93 | nav4.tabBarItem.imageInsets=UIEdgeInsetsMake(-1, 0, 1, 0); 94 | nav5.tabBarItem.imageInsets=UIEdgeInsetsMake(-1, 0, 1, 0); 95 | 96 | 97 | controlArray=[[NSMutableArray alloc]initWithObjects:nav1,nav2,nav3,nav4,nav5, nil]; 98 | self.viewControllers=controlArray; 99 | 100 | 101 | 102 | 103 | 104 | 105 | UIView *barButtonView3 = [nav3.tabBarItem valueForKeyPath:@"view"]; 106 | UIView *swappableImageView3 = [barButtonView3.subviews lastObject]; 107 | 108 | CABasicAnimation *base = [CABasicAnimation animationWithKeyPath:@"transform.scale"]; 109 | base.fromValue = @(1.0); 110 | base.toValue = @(0.5); 111 | base.repeatCount = NSIntegerMax; 112 | base.autoreverses = YES;//依动画的方式返回原位置 113 | base.duration = 1; 114 | [swappableImageView3.layer addAnimation:base forKey:@"move2"]; 115 | 116 | 117 | UIView *barButtonView4 = [nav4.tabBarItem valueForKeyPath:@"view"]; 118 | UIView *swappableImageView4 = [barButtonView4.subviews lastObject]; 119 | 120 | CABasicAnimation *base4 = [CABasicAnimation animationWithKeyPath:@"transform.translation.y"]; 121 | base4.fromValue = [NSNumber numberWithInteger:-5]; 122 | base4.toValue = [NSNumber numberWithInteger:5]; 123 | base4.repeatCount = NSIntegerMax; 124 | base4.autoreverses = YES;//依动画的方式返回原位置 125 | base4.duration = 1; 126 | [swappableImageView4.layer addAnimation:base4 forKey:@"move4"]; 127 | } 128 | 129 | 130 | 131 | - (void)resetData { 132 | 133 | } 134 | 135 | - (void)resetUI { 136 | 137 | } 138 | 139 | 140 | 141 | #pragma mark - Delegate 142 | 143 | #pragma mark - NSCopying 144 | 145 | #pragma mark - NSObject 146 | 147 | @end 148 | -------------------------------------------------------------------------------- /Engineer/ProtocolMediator/FZComponentProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZComponentProtocol.h 3 | // Engineer 4 | // 5 | // Created by 周飞 on 2019/1/21. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | 13 | @protocol FZModuleMineProtocol 14 | + (UIViewController *)fetchSportsPlanVC:(NSString *)title; 15 | + (UIViewController *)fetchSportsResultVC:(NSString *)title; 16 | @end 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Engineer/ProtocolMediator/FZProtocolMediator.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZProtocolMediator.h 3 | // Engineer 4 | // 5 | // Created by 周飞 on 2019/1/20. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import "FZComponentProtocol.h" 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface FZProtocolMediator : NSObject 15 | SingletonH(FZProtocolMediator) 16 | - (void)registerProtocol:(Protocol *)proto forClass:(Class)cls ; 17 | - (Class)classForProtocol:(Protocol *)proto ; 18 | 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /Engineer/ProtocolMediator/FZProtocolMediator.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZProtocolMediator.m 3 | // Engineer 4 | // 5 | // Created by 周飞 on 2019/1/20. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZProtocolMediator.h" 10 | 11 | @interface FZProtocolMediator () 12 | @property (nonatomic, strong) NSMutableDictionary *protocolCache; 13 | @end 14 | 15 | @implementation FZProtocolMediator 16 | SingletonM(FZProtocolMediator) 17 | 18 | - (void)registerProtocol:(Protocol *)proto forClass:(Class)cls { 19 | [self.protocolCache setObject:cls forKey:NSStringFromProtocol(proto)]; 20 | } 21 | 22 | - (Class)classForProtocol:(Protocol *)proto { 23 | return self.protocolCache[NSStringFromProtocol(proto)]; 24 | } 25 | 26 | - (NSMutableDictionary *)protocolCache { 27 | if (!_protocolCache) { 28 | _protocolCache = @{}.mutableCopy; 29 | } 30 | return _protocolCache; 31 | } 32 | @end 33 | -------------------------------------------------------------------------------- /Engineer/Resource/TextFont/汉仪菱心体简.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Resource/TextFont/汉仪菱心体简.ttf -------------------------------------------------------------------------------- /Engineer/Resource/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Resource/home.png -------------------------------------------------------------------------------- /Engineer/Resource/personal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhfei/Engineer/6922d84f8797f72809d3ad768279a9dcce87c156/Engineer/Resource/personal.png -------------------------------------------------------------------------------- /Engineer/Sports/Controllers/FZSportsViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZSportsViewController.h 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "BaseViewController.h" 10 | 11 | @interface FZSportsViewController : BaseViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/Sports/Controllers/FZSportsViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZSportsViewController.m 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZSportsViewController.h" 10 | 11 | @implementation FZSportsViewController 12 | - (void)viewDidLoad 13 | { 14 | [super viewDidLoad]; 15 | 16 | } 17 | 18 | -(NSString *)getValueForKey:(NSString *)key 19 | { 20 | NSData *valueData = nil; 21 | if(valueData != nil) 22 | { 23 | NSString *value = [[NSString alloc] initWithData:valueData encoding:NSUTF8StringEncoding]; 24 | return value; 25 | } 26 | else 27 | { 28 | return nil; 29 | } 30 | } 31 | 32 | - (void)viewWillAppear:(BOOL)animated 33 | { 34 | [super viewWillAppear:animated]; 35 | 36 | } 37 | @end 38 | -------------------------------------------------------------------------------- /Engineer/SportsCircle/Controllers/FZSportsCircleViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FZSportsCircleViewController.h 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "BaseViewController.h" 10 | 11 | @interface FZSportsCircleViewController : BaseViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Engineer/SportsCircle/Controllers/FZSportsCircleViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FZSportsCircleViewController.m 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/12. 6 | // Copyright © 2016年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "FZSportsCircleViewController.h" 10 | #import "CTMediator+Mine.h" 11 | #import 12 | #import "FZProtocolMediator.h" 13 | #import "FZComponentProtocol.h" 14 | 15 | @implementation FZSportsCircleViewController 16 | - (IBAction)goSportsPlanDetail:(UIButton *)sender { 17 | UIViewController *vc = [[CTMediator sharedInstance] Mediator_fetchSportsPlanVC:@{@"title":[sender currentTitle]}]; 18 | [self.navigationController pushViewController:vc animated:YES]; 19 | } 20 | - (IBAction)goSportsResultDetail:(UIButton *)sender { 21 | UIViewController *vc = [[CTMediator sharedInstance] Mediator_fetchSportsResultVC:@{@"title":[sender currentTitle]}]; 22 | [self.navigationController pushViewController:vc animated:YES]; 23 | } 24 | 25 | - (IBAction)mgj_goSportsPlanDetail:(UIButton *)sender { 26 | UIViewController *vc = [MGJRouter objectForURL:@"engineer://SportsPlanVC" withUserInfo:@{@"title":[sender currentTitle]}]; 27 | [self.navigationController pushViewController:vc animated:YES]; 28 | } 29 | - (IBAction)mgj_goSportsResultDetail:(UIButton *)sender { 30 | UIViewController *vc = [MGJRouter objectForURL:@"engineer://SportsResultVC" withUserInfo:@{@"title":[sender currentTitle]}]; 31 | [self.navigationController pushViewController:vc animated:YES]; 32 | } 33 | 34 | - (IBAction)protocol_class_goSportsPlanDetail:(UIButton *)sender { 35 | Class class = [[FZProtocolMediator sharedFZProtocolMediator] classForProtocol:NSProtocolFromString(@"FZModuleMineProtocol")]; 36 | 37 | UIViewController *vc = [class fetchSportsPlanVC:sender.currentTitle]; 38 | [self.navigationController pushViewController:vc animated:YES]; 39 | } 40 | - (IBAction)protocol_class_goSportsResultDetail:(UIButton *)sender { 41 | Class class = [[FZProtocolMediator sharedFZProtocolMediator] classForProtocol:NSProtocolFromString(@"FZModuleMineProtocol")]; 42 | 43 | UIViewController *vc = [class fetchSportsResultVC:sender.currentTitle]; 44 | [self.navigationController pushViewController:vc animated:YES]; 45 | } 46 | @end 47 | -------------------------------------------------------------------------------- /Engineer/SportsCircle/Controllers/FZSportsCircleViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 36 | 49 | 62 | 75 | 88 | 101 | 110 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /Engineer/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Map 4 | // 5 | // Created by zhoufei on 16/6/6. 6 | // Copyright © 2016年 zhoufei. 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 | -------------------------------------------------------------------------------- /ExportOptions.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | compileBitcode 6 | 7 | method 8 | ad-hoc(IPA包模式) 9 | provisioningProfiles 10 | (下面设置bundleID对应的provisioningProfiles文件名) 11 | com.*** 12 | AD_HOC 13 | com.***.TKNotificationCentent 14 | Content 15 | com.***.TKNotificationService 16 | Service 17 | (下面配置证书) 18 | signingCertificate 19 | iPhone Distribution 20 | signingStyle 21 | manual 22 | stripSwiftSymbols 23 | (下面配置teamID) 24 | teamID 25 | KJYHPT**** 26 | thinning 27 | 28 | 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | 3 | target "Engineer" do 4 | 5 | platform :ios, "8.0" 6 | #//基础库 7 | pod 'BottomComponentLib', :git => 'https://github.com/zhfei/BottomComponentLib.git' 8 | #pod 'DoraemonKit/WithLogger', :configurations => ['Debug'] 9 | pod "CTMediator" 10 | pod "MGJRouter" 11 | end 12 | 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #### 简述组件化解决方案CTMediator与MGJRouter的主要思想 2 | 3 | ##### 简述CTMediator 4 | CTMediator按照功能的结构来讲,使用时需要实现CTMediator的个三部分。 5 | 1. CTMediator类:承担总枢纽,总调度的责任 6 | 2. Target_(ModuleName)类:承担组件对外暴漏接口功能,组件要提供什么服务,主要在它的接口声明上进行体现 7 | 3. CTMediator+(ModuleName)分类:主要供客户端使用,里面声明了可以调用的组件接口。 8 | 9 | 详细讲解如下: 10 | **Part1: CTMediator核心功能实现:** 11 | CTMediator主要采用target-action的方式实现组件间解耦合,本身功能完全独立,不依赖任何组件模块。 12 | 主要结构如下: 13 | CTMediator作为中介者,是各个组件的进行信息通讯的中枢。 14 | 主要实现方案分两种情况: 15 | 16 | 首先利用runtime进行反射,将类字符串和方法字符串转换成类和SEL方法选择子: 17 | ``` 18 | SEL action = NSSelectorFromString(@"Action_response:"); 19 | NSObject *target = [[NSClassFromString(@"Target_NoTargetAction") alloc] init]; 20 | ``` 21 | 22 | 1.然后调用cocoa touch框架提供的方法直接调用 23 | 代码如下 24 | ``` 25 | [target performSelector:action withObject:params]; 26 | ``` 27 | 2.或者使用cocoa touch提供的命令模式,将消息和消息接受者封装成一个对象,进行执行。 28 | 首先,利用target-action生成方法签名 29 | 然后,创建NSInvocation对象,进行执行invoke。并拿到返回的结果。 30 | 31 | 代码如下: 32 | 利用方法签名,NSInvocation实现 33 | ``` 34 | NSMethodSignature* methodSig = [target methodSignatureForSelector:action]; 35 | if(methodSig == nil) { 36 | return nil; 37 | } 38 | const char* retType = [methodSig methodReturnType]; 39 | if (strcmp(retType, @encode(void)) == 0) { 40 | NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:methodSig]; 41 | [invocation setArgument:¶ms atIndex:2]; 42 | [invocation setSelector:action]; 43 | [invocation setTarget:target]; 44 | [invocation invoke]; 45 | return nil; 46 | } 47 | ``` 48 | **Part2: 组件对外服务接口 49 | ** 50 | 如果组件需要对外提供服务,就需要创建自己的接收动作类 51 | 比如ModuleA要对外提供服务。那么就要创建一个 52 | Target_A类,然后在Target_A类的.h文件中声明对外服务的接口,并在.m文件中进行实现。 53 | 注意:Target_A类是依赖组件的。它属于组件的一部分。 54 | 代码如下: 55 | ``` 56 | @interface Target_Mine : NSObject 57 | - (id)Action_nativeFetchSportsResultVC:(NSDictionary *)param; 58 | - (void)Action_remoteAlertSportsResultVC:(NSDictionary *)param; 59 | @end 60 | ``` 61 | ``` 62 | @implementation Target_Mine 63 | - (id)Action_nativeFetchSportsResultVC:(NSDictionary *)param { 64 | UIViewController *vc = [[FZMineCoordinator sharedFZMineCoordinator] targetVCWithClassName:NSStringFromClass([FZSportsResultVC class])]; 65 | if ([vc isKindOfClass:[FZSportsResultVC class]]) { 66 | [(FZSportsResultVC *)vc configContent:param[@"title"]]; 67 | } 68 | return vc; 69 | } 70 | 71 | - (void)Action_remoteAlertSportsResultVC:(NSDictionary *)param { 72 | UIViewController *vc = [[FZMineCoordinator sharedFZMineCoordinator] targetVCWithClassName:NSStringFromClass([FZSportsResultVC class])]; 73 | if ([vc isKindOfClass:[FZSportsResultVC class]]) { 74 | [(FZSportsPlanVC *)vc configContent:param[@"title"]]; 75 | } 76 | 77 | id appDelegate = [UIApplication sharedApplication].delegate; 78 | UITabBarController *rootVC = [[appDelegate window] rootViewController]; 79 | [rootVC.childViewControllers[0] pushViewController:vc animated:YES]; 80 | } 81 | @end 82 | ``` 83 | **Part3: CTMediator+ModuleA组件通讯实际使用类 84 | ** 85 | 为了实现完全解耦,这个类所有使用的所有参数全部是cocoa touch框架中定义的基本类型。 86 | 像: NSDictionary, NSString, UIImage等。 87 | 里面按照作用分,可以分为: 88 | 模块名称字符串,模块本地调用方法名称字符串,模块远程调用方法名称字符串 89 | 在CTMediator+ModuleA分类文件的.h文件中,定义了供其他模块使用的接口 90 | 在CTMediator+ModuleA分类文件的.m文件中,实现供其他模块使用的接口,调用用CTMediator的runtime机制进行实现。 91 | 代码如下: 92 | ``` 93 | - (IBAction)goSportsPlanDetail:(UIButton *)sender { 94 | UIViewController *vc = [[CTMediator sharedInstance] Mediator_fetchSportsPlanVC:@{@"title":[sender currentTitle]}]; 95 | [self.navigationController pushViewController:vc animated:YES]; 96 | } 97 | ``` 98 | CTMediator提供的方案是我认为最好的,巧妙的使用了cocoaTouch提供的反射机制,方法签名与命令模式,简单又完美的解决了组件间的解耦问题。 99 | 同时因为实现是基于Object-C的特性,稳定性靠谱。 100 | 在方案不同作用类分工上,简单明了。实现了从形式到实质上完全的解耦,同时提供了对外部appURL调用的支持。是非常完美的方案。 101 | 102 | ##### 简述MGJRouter 103 | 蘑菇街组件化方案,采用了url-block加protocal-class的方案,url-block用于页面跳转,protocal-class用于组件跳转 104 | 下面对MGJRouter的主要思路进行分析。 105 | 106 | **MGJRouter核心功能实现 107 | Part1:** 108 | MGJRouter的url-block实现方案思路为,在路由中心维护着一张路由表,url为key, block为value。 109 | 注册路由表时,将key和value对应保存到路由表routes中 110 | 使用时,根据URL拿到对应的block进行执行。 111 | 112 | ``` 113 | - (NSMutableDictionary *)routes 114 | { 115 | if (!_routes) { 116 | _routes = [[NSMutableDictionary alloc] init]; 117 | } 118 | return _routes; 119 | } 120 | ``` 121 | 但是URL对应像UIImage,NSData这样的非常规对象是很难传递的。 122 | **Part2:** 123 | 蘑菇街的protocal-class实现方案思路为: 124 | 在ModuleManager内维护着一张映射表,以protocol为key,以Class为Value。 125 | 注册映射表 126 | ``` 127 | [ModuleManager registerClass:ClassA forProtocol:ProtocolA] 128 | ``` 129 | 使用映射表 130 | ``` 131 | [ModuleManager classForProtocol:ProtocolA] 132 | ``` 133 | 注意:上面一一对应的关系中,类是实现了对应的协议的。所以通过协议拿到的类是可以按照protocol中声明的方法自由使用的。 134 | 135 | **注册步骤:** 136 | 1.url-block方案注册: 137 | 在模块对应要展示的页面中,在load方法中进行注册 138 | ``` 139 | + (void)load { 140 | [MGJRouter registerURLPattern:@"engineer://SportsPlanVC" toObjectHandler:^id(NSDictionary *routerParameters) { 141 | FZSportsPlanVC *planVC = [FZSportsPlanVC new]; 142 | [planVC configContent:routerParameters[@"MGJRouterParameterUserInfo"][@"title"]]; 143 | return planVC; 144 | }]; 145 | } 146 | ``` 147 | 2.protocal-class方案注册: 148 | 在模块的协议实现类中进行注册: 149 | ``` 150 | + (void)load { 151 | [[FZProtocolMediator sharedFZProtocolMediator] registerProtocol:NSProtocolFromString(@"FZModuleMineProtocol") forClass:[FZModuleMineProtocolImplete class]]; 152 | } 153 | ``` 154 | 155 | **使用步骤:** 156 | 根据对应的单例获取方式,获取既可。 157 | ``` 158 | - (IBAction)mgj_goSportsPlanDetail:(UIButton *)sender { 159 | UIViewController *vc = [MGJRouter objectForURL:@"engineer://SportsPlanVC" withUserInfo:@{@"title":[sender currentTitle]}]; 160 | [self.navigationController pushViewController:vc animated:YES]; 161 | } 162 | ``` 163 | ``` 164 | - (IBAction)protocol_class_goSportsPlanDetail:(UIButton *)sender { 165 | Class class = [[FZProtocolMediator sharedFZProtocolMediator] classForProtocol:NSProtocolFromString(@"FZModuleMineProtocol")]; 166 | UIViewController *vc = [class fetchSportsPlanVC:sender.currentTitle]; 167 | [self.navigationController pushViewController:vc animated:YES]; 168 | } 169 | ``` 170 | 171 | MGJRouter实现方案上有些复杂,使得新手学习上有些困难,同时两张表也增加了维护成本。 172 | 不过不可否认的是url-block和protocal-class都是非常巧妙的解耦方案。 173 | 174 | 使用效果如下: 175 | ![home](https://github.com/zhfei/Engineer/blob/master/Engineer/Resource/home.png?raw=true) 176 | 177 | ![personal](https://github.com/zhfei/Engineer/blob/master/Engineer/Resource/personal.png?raw=true) 178 | 179 | 使用demo地址为:https://github.com/zhfei/Engineer 180 | 181 | 182 | 183 | 184 | -------------------------------------------------------------------------------- /RoleModule/RoleModule.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 91CA85C721F38B0E00EC8765 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 91CA85C621F38B0E00EC8765 /* AppDelegate.m */; }; 11 | 91CA85CA21F38B0E00EC8765 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 91CA85C921F38B0E00EC8765 /* ViewController.m */; }; 12 | 91CA85CD21F38B0E00EC8765 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 91CA85CB21F38B0E00EC8765 /* Main.storyboard */; }; 13 | 91CA85CF21F38B0F00EC8765 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 91CA85CE21F38B0F00EC8765 /* Assets.xcassets */; }; 14 | 91CA85D221F38B0F00EC8765 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 91CA85D021F38B0F00EC8765 /* LaunchScreen.storyboard */; }; 15 | 91CA85D521F38B0F00EC8765 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 91CA85D421F38B0F00EC8765 /* main.m */; }; 16 | 91CA85DF21F38B1000EC8765 /* RoleModuleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 91CA85DE21F38B0F00EC8765 /* RoleModuleTests.m */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 91CA85DB21F38B0F00EC8765 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 91CA85BA21F38B0E00EC8765 /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 91CA85C121F38B0E00EC8765; 25 | remoteInfo = RoleModule; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 91CA85C221F38B0E00EC8765 /* RoleModule.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RoleModule.app; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 91CA85C521F38B0E00EC8765 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 32 | 91CA85C621F38B0E00EC8765 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 33 | 91CA85C821F38B0E00EC8765 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 34 | 91CA85C921F38B0E00EC8765 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 35 | 91CA85CC21F38B0E00EC8765 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 36 | 91CA85CE21F38B0F00EC8765 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 37 | 91CA85D121F38B0F00EC8765 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 38 | 91CA85D321F38B0F00EC8765 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | 91CA85D421F38B0F00EC8765 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 40 | 91CA85DA21F38B0F00EC8765 /* RoleModuleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RoleModuleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 91CA85DE21F38B0F00EC8765 /* RoleModuleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RoleModuleTests.m; sourceTree = ""; }; 42 | 91CA85E021F38B1000EC8765 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | /* End PBXFileReference section */ 44 | 45 | /* Begin PBXFrameworksBuildPhase section */ 46 | 91CA85BF21F38B0E00EC8765 /* Frameworks */ = { 47 | isa = PBXFrameworksBuildPhase; 48 | buildActionMask = 2147483647; 49 | files = ( 50 | ); 51 | runOnlyForDeploymentPostprocessing = 0; 52 | }; 53 | 91CA85D721F38B0F00EC8765 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | ); 58 | runOnlyForDeploymentPostprocessing = 0; 59 | }; 60 | /* End PBXFrameworksBuildPhase section */ 61 | 62 | /* Begin PBXGroup section */ 63 | 91CA85B921F38B0E00EC8765 = { 64 | isa = PBXGroup; 65 | children = ( 66 | 91CA85C421F38B0E00EC8765 /* RoleModule */, 67 | 91CA85DD21F38B0F00EC8765 /* RoleModuleTests */, 68 | 91CA85C321F38B0E00EC8765 /* Products */, 69 | ); 70 | sourceTree = ""; 71 | }; 72 | 91CA85C321F38B0E00EC8765 /* Products */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 91CA85C221F38B0E00EC8765 /* RoleModule.app */, 76 | 91CA85DA21F38B0F00EC8765 /* RoleModuleTests.xctest */, 77 | ); 78 | name = Products; 79 | sourceTree = ""; 80 | }; 81 | 91CA85C421F38B0E00EC8765 /* RoleModule */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 91CA85C521F38B0E00EC8765 /* AppDelegate.h */, 85 | 91CA85C621F38B0E00EC8765 /* AppDelegate.m */, 86 | 91CA85C821F38B0E00EC8765 /* ViewController.h */, 87 | 91CA85C921F38B0E00EC8765 /* ViewController.m */, 88 | 91CA85CB21F38B0E00EC8765 /* Main.storyboard */, 89 | 91CA85CE21F38B0F00EC8765 /* Assets.xcassets */, 90 | 91CA85D021F38B0F00EC8765 /* LaunchScreen.storyboard */, 91 | 91CA85D321F38B0F00EC8765 /* Info.plist */, 92 | 91CA85D421F38B0F00EC8765 /* main.m */, 93 | ); 94 | path = RoleModule; 95 | sourceTree = ""; 96 | }; 97 | 91CA85DD21F38B0F00EC8765 /* RoleModuleTests */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 91CA85DE21F38B0F00EC8765 /* RoleModuleTests.m */, 101 | 91CA85E021F38B1000EC8765 /* Info.plist */, 102 | ); 103 | path = RoleModuleTests; 104 | sourceTree = ""; 105 | }; 106 | /* End PBXGroup section */ 107 | 108 | /* Begin PBXNativeTarget section */ 109 | 91CA85C121F38B0E00EC8765 /* RoleModule */ = { 110 | isa = PBXNativeTarget; 111 | buildConfigurationList = 91CA85E321F38B1000EC8765 /* Build configuration list for PBXNativeTarget "RoleModule" */; 112 | buildPhases = ( 113 | 91CA85BE21F38B0E00EC8765 /* Sources */, 114 | 91CA85BF21F38B0E00EC8765 /* Frameworks */, 115 | 91CA85C021F38B0E00EC8765 /* Resources */, 116 | ); 117 | buildRules = ( 118 | ); 119 | dependencies = ( 120 | ); 121 | name = RoleModule; 122 | productName = RoleModule; 123 | productReference = 91CA85C221F38B0E00EC8765 /* RoleModule.app */; 124 | productType = "com.apple.product-type.application"; 125 | }; 126 | 91CA85D921F38B0F00EC8765 /* RoleModuleTests */ = { 127 | isa = PBXNativeTarget; 128 | buildConfigurationList = 91CA85E621F38B1000EC8765 /* Build configuration list for PBXNativeTarget "RoleModuleTests" */; 129 | buildPhases = ( 130 | 91CA85D621F38B0F00EC8765 /* Sources */, 131 | 91CA85D721F38B0F00EC8765 /* Frameworks */, 132 | 91CA85D821F38B0F00EC8765 /* Resources */, 133 | ); 134 | buildRules = ( 135 | ); 136 | dependencies = ( 137 | 91CA85DC21F38B0F00EC8765 /* PBXTargetDependency */, 138 | ); 139 | name = RoleModuleTests; 140 | productName = RoleModuleTests; 141 | productReference = 91CA85DA21F38B0F00EC8765 /* RoleModuleTests.xctest */; 142 | productType = "com.apple.product-type.bundle.unit-test"; 143 | }; 144 | /* End PBXNativeTarget section */ 145 | 146 | /* Begin PBXProject section */ 147 | 91CA85BA21F38B0E00EC8765 /* Project object */ = { 148 | isa = PBXProject; 149 | attributes = { 150 | LastUpgradeCheck = 1010; 151 | ORGANIZATIONNAME = zhoufei; 152 | TargetAttributes = { 153 | 91CA85C121F38B0E00EC8765 = { 154 | CreatedOnToolsVersion = 10.1; 155 | }; 156 | 91CA85D921F38B0F00EC8765 = { 157 | CreatedOnToolsVersion = 10.1; 158 | TestTargetID = 91CA85C121F38B0E00EC8765; 159 | }; 160 | }; 161 | }; 162 | buildConfigurationList = 91CA85BD21F38B0E00EC8765 /* Build configuration list for PBXProject "RoleModule" */; 163 | compatibilityVersion = "Xcode 9.3"; 164 | developmentRegion = en; 165 | hasScannedForEncodings = 0; 166 | knownRegions = ( 167 | en, 168 | Base, 169 | ); 170 | mainGroup = 91CA85B921F38B0E00EC8765; 171 | productRefGroup = 91CA85C321F38B0E00EC8765 /* Products */; 172 | projectDirPath = ""; 173 | projectRoot = ""; 174 | targets = ( 175 | 91CA85C121F38B0E00EC8765 /* RoleModule */, 176 | 91CA85D921F38B0F00EC8765 /* RoleModuleTests */, 177 | ); 178 | }; 179 | /* End PBXProject section */ 180 | 181 | /* Begin PBXResourcesBuildPhase section */ 182 | 91CA85C021F38B0E00EC8765 /* Resources */ = { 183 | isa = PBXResourcesBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | 91CA85D221F38B0F00EC8765 /* LaunchScreen.storyboard in Resources */, 187 | 91CA85CF21F38B0F00EC8765 /* Assets.xcassets in Resources */, 188 | 91CA85CD21F38B0E00EC8765 /* Main.storyboard in Resources */, 189 | ); 190 | runOnlyForDeploymentPostprocessing = 0; 191 | }; 192 | 91CA85D821F38B0F00EC8765 /* Resources */ = { 193 | isa = PBXResourcesBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | ); 197 | runOnlyForDeploymentPostprocessing = 0; 198 | }; 199 | /* End PBXResourcesBuildPhase section */ 200 | 201 | /* Begin PBXSourcesBuildPhase section */ 202 | 91CA85BE21F38B0E00EC8765 /* Sources */ = { 203 | isa = PBXSourcesBuildPhase; 204 | buildActionMask = 2147483647; 205 | files = ( 206 | 91CA85CA21F38B0E00EC8765 /* ViewController.m in Sources */, 207 | 91CA85D521F38B0F00EC8765 /* main.m in Sources */, 208 | 91CA85C721F38B0E00EC8765 /* AppDelegate.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | 91CA85D621F38B0F00EC8765 /* Sources */ = { 213 | isa = PBXSourcesBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | 91CA85DF21F38B1000EC8765 /* RoleModuleTests.m in Sources */, 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | }; 220 | /* End PBXSourcesBuildPhase section */ 221 | 222 | /* Begin PBXTargetDependency section */ 223 | 91CA85DC21F38B0F00EC8765 /* PBXTargetDependency */ = { 224 | isa = PBXTargetDependency; 225 | target = 91CA85C121F38B0E00EC8765 /* RoleModule */; 226 | targetProxy = 91CA85DB21F38B0F00EC8765 /* PBXContainerItemProxy */; 227 | }; 228 | /* End PBXTargetDependency section */ 229 | 230 | /* Begin PBXVariantGroup section */ 231 | 91CA85CB21F38B0E00EC8765 /* Main.storyboard */ = { 232 | isa = PBXVariantGroup; 233 | children = ( 234 | 91CA85CC21F38B0E00EC8765 /* Base */, 235 | ); 236 | name = Main.storyboard; 237 | sourceTree = ""; 238 | }; 239 | 91CA85D021F38B0F00EC8765 /* LaunchScreen.storyboard */ = { 240 | isa = PBXVariantGroup; 241 | children = ( 242 | 91CA85D121F38B0F00EC8765 /* Base */, 243 | ); 244 | name = LaunchScreen.storyboard; 245 | sourceTree = ""; 246 | }; 247 | /* End PBXVariantGroup section */ 248 | 249 | /* Begin XCBuildConfiguration section */ 250 | 91CA85E121F38B1000EC8765 /* Debug */ = { 251 | isa = XCBuildConfiguration; 252 | buildSettings = { 253 | ALWAYS_SEARCH_USER_PATHS = NO; 254 | CLANG_ANALYZER_NONNULL = YES; 255 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 256 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 257 | CLANG_CXX_LIBRARY = "libc++"; 258 | CLANG_ENABLE_MODULES = YES; 259 | CLANG_ENABLE_OBJC_ARC = YES; 260 | CLANG_ENABLE_OBJC_WEAK = YES; 261 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 262 | CLANG_WARN_BOOL_CONVERSION = YES; 263 | CLANG_WARN_COMMA = YES; 264 | CLANG_WARN_CONSTANT_CONVERSION = YES; 265 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 266 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 267 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 268 | CLANG_WARN_EMPTY_BODY = YES; 269 | CLANG_WARN_ENUM_CONVERSION = YES; 270 | CLANG_WARN_INFINITE_RECURSION = YES; 271 | CLANG_WARN_INT_CONVERSION = YES; 272 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 273 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 274 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 275 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 276 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 277 | CLANG_WARN_STRICT_PROTOTYPES = YES; 278 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 279 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 280 | CLANG_WARN_UNREACHABLE_CODE = YES; 281 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 282 | CODE_SIGN_IDENTITY = "iPhone Developer"; 283 | COPY_PHASE_STRIP = NO; 284 | DEBUG_INFORMATION_FORMAT = dwarf; 285 | ENABLE_STRICT_OBJC_MSGSEND = YES; 286 | ENABLE_TESTABILITY = YES; 287 | GCC_C_LANGUAGE_STANDARD = gnu11; 288 | GCC_DYNAMIC_NO_PIC = NO; 289 | GCC_NO_COMMON_BLOCKS = YES; 290 | GCC_OPTIMIZATION_LEVEL = 0; 291 | GCC_PREPROCESSOR_DEFINITIONS = ( 292 | "DEBUG=1", 293 | "$(inherited)", 294 | ); 295 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 296 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 297 | GCC_WARN_UNDECLARED_SELECTOR = YES; 298 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 299 | GCC_WARN_UNUSED_FUNCTION = YES; 300 | GCC_WARN_UNUSED_VARIABLE = YES; 301 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 302 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 303 | MTL_FAST_MATH = YES; 304 | ONLY_ACTIVE_ARCH = YES; 305 | SDKROOT = iphoneos; 306 | }; 307 | name = Debug; 308 | }; 309 | 91CA85E221F38B1000EC8765 /* Release */ = { 310 | isa = XCBuildConfiguration; 311 | buildSettings = { 312 | ALWAYS_SEARCH_USER_PATHS = NO; 313 | CLANG_ANALYZER_NONNULL = YES; 314 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_ENABLE_OBJC_WEAK = YES; 320 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 321 | CLANG_WARN_BOOL_CONVERSION = YES; 322 | CLANG_WARN_COMMA = YES; 323 | CLANG_WARN_CONSTANT_CONVERSION = YES; 324 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 325 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 326 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 327 | CLANG_WARN_EMPTY_BODY = YES; 328 | CLANG_WARN_ENUM_CONVERSION = YES; 329 | CLANG_WARN_INFINITE_RECURSION = YES; 330 | CLANG_WARN_INT_CONVERSION = YES; 331 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 332 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 333 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 334 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 335 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 336 | CLANG_WARN_STRICT_PROTOTYPES = YES; 337 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 338 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 339 | CLANG_WARN_UNREACHABLE_CODE = YES; 340 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 341 | CODE_SIGN_IDENTITY = "iPhone Developer"; 342 | COPY_PHASE_STRIP = NO; 343 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 344 | ENABLE_NS_ASSERTIONS = NO; 345 | ENABLE_STRICT_OBJC_MSGSEND = YES; 346 | GCC_C_LANGUAGE_STANDARD = gnu11; 347 | GCC_NO_COMMON_BLOCKS = YES; 348 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 349 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 350 | GCC_WARN_UNDECLARED_SELECTOR = YES; 351 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 352 | GCC_WARN_UNUSED_FUNCTION = YES; 353 | GCC_WARN_UNUSED_VARIABLE = YES; 354 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 355 | MTL_ENABLE_DEBUG_INFO = NO; 356 | MTL_FAST_MATH = YES; 357 | SDKROOT = iphoneos; 358 | VALIDATE_PRODUCT = YES; 359 | }; 360 | name = Release; 361 | }; 362 | 91CA85E421F38B1000EC8765 /* Debug */ = { 363 | isa = XCBuildConfiguration; 364 | buildSettings = { 365 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 366 | CODE_SIGN_STYLE = Automatic; 367 | DEVELOPMENT_TEAM = C7UNH8293N; 368 | INFOPLIST_FILE = RoleModule/Info.plist; 369 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 370 | LD_RUNPATH_SEARCH_PATHS = ( 371 | "$(inherited)", 372 | "@executable_path/Frameworks", 373 | ); 374 | PRODUCT_BUNDLE_IDENTIFIER = ZHF.RoleModule; 375 | PRODUCT_NAME = "$(TARGET_NAME)"; 376 | TARGETED_DEVICE_FAMILY = "1,2"; 377 | }; 378 | name = Debug; 379 | }; 380 | 91CA85E521F38B1000EC8765 /* Release */ = { 381 | isa = XCBuildConfiguration; 382 | buildSettings = { 383 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 384 | CODE_SIGN_STYLE = Automatic; 385 | DEVELOPMENT_TEAM = C7UNH8293N; 386 | INFOPLIST_FILE = RoleModule/Info.plist; 387 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 388 | LD_RUNPATH_SEARCH_PATHS = ( 389 | "$(inherited)", 390 | "@executable_path/Frameworks", 391 | ); 392 | PRODUCT_BUNDLE_IDENTIFIER = ZHF.RoleModule; 393 | PRODUCT_NAME = "$(TARGET_NAME)"; 394 | TARGETED_DEVICE_FAMILY = "1,2"; 395 | }; 396 | name = Release; 397 | }; 398 | 91CA85E721F38B1000EC8765 /* Debug */ = { 399 | isa = XCBuildConfiguration; 400 | buildSettings = { 401 | BUNDLE_LOADER = "$(TEST_HOST)"; 402 | CODE_SIGN_STYLE = Automatic; 403 | DEVELOPMENT_TEAM = C7UNH8293N; 404 | INFOPLIST_FILE = RoleModuleTests/Info.plist; 405 | LD_RUNPATH_SEARCH_PATHS = ( 406 | "$(inherited)", 407 | "@executable_path/Frameworks", 408 | "@loader_path/Frameworks", 409 | ); 410 | PRODUCT_BUNDLE_IDENTIFIER = ZHF.RoleModuleTests; 411 | PRODUCT_NAME = "$(TARGET_NAME)"; 412 | TARGETED_DEVICE_FAMILY = "1,2"; 413 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RoleModule.app/RoleModule"; 414 | }; 415 | name = Debug; 416 | }; 417 | 91CA85E821F38B1000EC8765 /* Release */ = { 418 | isa = XCBuildConfiguration; 419 | buildSettings = { 420 | BUNDLE_LOADER = "$(TEST_HOST)"; 421 | CODE_SIGN_STYLE = Automatic; 422 | DEVELOPMENT_TEAM = C7UNH8293N; 423 | INFOPLIST_FILE = RoleModuleTests/Info.plist; 424 | LD_RUNPATH_SEARCH_PATHS = ( 425 | "$(inherited)", 426 | "@executable_path/Frameworks", 427 | "@loader_path/Frameworks", 428 | ); 429 | PRODUCT_BUNDLE_IDENTIFIER = ZHF.RoleModuleTests; 430 | PRODUCT_NAME = "$(TARGET_NAME)"; 431 | TARGETED_DEVICE_FAMILY = "1,2"; 432 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RoleModule.app/RoleModule"; 433 | }; 434 | name = Release; 435 | }; 436 | /* End XCBuildConfiguration section */ 437 | 438 | /* Begin XCConfigurationList section */ 439 | 91CA85BD21F38B0E00EC8765 /* Build configuration list for PBXProject "RoleModule" */ = { 440 | isa = XCConfigurationList; 441 | buildConfigurations = ( 442 | 91CA85E121F38B1000EC8765 /* Debug */, 443 | 91CA85E221F38B1000EC8765 /* Release */, 444 | ); 445 | defaultConfigurationIsVisible = 0; 446 | defaultConfigurationName = Release; 447 | }; 448 | 91CA85E321F38B1000EC8765 /* Build configuration list for PBXNativeTarget "RoleModule" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 91CA85E421F38B1000EC8765 /* Debug */, 452 | 91CA85E521F38B1000EC8765 /* Release */, 453 | ); 454 | defaultConfigurationIsVisible = 0; 455 | defaultConfigurationName = Release; 456 | }; 457 | 91CA85E621F38B1000EC8765 /* Build configuration list for PBXNativeTarget "RoleModuleTests" */ = { 458 | isa = XCConfigurationList; 459 | buildConfigurations = ( 460 | 91CA85E721F38B1000EC8765 /* Debug */, 461 | 91CA85E821F38B1000EC8765 /* Release */, 462 | ); 463 | defaultConfigurationIsVisible = 0; 464 | defaultConfigurationName = Release; 465 | }; 466 | /* End XCConfigurationList section */ 467 | }; 468 | rootObject = 91CA85BA21F38B0E00EC8765 /* Project object */; 469 | } 470 | -------------------------------------------------------------------------------- /RoleModule/RoleModule/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // RoleModule 4 | // 5 | // Created by zhoufei on 2019/1/20. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /RoleModule/RoleModule/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // RoleModule 4 | // 5 | // Created by zhoufei on 2019/1/20. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // 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. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // 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. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // 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. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // 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. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /RoleModule/RoleModule/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 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /RoleModule/RoleModule/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /RoleModule/RoleModule/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 | -------------------------------------------------------------------------------- /RoleModule/RoleModule/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 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /RoleModule/RoleModule/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LSApplicationQueriesSchemes 6 | 7 | engineer 8 | 9 | CFBundleDevelopmentRegion 10 | $(DEVELOPMENT_LANGUAGE) 11 | CFBundleExecutable 12 | $(EXECUTABLE_NAME) 13 | CFBundleIdentifier 14 | $(PRODUCT_BUNDLE_IDENTIFIER) 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | $(PRODUCT_NAME) 19 | CFBundlePackageType 20 | APPL 21 | CFBundleShortVersionString 22 | 1.0 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /RoleModule/RoleModule/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // RoleModule 4 | // 5 | // Created by zhoufei on 2019/1/20. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /RoleModule/RoleModule/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // RoleModule 4 | // 5 | // Created by zhoufei on 2019/1/20. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view, typically from a nib. 20 | } 21 | 22 | - (IBAction)openURL:(UIButton *)sender { 23 | //engineer://Mine/remoteAlertSportsResultVC?title=外部URL 24 | // NSURL *url = [NSURL URLWithString:@"engineer://Mine/remoteAlertSportsResultVC?title=外部URL"]; 25 | 26 | NSURL *url = [NSURL URLWithString:@"engineer://Mine/remoteAlertSportsResultVC?title=myURL"]; 27 | if ([[UIApplication sharedApplication] canOpenURL:url]) { 28 | [[UIApplication sharedApplication] openURL:url options:@{@"key":@"hello"} completionHandler:nil]; 29 | } else { 30 | NSLog(@"无法开启。。。"); 31 | } 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /RoleModule/RoleModule/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // RoleModule 4 | // 5 | // Created by zhoufei on 2019/1/20. 6 | // Copyright © 2019年 zhoufei. 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 | -------------------------------------------------------------------------------- /RoleModule/RoleModuleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LSApplicationQueriesSchemes 6 | 7 | engineer 8 | 9 | CFBundleDevelopmentRegion 10 | $(DEVELOPMENT_LANGUAGE) 11 | CFBundleExecutable 12 | $(EXECUTABLE_NAME) 13 | CFBundleIdentifier 14 | $(PRODUCT_BUNDLE_IDENTIFIER) 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | $(PRODUCT_NAME) 19 | CFBundlePackageType 20 | BNDL 21 | CFBundleShortVersionString 22 | 1.0 23 | CFBundleVersion 24 | 1 25 | 26 | 27 | -------------------------------------------------------------------------------- /RoleModule/RoleModuleTests/RoleModuleTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // RoleModuleTests.m 3 | // RoleModuleTests 4 | // 5 | // Created by zhoufei on 2019/1/20. 6 | // Copyright © 2019年 zhoufei. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface RoleModuleTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation RoleModuleTests 16 | 17 | - (void)setUp { 18 | // Put setup code here. This method is called before the invocation of each test method in the class. 19 | } 20 | 21 | - (void)tearDown { 22 | // Put teardown code here. This method is called after the invocation of each test method in the class. 23 | } 24 | 25 | - (void)testExample { 26 | // This is an example of a functional test case. 27 | // Use XCTAssert and related functions to verify your tests produce the correct results. 28 | } 29 | 30 | - (void)testPerformanceExample { 31 | // This is an example of a performance test case. 32 | [self measureBlock:^{ 33 | // Put the code you want to measure the time of here. 34 | }]; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /compile_commands.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /xcodebuild.log: -------------------------------------------------------------------------------- 1 | Build settings from command line: 2 | ONLY_ACTIVE_ARCH = NO 3 | TOOLCHAINS = com.apple.dt.toolchain.XcodeDefault 4 | 5 | note: Using new build system 6 | note: Planning build 7 | note: Constructing build description 8 | Build system information 9 | error: Engineer has conflicting provisioning settings. Engineer is automatically signed, but code signing identity iPhone Developer: 1174977961@qq.com (ZGN5K73BNB) has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor. (in target 'Engineer') 10 | 11 | --------------------------------------------------------------------------------