├── .gitignore ├── LICENSE ├── README.md └── XZMCoreNewFeatureDemo ├── XZMCoreNewFeatureDemo.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── XZMCoreNewFeatureDemo ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ └── NewFeature │ │ ├── Contents.json │ │ ├── btn_nor.imageset │ │ ├── Contents.json │ │ └── btn_nor.png │ │ ├── btn_pressed.imageset │ │ ├── Contents.json │ │ └── btn_pressed.png │ │ ├── f1.imageset │ │ ├── Contents.json │ │ └── f1@2x.png │ │ ├── f2.imageset │ │ ├── Contents.json │ │ └── f2@2x.png │ │ ├── f3.imageset │ │ ├── Contents.json │ │ └── f3@2x.png │ │ ├── new1.imageset │ │ ├── Contents.json │ │ └── new_feature_1_736h.png │ │ ├── new2.imageset │ │ ├── Contents.json │ │ └── new_feature_2_736h.png │ │ ├── new3.imageset │ │ ├── Contents.json │ │ └── new_feature_3_736h.png │ │ └── new4.imageset │ │ ├── Contents.json │ │ └── new_feature_4_736h.png ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist └── main.m ├── XZMCoreNewFeatureDemoTests ├── Info.plist └── XZMCoreNewFeatureDemoTests.m ├── XZMCoreNewFeatureDemoUITests ├── Info.plist └── XZMCoreNewFeatureDemoUITests.m ├── XZMCoreNewFeaturePlayerDemo ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist └── Supporting Files │ ├── main.m │ ├── 启动视频.mp4 │ └── 美团启动视频.m4v ├── XZMCoreNewFeaturePlayerDemoTests ├── Info.plist └── XZMCoreNewFeaturePlayerDemoTests.m ├── XZMCoreNewFeaturePlayerDemoUITests ├── Info.plist └── XZMCoreNewFeaturePlayerDemoUITests.m └── XZMCoreNewFeatureVC ├── Category ├── CALayer+Transition.h └── CALayer+Transition.m ├── XZMCoreNewFeatureVC.h └── XZMCoreNewFeatureVC.m /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | #Pods/ 27 | -------------------------------------------------------------------------------- /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 | 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # XZMCoreNewFeature 2 | ![(logo)](http://images.cnitblog.com/blog2015/497279/201505/051004492043385.png) 3 | ##易用的版本新特性框架(添加了版本的本地缓存功能,适应各种APP的新特性界面,集成只需几行代码,没有耦合度) 4 | 5 | #示例截图 6 | 7 | ##普通图片滚动新特性界面 8 | ![(logo)](http://7xkt3g.com1.z0.glb.clouddn.com/CoreNewFeatureputong.gif) 9 | ```objc 10 | 11 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 12 | 13 | UIWindow *window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 14 | 15 | self.window = window; 16 | 17 | //判断是否需要显示:(内部已经考虑版本及本地版本缓存) 18 | BOOL canShow = [XZMCoreNewFeatureVC canShowNewFeature]; 19 | 20 | //测试代码,正式版本应该删除 21 | canShow = YES; 22 | 23 | if(canShow){ // 初始化新特性界面 24 | window.rootViewController = [XZMCoreNewFeatureVC newFeatureVCWithImageNames:@[@"new1",@"new2",@"new3",@"new4"] enterBlock:^{ 25 | 26 | NSLog(@"进入主页面"); 27 | [self enter]; 28 | 29 | } configuration:^(UIButton *enterButton) { // 配置进入按钮 30 | [enterButton setBackgroundImage:[UIImage imageNamed:@"btn_nor"] forState:UIControlStateNormal]; 31 | [enterButton setBackgroundImage:[UIImage imageNamed:@"btn_pressed"] forState:UIControlStateHighlighted]; 32 | enterButton.bounds = CGRectMake(0, 0, 120, 40); 33 | enterButton.center = CGPointMake(KScreenW * 0.5, KScreenH* 0.85); 34 | }]; 35 | 36 | }else{ 37 | 38 | [self enter]; 39 | } 40 | 41 | [window makeKeyAndVisible]; 42 | 43 | return YES; 44 | } 45 | 46 | ``` 47 | 48 | ##视频新特性界面 49 | ###每天APP 50 | ![(logo)](http://7xkt3g.com1.z0.glb.clouddn.com/CoreNewFeatureshiping.gif) 51 | 52 | 53 | ###美团外卖APP 54 | ![(logo)](http://7xkt3g.com1.z0.glb.clouddn.com/CoreNewFeaturemeitushiping.gif) 55 | ```objc 56 | 57 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 58 | 59 | UIWindow *window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 60 | 61 | self.window = window; 62 | 63 | //判断是否需要显示:(内部已经考虑版本及本地版本缓存) 64 | BOOL canShow = [XZMCoreNewFeatureVC canShowNewFeature]; 65 | 66 | //测试代码,正式版本应该删除 67 | canShow = YES; 68 | 69 | if(canShow){ // 初始化新特性界面 70 | window.rootViewController = [XZMCoreNewFeatureVC newFeatureVCWithPlayerURL:[[NSBundle mainBundle] URLForResource:@"启动视频.mp4" withExtension:nil] enterBlock:^{ 71 | 72 | NSLog(@"进入主页面"); 73 | [self enter]; 74 | } configuration:^(AVPlayerLayer *playerLayer) { 75 | 76 | }]; 77 | 78 | }else{ 79 | 80 | [self enter]; 81 | } 82 | 83 | [window makeKeyAndVisible]; 84 | 85 | return YES; 86 | } 87 | 88 | ``` 89 | 90 | 91 | ## 特性说明: 92 | ###1.封装并简化了版本新特性启动视图! 93 | ###2.支持视频播放新特性 94 | ###3.添加了版本的本地缓存功能 95 | ###4.集成简单,使用方便,没有耦合度 96 | ###5.支持block回调。 97 | ###5.喜欢你就Star一下吧,感谢你的支持! 98 | ###6.本框架来自Charlin作者的框架上做了一些改动与增加新的内容,感谢Charlin作者! -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 04D488E21C0800AF00E9D6EB /* 美团启动视频.m4v in Resources */ = {isa = PBXBuildFile; fileRef = 04D488E11C0800AF00E9D6EB /* 美团启动视频.m4v */; settings = {ASSET_TAGS = (); }; }; 11 | 04DD7C521C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DD7C511C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests.m */; }; 12 | 04DD7C5D1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DD7C5C1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests.m */; }; 13 | 04DD7C741C06BB6B0011B721 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DD7C6A1C06BB6B0011B721 /* AppDelegate.m */; settings = {ASSET_TAGS = (); }; }; 14 | 04DD7C751C06BB6B0011B721 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 04DD7C6B1C06BB6B0011B721 /* Assets.xcassets */; settings = {ASSET_TAGS = (); }; }; 15 | 04DD7C761C06BB6B0011B721 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 04DD7C6C1C06BB6B0011B721 /* LaunchScreen.storyboard */; settings = {ASSET_TAGS = (); }; }; 16 | 04DD7C771C06BB6B0011B721 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 04DD7C6E1C06BB6B0011B721 /* Main.storyboard */; settings = {ASSET_TAGS = (); }; }; 17 | 04DD7C781C06BB6B0011B721 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 04DD7C701C06BB6B0011B721 /* Info.plist */; settings = {ASSET_TAGS = (); }; }; 18 | 04DD7C881C06D5D60011B721 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DD7C871C06D5D60011B721 /* AppDelegate.m */; settings = {ASSET_TAGS = (); }; }; 19 | 04DD7C8F1C06D6100011B721 /* CALayer+Transition.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DD7C8C1C06D6100011B721 /* CALayer+Transition.m */; settings = {ASSET_TAGS = (); }; }; 20 | 04DD7C901C06D6100011B721 /* CALayer+Transition.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DD7C8C1C06D6100011B721 /* CALayer+Transition.m */; settings = {ASSET_TAGS = (); }; }; 21 | 04DD7C911C06D6100011B721 /* XZMCoreNewFeatureVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DD7C8E1C06D6100011B721 /* XZMCoreNewFeatureVC.m */; settings = {ASSET_TAGS = (); }; }; 22 | 04DD7C921C06D6100011B721 /* XZMCoreNewFeatureVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DD7C8E1C06D6100011B721 /* XZMCoreNewFeatureVC.m */; settings = {ASSET_TAGS = (); }; }; 23 | 04DD7C961C06D6D80011B721 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DD7C941C06D6D80011B721 /* main.m */; settings = {ASSET_TAGS = (); }; }; 24 | 04DD7C971C06D6D80011B721 /* 启动视频.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = 04DD7C951C06D6D80011B721 /* 启动视频.mp4 */; settings = {ASSET_TAGS = (); }; }; 25 | AC6A993D1C062072005B8680 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = AC6A993C1C062072005B8680 /* main.m */; }; 26 | AC6A99461C062072005B8680 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AC6A99441C062072005B8680 /* Main.storyboard */; }; 27 | AC6A99481C062072005B8680 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AC6A99471C062072005B8680 /* Assets.xcassets */; }; 28 | AC6A994B1C062072005B8680 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AC6A99491C062072005B8680 /* LaunchScreen.storyboard */; }; 29 | AC6A99561C062072005B8680 /* XZMCoreNewFeatureDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = AC6A99551C062072005B8680 /* XZMCoreNewFeatureDemoTests.m */; }; 30 | AC6A99611C062072005B8680 /* XZMCoreNewFeatureDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = AC6A99601C062072005B8680 /* XZMCoreNewFeatureDemoUITests.m */; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXContainerItemProxy section */ 34 | 04DD7C4E1C06BB280011B721 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = AC6A99301C062072005B8680 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = 04DD7C341C06BB280011B721; 39 | remoteInfo = XZMCoreNewFeaturePlayerDemo; 40 | }; 41 | 04DD7C591C06BB280011B721 /* PBXContainerItemProxy */ = { 42 | isa = PBXContainerItemProxy; 43 | containerPortal = AC6A99301C062072005B8680 /* Project object */; 44 | proxyType = 1; 45 | remoteGlobalIDString = 04DD7C341C06BB280011B721; 46 | remoteInfo = XZMCoreNewFeaturePlayerDemo; 47 | }; 48 | AC6A99521C062072005B8680 /* PBXContainerItemProxy */ = { 49 | isa = PBXContainerItemProxy; 50 | containerPortal = AC6A99301C062072005B8680 /* Project object */; 51 | proxyType = 1; 52 | remoteGlobalIDString = AC6A99371C062072005B8680; 53 | remoteInfo = XZMCoreNewFeatureDemo; 54 | }; 55 | AC6A995D1C062072005B8680 /* PBXContainerItemProxy */ = { 56 | isa = PBXContainerItemProxy; 57 | containerPortal = AC6A99301C062072005B8680 /* Project object */; 58 | proxyType = 1; 59 | remoteGlobalIDString = AC6A99371C062072005B8680; 60 | remoteInfo = XZMCoreNewFeatureDemo; 61 | }; 62 | /* End PBXContainerItemProxy section */ 63 | 64 | /* Begin PBXFileReference section */ 65 | 04D488E11C0800AF00E9D6EB /* 美团启动视频.m4v */ = {isa = PBXFileReference; lastKnownFileType = file; path = "美团启动视频.m4v"; sourceTree = ""; }; 66 | 04DD7C351C06BB280011B721 /* XZMCoreNewFeaturePlayerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XZMCoreNewFeaturePlayerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | 04DD7C4D1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = XZMCoreNewFeaturePlayerDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 68 | 04DD7C511C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XZMCoreNewFeaturePlayerDemoTests.m; sourceTree = ""; }; 69 | 04DD7C531C06BB280011B721 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 70 | 04DD7C581C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = XZMCoreNewFeaturePlayerDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 71 | 04DD7C5C1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XZMCoreNewFeaturePlayerDemoUITests.m; sourceTree = ""; }; 72 | 04DD7C5E1C06BB280011B721 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 73 | 04DD7C691C06BB6B0011B721 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 74 | 04DD7C6A1C06BB6B0011B721 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 75 | 04DD7C6B1C06BB6B0011B721 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 76 | 04DD7C6D1C06BB6B0011B721 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 77 | 04DD7C6F1C06BB6B0011B721 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 78 | 04DD7C701C06BB6B0011B721 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 79 | 04DD7C861C06D5D60011B721 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 80 | 04DD7C871C06D5D60011B721 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 81 | 04DD7C8B1C06D6100011B721 /* CALayer+Transition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "CALayer+Transition.h"; sourceTree = ""; }; 82 | 04DD7C8C1C06D6100011B721 /* CALayer+Transition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "CALayer+Transition.m"; sourceTree = ""; }; 83 | 04DD7C8D1C06D6100011B721 /* XZMCoreNewFeatureVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XZMCoreNewFeatureVC.h; sourceTree = ""; }; 84 | 04DD7C8E1C06D6100011B721 /* XZMCoreNewFeatureVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XZMCoreNewFeatureVC.m; sourceTree = ""; }; 85 | 04DD7C941C06D6D80011B721 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 86 | 04DD7C951C06D6D80011B721 /* 启动视频.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = "启动视频.mp4"; sourceTree = ""; }; 87 | AC6A99381C062072005B8680 /* XZMCoreNewFeatureDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XZMCoreNewFeatureDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 88 | AC6A993C1C062072005B8680 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 89 | AC6A99451C062072005B8680 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 90 | AC6A99471C062072005B8680 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 91 | AC6A994A1C062072005B8680 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 92 | AC6A994C1C062072005B8680 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 93 | AC6A99511C062072005B8680 /* XZMCoreNewFeatureDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = XZMCoreNewFeatureDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 94 | AC6A99551C062072005B8680 /* XZMCoreNewFeatureDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XZMCoreNewFeatureDemoTests.m; sourceTree = ""; }; 95 | AC6A99571C062072005B8680 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 96 | AC6A995C1C062072005B8680 /* XZMCoreNewFeatureDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = XZMCoreNewFeatureDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 97 | AC6A99601C062072005B8680 /* XZMCoreNewFeatureDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XZMCoreNewFeatureDemoUITests.m; sourceTree = ""; }; 98 | AC6A99621C062072005B8680 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 99 | /* End PBXFileReference section */ 100 | 101 | /* Begin PBXFrameworksBuildPhase section */ 102 | 04DD7C321C06BB280011B721 /* Frameworks */ = { 103 | isa = PBXFrameworksBuildPhase; 104 | buildActionMask = 2147483647; 105 | files = ( 106 | ); 107 | runOnlyForDeploymentPostprocessing = 0; 108 | }; 109 | 04DD7C4A1C06BB280011B721 /* Frameworks */ = { 110 | isa = PBXFrameworksBuildPhase; 111 | buildActionMask = 2147483647; 112 | files = ( 113 | ); 114 | runOnlyForDeploymentPostprocessing = 0; 115 | }; 116 | 04DD7C551C06BB280011B721 /* Frameworks */ = { 117 | isa = PBXFrameworksBuildPhase; 118 | buildActionMask = 2147483647; 119 | files = ( 120 | ); 121 | runOnlyForDeploymentPostprocessing = 0; 122 | }; 123 | AC6A99351C062072005B8680 /* Frameworks */ = { 124 | isa = PBXFrameworksBuildPhase; 125 | buildActionMask = 2147483647; 126 | files = ( 127 | ); 128 | runOnlyForDeploymentPostprocessing = 0; 129 | }; 130 | AC6A994E1C062072005B8680 /* Frameworks */ = { 131 | isa = PBXFrameworksBuildPhase; 132 | buildActionMask = 2147483647; 133 | files = ( 134 | ); 135 | runOnlyForDeploymentPostprocessing = 0; 136 | }; 137 | AC6A99591C062072005B8680 /* Frameworks */ = { 138 | isa = PBXFrameworksBuildPhase; 139 | buildActionMask = 2147483647; 140 | files = ( 141 | ); 142 | runOnlyForDeploymentPostprocessing = 0; 143 | }; 144 | /* End PBXFrameworksBuildPhase section */ 145 | 146 | /* Begin PBXGroup section */ 147 | 04DD7C501C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 04DD7C511C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests.m */, 151 | 04DD7C531C06BB280011B721 /* Info.plist */, 152 | ); 153 | path = XZMCoreNewFeaturePlayerDemoTests; 154 | sourceTree = ""; 155 | }; 156 | 04DD7C5B1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 04DD7C5C1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests.m */, 160 | 04DD7C5E1C06BB280011B721 /* Info.plist */, 161 | ); 162 | path = XZMCoreNewFeaturePlayerDemoUITests; 163 | sourceTree = ""; 164 | }; 165 | 04DD7C681C06BB6B0011B721 /* XZMCoreNewFeaturePlayerDemo */ = { 166 | isa = PBXGroup; 167 | children = ( 168 | 04DD7C691C06BB6B0011B721 /* AppDelegate.h */, 169 | 04DD7C6A1C06BB6B0011B721 /* AppDelegate.m */, 170 | 04DD7C6B1C06BB6B0011B721 /* Assets.xcassets */, 171 | 04DD7C6C1C06BB6B0011B721 /* LaunchScreen.storyboard */, 172 | 04DD7C6E1C06BB6B0011B721 /* Main.storyboard */, 173 | 04DD7C701C06BB6B0011B721 /* Info.plist */, 174 | 04DD7C931C06D6D80011B721 /* Supporting Files */, 175 | ); 176 | path = XZMCoreNewFeaturePlayerDemo; 177 | sourceTree = ""; 178 | }; 179 | 04DD7C891C06D6100011B721 /* XZMCoreNewFeatureVC */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | 04DD7C8A1C06D6100011B721 /* Category */, 183 | 04DD7C8D1C06D6100011B721 /* XZMCoreNewFeatureVC.h */, 184 | 04DD7C8E1C06D6100011B721 /* XZMCoreNewFeatureVC.m */, 185 | ); 186 | path = XZMCoreNewFeatureVC; 187 | sourceTree = ""; 188 | }; 189 | 04DD7C8A1C06D6100011B721 /* Category */ = { 190 | isa = PBXGroup; 191 | children = ( 192 | 04DD7C8B1C06D6100011B721 /* CALayer+Transition.h */, 193 | 04DD7C8C1C06D6100011B721 /* CALayer+Transition.m */, 194 | ); 195 | path = Category; 196 | sourceTree = ""; 197 | }; 198 | 04DD7C931C06D6D80011B721 /* Supporting Files */ = { 199 | isa = PBXGroup; 200 | children = ( 201 | 04D488E11C0800AF00E9D6EB /* 美团启动视频.m4v */, 202 | 04DD7C941C06D6D80011B721 /* main.m */, 203 | 04DD7C951C06D6D80011B721 /* 启动视频.mp4 */, 204 | ); 205 | path = "Supporting Files"; 206 | sourceTree = ""; 207 | }; 208 | AC6A992F1C062072005B8680 = { 209 | isa = PBXGroup; 210 | children = ( 211 | 04DD7C891C06D6100011B721 /* XZMCoreNewFeatureVC */, 212 | 04DD7C681C06BB6B0011B721 /* XZMCoreNewFeaturePlayerDemo */, 213 | AC6A993A1C062072005B8680 /* XZMCoreNewFeatureDemo */, 214 | AC6A99541C062072005B8680 /* XZMCoreNewFeatureDemoTests */, 215 | AC6A995F1C062072005B8680 /* XZMCoreNewFeatureDemoUITests */, 216 | 04DD7C501C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests */, 217 | 04DD7C5B1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests */, 218 | AC6A99391C062072005B8680 /* Products */, 219 | ); 220 | sourceTree = ""; 221 | }; 222 | AC6A99391C062072005B8680 /* Products */ = { 223 | isa = PBXGroup; 224 | children = ( 225 | AC6A99381C062072005B8680 /* XZMCoreNewFeatureDemo.app */, 226 | AC6A99511C062072005B8680 /* XZMCoreNewFeatureDemoTests.xctest */, 227 | AC6A995C1C062072005B8680 /* XZMCoreNewFeatureDemoUITests.xctest */, 228 | 04DD7C351C06BB280011B721 /* XZMCoreNewFeaturePlayerDemo.app */, 229 | 04DD7C4D1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests.xctest */, 230 | 04DD7C581C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests.xctest */, 231 | ); 232 | name = Products; 233 | sourceTree = ""; 234 | }; 235 | AC6A993A1C062072005B8680 /* XZMCoreNewFeatureDemo */ = { 236 | isa = PBXGroup; 237 | children = ( 238 | 04DD7C861C06D5D60011B721 /* AppDelegate.h */, 239 | 04DD7C871C06D5D60011B721 /* AppDelegate.m */, 240 | AC6A99441C062072005B8680 /* Main.storyboard */, 241 | AC6A99471C062072005B8680 /* Assets.xcassets */, 242 | AC6A99491C062072005B8680 /* LaunchScreen.storyboard */, 243 | AC6A994C1C062072005B8680 /* Info.plist */, 244 | AC6A993B1C062072005B8680 /* Supporting Files */, 245 | ); 246 | path = XZMCoreNewFeatureDemo; 247 | sourceTree = ""; 248 | }; 249 | AC6A993B1C062072005B8680 /* Supporting Files */ = { 250 | isa = PBXGroup; 251 | children = ( 252 | AC6A993C1C062072005B8680 /* main.m */, 253 | ); 254 | name = "Supporting Files"; 255 | sourceTree = ""; 256 | }; 257 | AC6A99541C062072005B8680 /* XZMCoreNewFeatureDemoTests */ = { 258 | isa = PBXGroup; 259 | children = ( 260 | AC6A99551C062072005B8680 /* XZMCoreNewFeatureDemoTests.m */, 261 | AC6A99571C062072005B8680 /* Info.plist */, 262 | ); 263 | path = XZMCoreNewFeatureDemoTests; 264 | sourceTree = ""; 265 | }; 266 | AC6A995F1C062072005B8680 /* XZMCoreNewFeatureDemoUITests */ = { 267 | isa = PBXGroup; 268 | children = ( 269 | AC6A99601C062072005B8680 /* XZMCoreNewFeatureDemoUITests.m */, 270 | AC6A99621C062072005B8680 /* Info.plist */, 271 | ); 272 | path = XZMCoreNewFeatureDemoUITests; 273 | sourceTree = ""; 274 | }; 275 | /* End PBXGroup section */ 276 | 277 | /* Begin PBXNativeTarget section */ 278 | 04DD7C341C06BB280011B721 /* XZMCoreNewFeaturePlayerDemo */ = { 279 | isa = PBXNativeTarget; 280 | buildConfigurationList = 04DD7C5F1C06BB280011B721 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeaturePlayerDemo" */; 281 | buildPhases = ( 282 | 04DD7C311C06BB280011B721 /* Sources */, 283 | 04DD7C321C06BB280011B721 /* Frameworks */, 284 | 04DD7C331C06BB280011B721 /* Resources */, 285 | ); 286 | buildRules = ( 287 | ); 288 | dependencies = ( 289 | ); 290 | name = XZMCoreNewFeaturePlayerDemo; 291 | productName = XZMCoreNewFeaturePlayerDemo; 292 | productReference = 04DD7C351C06BB280011B721 /* XZMCoreNewFeaturePlayerDemo.app */; 293 | productType = "com.apple.product-type.application"; 294 | }; 295 | 04DD7C4C1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests */ = { 296 | isa = PBXNativeTarget; 297 | buildConfigurationList = 04DD7C621C06BB280011B721 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeaturePlayerDemoTests" */; 298 | buildPhases = ( 299 | 04DD7C491C06BB280011B721 /* Sources */, 300 | 04DD7C4A1C06BB280011B721 /* Frameworks */, 301 | 04DD7C4B1C06BB280011B721 /* Resources */, 302 | ); 303 | buildRules = ( 304 | ); 305 | dependencies = ( 306 | 04DD7C4F1C06BB280011B721 /* PBXTargetDependency */, 307 | ); 308 | name = XZMCoreNewFeaturePlayerDemoTests; 309 | productName = XZMCoreNewFeaturePlayerDemoTests; 310 | productReference = 04DD7C4D1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests.xctest */; 311 | productType = "com.apple.product-type.bundle.unit-test"; 312 | }; 313 | 04DD7C571C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests */ = { 314 | isa = PBXNativeTarget; 315 | buildConfigurationList = 04DD7C651C06BB280011B721 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeaturePlayerDemoUITests" */; 316 | buildPhases = ( 317 | 04DD7C541C06BB280011B721 /* Sources */, 318 | 04DD7C551C06BB280011B721 /* Frameworks */, 319 | 04DD7C561C06BB280011B721 /* Resources */, 320 | ); 321 | buildRules = ( 322 | ); 323 | dependencies = ( 324 | 04DD7C5A1C06BB280011B721 /* PBXTargetDependency */, 325 | ); 326 | name = XZMCoreNewFeaturePlayerDemoUITests; 327 | productName = XZMCoreNewFeaturePlayerDemoUITests; 328 | productReference = 04DD7C581C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests.xctest */; 329 | productType = "com.apple.product-type.bundle.ui-testing"; 330 | }; 331 | AC6A99371C062072005B8680 /* XZMCoreNewFeatureDemo */ = { 332 | isa = PBXNativeTarget; 333 | buildConfigurationList = AC6A99651C062072005B8680 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeatureDemo" */; 334 | buildPhases = ( 335 | AC6A99341C062072005B8680 /* Sources */, 336 | AC6A99351C062072005B8680 /* Frameworks */, 337 | AC6A99361C062072005B8680 /* Resources */, 338 | ); 339 | buildRules = ( 340 | ); 341 | dependencies = ( 342 | ); 343 | name = XZMCoreNewFeatureDemo; 344 | productName = XZMCoreNewFeatureDemo; 345 | productReference = AC6A99381C062072005B8680 /* XZMCoreNewFeatureDemo.app */; 346 | productType = "com.apple.product-type.application"; 347 | }; 348 | AC6A99501C062072005B8680 /* XZMCoreNewFeatureDemoTests */ = { 349 | isa = PBXNativeTarget; 350 | buildConfigurationList = AC6A99681C062072005B8680 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeatureDemoTests" */; 351 | buildPhases = ( 352 | AC6A994D1C062072005B8680 /* Sources */, 353 | AC6A994E1C062072005B8680 /* Frameworks */, 354 | AC6A994F1C062072005B8680 /* Resources */, 355 | ); 356 | buildRules = ( 357 | ); 358 | dependencies = ( 359 | AC6A99531C062072005B8680 /* PBXTargetDependency */, 360 | ); 361 | name = XZMCoreNewFeatureDemoTests; 362 | productName = XZMCoreNewFeatureDemoTests; 363 | productReference = AC6A99511C062072005B8680 /* XZMCoreNewFeatureDemoTests.xctest */; 364 | productType = "com.apple.product-type.bundle.unit-test"; 365 | }; 366 | AC6A995B1C062072005B8680 /* XZMCoreNewFeatureDemoUITests */ = { 367 | isa = PBXNativeTarget; 368 | buildConfigurationList = AC6A996B1C062072005B8680 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeatureDemoUITests" */; 369 | buildPhases = ( 370 | AC6A99581C062072005B8680 /* Sources */, 371 | AC6A99591C062072005B8680 /* Frameworks */, 372 | AC6A995A1C062072005B8680 /* Resources */, 373 | ); 374 | buildRules = ( 375 | ); 376 | dependencies = ( 377 | AC6A995E1C062072005B8680 /* PBXTargetDependency */, 378 | ); 379 | name = XZMCoreNewFeatureDemoUITests; 380 | productName = XZMCoreNewFeatureDemoUITests; 381 | productReference = AC6A995C1C062072005B8680 /* XZMCoreNewFeatureDemoUITests.xctest */; 382 | productType = "com.apple.product-type.bundle.ui-testing"; 383 | }; 384 | /* End PBXNativeTarget section */ 385 | 386 | /* Begin PBXProject section */ 387 | AC6A99301C062072005B8680 /* Project object */ = { 388 | isa = PBXProject; 389 | attributes = { 390 | LastUpgradeCheck = 0710; 391 | ORGANIZATIONNAME = com.xiaomage.new; 392 | TargetAttributes = { 393 | 04DD7C341C06BB280011B721 = { 394 | CreatedOnToolsVersion = 7.0.1; 395 | }; 396 | 04DD7C4C1C06BB280011B721 = { 397 | CreatedOnToolsVersion = 7.0.1; 398 | TestTargetID = 04DD7C341C06BB280011B721; 399 | }; 400 | 04DD7C571C06BB280011B721 = { 401 | CreatedOnToolsVersion = 7.0.1; 402 | TestTargetID = 04DD7C341C06BB280011B721; 403 | }; 404 | AC6A99371C062072005B8680 = { 405 | CreatedOnToolsVersion = 7.1.1; 406 | DevelopmentTeam = 8EB22N3DM2; 407 | }; 408 | AC6A99501C062072005B8680 = { 409 | CreatedOnToolsVersion = 7.1.1; 410 | DevelopmentTeam = 8EB22N3DM2; 411 | TestTargetID = AC6A99371C062072005B8680; 412 | }; 413 | AC6A995B1C062072005B8680 = { 414 | CreatedOnToolsVersion = 7.1.1; 415 | DevelopmentTeam = 8EB22N3DM2; 416 | TestTargetID = AC6A99371C062072005B8680; 417 | }; 418 | }; 419 | }; 420 | buildConfigurationList = AC6A99331C062072005B8680 /* Build configuration list for PBXProject "XZMCoreNewFeatureDemo" */; 421 | compatibilityVersion = "Xcode 3.2"; 422 | developmentRegion = English; 423 | hasScannedForEncodings = 0; 424 | knownRegions = ( 425 | en, 426 | Base, 427 | ); 428 | mainGroup = AC6A992F1C062072005B8680; 429 | productRefGroup = AC6A99391C062072005B8680 /* Products */; 430 | projectDirPath = ""; 431 | projectRoot = ""; 432 | targets = ( 433 | AC6A99371C062072005B8680 /* XZMCoreNewFeatureDemo */, 434 | AC6A99501C062072005B8680 /* XZMCoreNewFeatureDemoTests */, 435 | AC6A995B1C062072005B8680 /* XZMCoreNewFeatureDemoUITests */, 436 | 04DD7C341C06BB280011B721 /* XZMCoreNewFeaturePlayerDemo */, 437 | 04DD7C4C1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests */, 438 | 04DD7C571C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests */, 439 | ); 440 | }; 441 | /* End PBXProject section */ 442 | 443 | /* Begin PBXResourcesBuildPhase section */ 444 | 04DD7C331C06BB280011B721 /* Resources */ = { 445 | isa = PBXResourcesBuildPhase; 446 | buildActionMask = 2147483647; 447 | files = ( 448 | 04DD7C781C06BB6B0011B721 /* Info.plist in Resources */, 449 | 04DD7C771C06BB6B0011B721 /* Main.storyboard in Resources */, 450 | 04DD7C751C06BB6B0011B721 /* Assets.xcassets in Resources */, 451 | 04DD7C971C06D6D80011B721 /* 启动视频.mp4 in Resources */, 452 | 04DD7C761C06BB6B0011B721 /* LaunchScreen.storyboard in Resources */, 453 | 04D488E21C0800AF00E9D6EB /* 美团启动视频.m4v in Resources */, 454 | ); 455 | runOnlyForDeploymentPostprocessing = 0; 456 | }; 457 | 04DD7C4B1C06BB280011B721 /* Resources */ = { 458 | isa = PBXResourcesBuildPhase; 459 | buildActionMask = 2147483647; 460 | files = ( 461 | ); 462 | runOnlyForDeploymentPostprocessing = 0; 463 | }; 464 | 04DD7C561C06BB280011B721 /* Resources */ = { 465 | isa = PBXResourcesBuildPhase; 466 | buildActionMask = 2147483647; 467 | files = ( 468 | ); 469 | runOnlyForDeploymentPostprocessing = 0; 470 | }; 471 | AC6A99361C062072005B8680 /* Resources */ = { 472 | isa = PBXResourcesBuildPhase; 473 | buildActionMask = 2147483647; 474 | files = ( 475 | AC6A994B1C062072005B8680 /* LaunchScreen.storyboard in Resources */, 476 | AC6A99481C062072005B8680 /* Assets.xcassets in Resources */, 477 | AC6A99461C062072005B8680 /* Main.storyboard in Resources */, 478 | ); 479 | runOnlyForDeploymentPostprocessing = 0; 480 | }; 481 | AC6A994F1C062072005B8680 /* Resources */ = { 482 | isa = PBXResourcesBuildPhase; 483 | buildActionMask = 2147483647; 484 | files = ( 485 | ); 486 | runOnlyForDeploymentPostprocessing = 0; 487 | }; 488 | AC6A995A1C062072005B8680 /* Resources */ = { 489 | isa = PBXResourcesBuildPhase; 490 | buildActionMask = 2147483647; 491 | files = ( 492 | ); 493 | runOnlyForDeploymentPostprocessing = 0; 494 | }; 495 | /* End PBXResourcesBuildPhase section */ 496 | 497 | /* Begin PBXSourcesBuildPhase section */ 498 | 04DD7C311C06BB280011B721 /* Sources */ = { 499 | isa = PBXSourcesBuildPhase; 500 | buildActionMask = 2147483647; 501 | files = ( 502 | 04DD7C901C06D6100011B721 /* CALayer+Transition.m in Sources */, 503 | 04DD7C741C06BB6B0011B721 /* AppDelegate.m in Sources */, 504 | 04DD7C961C06D6D80011B721 /* main.m in Sources */, 505 | 04DD7C921C06D6100011B721 /* XZMCoreNewFeatureVC.m in Sources */, 506 | ); 507 | runOnlyForDeploymentPostprocessing = 0; 508 | }; 509 | 04DD7C491C06BB280011B721 /* Sources */ = { 510 | isa = PBXSourcesBuildPhase; 511 | buildActionMask = 2147483647; 512 | files = ( 513 | 04DD7C521C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoTests.m in Sources */, 514 | ); 515 | runOnlyForDeploymentPostprocessing = 0; 516 | }; 517 | 04DD7C541C06BB280011B721 /* Sources */ = { 518 | isa = PBXSourcesBuildPhase; 519 | buildActionMask = 2147483647; 520 | files = ( 521 | 04DD7C5D1C06BB280011B721 /* XZMCoreNewFeaturePlayerDemoUITests.m in Sources */, 522 | ); 523 | runOnlyForDeploymentPostprocessing = 0; 524 | }; 525 | AC6A99341C062072005B8680 /* Sources */ = { 526 | isa = PBXSourcesBuildPhase; 527 | buildActionMask = 2147483647; 528 | files = ( 529 | AC6A993D1C062072005B8680 /* main.m in Sources */, 530 | 04DD7C8F1C06D6100011B721 /* CALayer+Transition.m in Sources */, 531 | 04DD7C881C06D5D60011B721 /* AppDelegate.m in Sources */, 532 | 04DD7C911C06D6100011B721 /* XZMCoreNewFeatureVC.m in Sources */, 533 | ); 534 | runOnlyForDeploymentPostprocessing = 0; 535 | }; 536 | AC6A994D1C062072005B8680 /* Sources */ = { 537 | isa = PBXSourcesBuildPhase; 538 | buildActionMask = 2147483647; 539 | files = ( 540 | AC6A99561C062072005B8680 /* XZMCoreNewFeatureDemoTests.m in Sources */, 541 | ); 542 | runOnlyForDeploymentPostprocessing = 0; 543 | }; 544 | AC6A99581C062072005B8680 /* Sources */ = { 545 | isa = PBXSourcesBuildPhase; 546 | buildActionMask = 2147483647; 547 | files = ( 548 | AC6A99611C062072005B8680 /* XZMCoreNewFeatureDemoUITests.m in Sources */, 549 | ); 550 | runOnlyForDeploymentPostprocessing = 0; 551 | }; 552 | /* End PBXSourcesBuildPhase section */ 553 | 554 | /* Begin PBXTargetDependency section */ 555 | 04DD7C4F1C06BB280011B721 /* PBXTargetDependency */ = { 556 | isa = PBXTargetDependency; 557 | target = 04DD7C341C06BB280011B721 /* XZMCoreNewFeaturePlayerDemo */; 558 | targetProxy = 04DD7C4E1C06BB280011B721 /* PBXContainerItemProxy */; 559 | }; 560 | 04DD7C5A1C06BB280011B721 /* PBXTargetDependency */ = { 561 | isa = PBXTargetDependency; 562 | target = 04DD7C341C06BB280011B721 /* XZMCoreNewFeaturePlayerDemo */; 563 | targetProxy = 04DD7C591C06BB280011B721 /* PBXContainerItemProxy */; 564 | }; 565 | AC6A99531C062072005B8680 /* PBXTargetDependency */ = { 566 | isa = PBXTargetDependency; 567 | target = AC6A99371C062072005B8680 /* XZMCoreNewFeatureDemo */; 568 | targetProxy = AC6A99521C062072005B8680 /* PBXContainerItemProxy */; 569 | }; 570 | AC6A995E1C062072005B8680 /* PBXTargetDependency */ = { 571 | isa = PBXTargetDependency; 572 | target = AC6A99371C062072005B8680 /* XZMCoreNewFeatureDemo */; 573 | targetProxy = AC6A995D1C062072005B8680 /* PBXContainerItemProxy */; 574 | }; 575 | /* End PBXTargetDependency section */ 576 | 577 | /* Begin PBXVariantGroup section */ 578 | 04DD7C6C1C06BB6B0011B721 /* LaunchScreen.storyboard */ = { 579 | isa = PBXVariantGroup; 580 | children = ( 581 | 04DD7C6D1C06BB6B0011B721 /* Base */, 582 | ); 583 | name = LaunchScreen.storyboard; 584 | sourceTree = ""; 585 | }; 586 | 04DD7C6E1C06BB6B0011B721 /* Main.storyboard */ = { 587 | isa = PBXVariantGroup; 588 | children = ( 589 | 04DD7C6F1C06BB6B0011B721 /* Base */, 590 | ); 591 | name = Main.storyboard; 592 | sourceTree = ""; 593 | }; 594 | AC6A99441C062072005B8680 /* Main.storyboard */ = { 595 | isa = PBXVariantGroup; 596 | children = ( 597 | AC6A99451C062072005B8680 /* Base */, 598 | ); 599 | name = Main.storyboard; 600 | sourceTree = ""; 601 | }; 602 | AC6A99491C062072005B8680 /* LaunchScreen.storyboard */ = { 603 | isa = PBXVariantGroup; 604 | children = ( 605 | AC6A994A1C062072005B8680 /* Base */, 606 | ); 607 | name = LaunchScreen.storyboard; 608 | sourceTree = ""; 609 | }; 610 | /* End PBXVariantGroup section */ 611 | 612 | /* Begin XCBuildConfiguration section */ 613 | 04DD7C601C06BB280011B721 /* Debug */ = { 614 | isa = XCBuildConfiguration; 615 | buildSettings = { 616 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 617 | INFOPLIST_FILE = XZMCoreNewFeaturePlayerDemo/Info.plist; 618 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 619 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 620 | PRODUCT_BUNDLE_IDENTIFIER = com.wish.XZMCoreNewFeaturePlayerDemo; 621 | PRODUCT_NAME = "$(TARGET_NAME)"; 622 | TARGETED_DEVICE_FAMILY = "1,2"; 623 | }; 624 | name = Debug; 625 | }; 626 | 04DD7C611C06BB280011B721 /* Release */ = { 627 | isa = XCBuildConfiguration; 628 | buildSettings = { 629 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 630 | INFOPLIST_FILE = XZMCoreNewFeaturePlayerDemo/Info.plist; 631 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 632 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 633 | PRODUCT_BUNDLE_IDENTIFIER = com.wish.XZMCoreNewFeaturePlayerDemo; 634 | PRODUCT_NAME = "$(TARGET_NAME)"; 635 | TARGETED_DEVICE_FAMILY = "1,2"; 636 | }; 637 | name = Release; 638 | }; 639 | 04DD7C631C06BB280011B721 /* Debug */ = { 640 | isa = XCBuildConfiguration; 641 | buildSettings = { 642 | BUNDLE_LOADER = "$(TEST_HOST)"; 643 | INFOPLIST_FILE = XZMCoreNewFeaturePlayerDemoTests/Info.plist; 644 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 645 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 646 | PRODUCT_BUNDLE_IDENTIFIER = com.wish.XZMCoreNewFeaturePlayerDemoTests; 647 | PRODUCT_NAME = "$(TARGET_NAME)"; 648 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/XZMCoreNewFeaturePlayerDemo.app/XZMCoreNewFeaturePlayerDemo"; 649 | }; 650 | name = Debug; 651 | }; 652 | 04DD7C641C06BB280011B721 /* Release */ = { 653 | isa = XCBuildConfiguration; 654 | buildSettings = { 655 | BUNDLE_LOADER = "$(TEST_HOST)"; 656 | INFOPLIST_FILE = XZMCoreNewFeaturePlayerDemoTests/Info.plist; 657 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 658 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 659 | PRODUCT_BUNDLE_IDENTIFIER = com.wish.XZMCoreNewFeaturePlayerDemoTests; 660 | PRODUCT_NAME = "$(TARGET_NAME)"; 661 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/XZMCoreNewFeaturePlayerDemo.app/XZMCoreNewFeaturePlayerDemo"; 662 | }; 663 | name = Release; 664 | }; 665 | 04DD7C661C06BB280011B721 /* Debug */ = { 666 | isa = XCBuildConfiguration; 667 | buildSettings = { 668 | INFOPLIST_FILE = XZMCoreNewFeaturePlayerDemoUITests/Info.plist; 669 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 670 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 671 | PRODUCT_BUNDLE_IDENTIFIER = com.wish.XZMCoreNewFeaturePlayerDemoUITests; 672 | PRODUCT_NAME = "$(TARGET_NAME)"; 673 | TEST_TARGET_NAME = XZMCoreNewFeaturePlayerDemo; 674 | USES_XCTRUNNER = YES; 675 | }; 676 | name = Debug; 677 | }; 678 | 04DD7C671C06BB280011B721 /* Release */ = { 679 | isa = XCBuildConfiguration; 680 | buildSettings = { 681 | INFOPLIST_FILE = XZMCoreNewFeaturePlayerDemoUITests/Info.plist; 682 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 683 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 684 | PRODUCT_BUNDLE_IDENTIFIER = com.wish.XZMCoreNewFeaturePlayerDemoUITests; 685 | PRODUCT_NAME = "$(TARGET_NAME)"; 686 | TEST_TARGET_NAME = XZMCoreNewFeaturePlayerDemo; 687 | USES_XCTRUNNER = YES; 688 | }; 689 | name = Release; 690 | }; 691 | AC6A99631C062072005B8680 /* Debug */ = { 692 | isa = XCBuildConfiguration; 693 | buildSettings = { 694 | ALWAYS_SEARCH_USER_PATHS = NO; 695 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 696 | CLANG_CXX_LIBRARY = "libc++"; 697 | CLANG_ENABLE_MODULES = YES; 698 | CLANG_ENABLE_OBJC_ARC = YES; 699 | CLANG_WARN_BOOL_CONVERSION = YES; 700 | CLANG_WARN_CONSTANT_CONVERSION = YES; 701 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 702 | CLANG_WARN_EMPTY_BODY = YES; 703 | CLANG_WARN_ENUM_CONVERSION = YES; 704 | CLANG_WARN_INT_CONVERSION = YES; 705 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 706 | CLANG_WARN_UNREACHABLE_CODE = YES; 707 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 708 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 709 | COPY_PHASE_STRIP = NO; 710 | DEBUG_INFORMATION_FORMAT = dwarf; 711 | ENABLE_STRICT_OBJC_MSGSEND = YES; 712 | ENABLE_TESTABILITY = YES; 713 | GCC_C_LANGUAGE_STANDARD = gnu99; 714 | GCC_DYNAMIC_NO_PIC = NO; 715 | GCC_NO_COMMON_BLOCKS = YES; 716 | GCC_OPTIMIZATION_LEVEL = 0; 717 | GCC_PREPROCESSOR_DEFINITIONS = ( 718 | "DEBUG=1", 719 | "$(inherited)", 720 | ); 721 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 722 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 723 | GCC_WARN_UNDECLARED_SELECTOR = YES; 724 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 725 | GCC_WARN_UNUSED_FUNCTION = YES; 726 | GCC_WARN_UNUSED_VARIABLE = YES; 727 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 728 | MTL_ENABLE_DEBUG_INFO = YES; 729 | ONLY_ACTIVE_ARCH = YES; 730 | SDKROOT = iphoneos; 731 | }; 732 | name = Debug; 733 | }; 734 | AC6A99641C062072005B8680 /* Release */ = { 735 | isa = XCBuildConfiguration; 736 | buildSettings = { 737 | ALWAYS_SEARCH_USER_PATHS = NO; 738 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 739 | CLANG_CXX_LIBRARY = "libc++"; 740 | CLANG_ENABLE_MODULES = YES; 741 | CLANG_ENABLE_OBJC_ARC = YES; 742 | CLANG_WARN_BOOL_CONVERSION = YES; 743 | CLANG_WARN_CONSTANT_CONVERSION = YES; 744 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 745 | CLANG_WARN_EMPTY_BODY = YES; 746 | CLANG_WARN_ENUM_CONVERSION = YES; 747 | CLANG_WARN_INT_CONVERSION = YES; 748 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 749 | CLANG_WARN_UNREACHABLE_CODE = YES; 750 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 751 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 752 | COPY_PHASE_STRIP = NO; 753 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 754 | ENABLE_NS_ASSERTIONS = NO; 755 | ENABLE_STRICT_OBJC_MSGSEND = YES; 756 | GCC_C_LANGUAGE_STANDARD = gnu99; 757 | GCC_NO_COMMON_BLOCKS = YES; 758 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 759 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 760 | GCC_WARN_UNDECLARED_SELECTOR = YES; 761 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 762 | GCC_WARN_UNUSED_FUNCTION = YES; 763 | GCC_WARN_UNUSED_VARIABLE = YES; 764 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 765 | MTL_ENABLE_DEBUG_INFO = NO; 766 | SDKROOT = iphoneos; 767 | VALIDATE_PRODUCT = YES; 768 | }; 769 | name = Release; 770 | }; 771 | AC6A99661C062072005B8680 /* Debug */ = { 772 | isa = XCBuildConfiguration; 773 | buildSettings = { 774 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 775 | INFOPLIST_FILE = XZMCoreNewFeatureDemo/Info.plist; 776 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 777 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 778 | PRODUCT_BUNDLE_IDENTIFIER = com.xiaomage.meishubo.XZMCoreNewFeatureDemo; 779 | PRODUCT_NAME = "$(TARGET_NAME)"; 780 | }; 781 | name = Debug; 782 | }; 783 | AC6A99671C062072005B8680 /* Release */ = { 784 | isa = XCBuildConfiguration; 785 | buildSettings = { 786 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 787 | INFOPLIST_FILE = XZMCoreNewFeatureDemo/Info.plist; 788 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 789 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 790 | PRODUCT_BUNDLE_IDENTIFIER = com.xiaomage.meishubo.XZMCoreNewFeatureDemo; 791 | PRODUCT_NAME = "$(TARGET_NAME)"; 792 | }; 793 | name = Release; 794 | }; 795 | AC6A99691C062072005B8680 /* Debug */ = { 796 | isa = XCBuildConfiguration; 797 | buildSettings = { 798 | BUNDLE_LOADER = "$(TEST_HOST)"; 799 | INFOPLIST_FILE = XZMCoreNewFeatureDemoTests/Info.plist; 800 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 801 | PRODUCT_BUNDLE_IDENTIFIER = com.xiaomage.meishubo.XZMCoreNewFeatureDemoTests; 802 | PRODUCT_NAME = "$(TARGET_NAME)"; 803 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/XZMCoreNewFeatureDemo.app/XZMCoreNewFeatureDemo"; 804 | }; 805 | name = Debug; 806 | }; 807 | AC6A996A1C062072005B8680 /* Release */ = { 808 | isa = XCBuildConfiguration; 809 | buildSettings = { 810 | BUNDLE_LOADER = "$(TEST_HOST)"; 811 | INFOPLIST_FILE = XZMCoreNewFeatureDemoTests/Info.plist; 812 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 813 | PRODUCT_BUNDLE_IDENTIFIER = com.xiaomage.meishubo.XZMCoreNewFeatureDemoTests; 814 | PRODUCT_NAME = "$(TARGET_NAME)"; 815 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/XZMCoreNewFeatureDemo.app/XZMCoreNewFeatureDemo"; 816 | }; 817 | name = Release; 818 | }; 819 | AC6A996C1C062072005B8680 /* Debug */ = { 820 | isa = XCBuildConfiguration; 821 | buildSettings = { 822 | INFOPLIST_FILE = XZMCoreNewFeatureDemoUITests/Info.plist; 823 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 824 | PRODUCT_BUNDLE_IDENTIFIER = com.xiaomage.meishubo.XZMCoreNewFeatureDemoUITests; 825 | PRODUCT_NAME = "$(TARGET_NAME)"; 826 | TEST_TARGET_NAME = XZMCoreNewFeatureDemo; 827 | USES_XCTRUNNER = YES; 828 | }; 829 | name = Debug; 830 | }; 831 | AC6A996D1C062072005B8680 /* Release */ = { 832 | isa = XCBuildConfiguration; 833 | buildSettings = { 834 | INFOPLIST_FILE = XZMCoreNewFeatureDemoUITests/Info.plist; 835 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 836 | PRODUCT_BUNDLE_IDENTIFIER = com.xiaomage.meishubo.XZMCoreNewFeatureDemoUITests; 837 | PRODUCT_NAME = "$(TARGET_NAME)"; 838 | TEST_TARGET_NAME = XZMCoreNewFeatureDemo; 839 | USES_XCTRUNNER = YES; 840 | }; 841 | name = Release; 842 | }; 843 | /* End XCBuildConfiguration section */ 844 | 845 | /* Begin XCConfigurationList section */ 846 | 04DD7C5F1C06BB280011B721 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeaturePlayerDemo" */ = { 847 | isa = XCConfigurationList; 848 | buildConfigurations = ( 849 | 04DD7C601C06BB280011B721 /* Debug */, 850 | 04DD7C611C06BB280011B721 /* Release */, 851 | ); 852 | defaultConfigurationIsVisible = 0; 853 | defaultConfigurationName = Release; 854 | }; 855 | 04DD7C621C06BB280011B721 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeaturePlayerDemoTests" */ = { 856 | isa = XCConfigurationList; 857 | buildConfigurations = ( 858 | 04DD7C631C06BB280011B721 /* Debug */, 859 | 04DD7C641C06BB280011B721 /* Release */, 860 | ); 861 | defaultConfigurationIsVisible = 0; 862 | defaultConfigurationName = Release; 863 | }; 864 | 04DD7C651C06BB280011B721 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeaturePlayerDemoUITests" */ = { 865 | isa = XCConfigurationList; 866 | buildConfigurations = ( 867 | 04DD7C661C06BB280011B721 /* Debug */, 868 | 04DD7C671C06BB280011B721 /* Release */, 869 | ); 870 | defaultConfigurationIsVisible = 0; 871 | defaultConfigurationName = Release; 872 | }; 873 | AC6A99331C062072005B8680 /* Build configuration list for PBXProject "XZMCoreNewFeatureDemo" */ = { 874 | isa = XCConfigurationList; 875 | buildConfigurations = ( 876 | AC6A99631C062072005B8680 /* Debug */, 877 | AC6A99641C062072005B8680 /* Release */, 878 | ); 879 | defaultConfigurationIsVisible = 0; 880 | defaultConfigurationName = Release; 881 | }; 882 | AC6A99651C062072005B8680 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeatureDemo" */ = { 883 | isa = XCConfigurationList; 884 | buildConfigurations = ( 885 | AC6A99661C062072005B8680 /* Debug */, 886 | AC6A99671C062072005B8680 /* Release */, 887 | ); 888 | defaultConfigurationIsVisible = 0; 889 | defaultConfigurationName = Release; 890 | }; 891 | AC6A99681C062072005B8680 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeatureDemoTests" */ = { 892 | isa = XCConfigurationList; 893 | buildConfigurations = ( 894 | AC6A99691C062072005B8680 /* Debug */, 895 | AC6A996A1C062072005B8680 /* Release */, 896 | ); 897 | defaultConfigurationIsVisible = 0; 898 | defaultConfigurationName = Release; 899 | }; 900 | AC6A996B1C062072005B8680 /* Build configuration list for PBXNativeTarget "XZMCoreNewFeatureDemoUITests" */ = { 901 | isa = XCConfigurationList; 902 | buildConfigurations = ( 903 | AC6A996C1C062072005B8680 /* Debug */, 904 | AC6A996D1C062072005B8680 /* Release */, 905 | ); 906 | defaultConfigurationIsVisible = 0; 907 | defaultConfigurationName = Release; 908 | }; 909 | /* End XCConfigurationList section */ 910 | }; 911 | rootObject = AC6A99301C062072005B8680 /* Project object */; 912 | } 913 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // XZMCoreNewFeatureDemo 4 | // 5 | // Created by 谢忠敏 on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. 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 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // XZMCoreNewFeatureDemo 4 | // 5 | // Created by 谢忠敏 on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "XZMCoreNewFeatureVC.h" 11 | #import "CALayer+Transition.h" 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 | 24 | self.window = window; 25 | 26 | //判断是否需要显示:(内部已经考虑版本及本地版本缓存) 27 | BOOL canShow = [XZMCoreNewFeatureVC canShowNewFeature]; 28 | 29 | //测试代码,正式版本应该删除 30 | canShow = YES; 31 | 32 | if(canShow){ // 初始化新特性界面 33 | window.rootViewController = [XZMCoreNewFeatureVC newFeatureVCWithImageNames:@[@"new1",@"new2",@"new3",@"new4"] enterBlock:^{ 34 | 35 | NSLog(@"进入主页面"); 36 | [self enter]; 37 | 38 | } configuration:^(UIButton *enterButton) { // 配置进入按钮 39 | [enterButton setBackgroundImage:[UIImage imageNamed:@"btn_nor"] forState:UIControlStateNormal]; 40 | [enterButton setBackgroundImage:[UIImage imageNamed:@"btn_pressed"] forState:UIControlStateHighlighted]; 41 | enterButton.bounds = CGRectMake(0, 0, 120, 40); 42 | enterButton.center = CGPointMake(KScreenW * 0.5, KScreenH* 0.85); 43 | }]; 44 | 45 | }else{ 46 | 47 | [self enter]; 48 | } 49 | 50 | [window makeKeyAndVisible]; 51 | 52 | return YES; 53 | } 54 | 55 | 56 | 57 | -(void)enter{ 58 | 59 | UIViewController *vc = [[UIViewController alloc] init]; 60 | vc.view.backgroundColor = [UIColor brownColor]; 61 | self.window.rootViewController = vc; 62 | [self.window.layer transitionWithAnimType:TransitionAnimTypeRamdom subType:TransitionSubtypesFromRamdom curve:TransitionCurveRamdom duration:2.0f]; 63 | } 64 | 65 | - (void)applicationWillResignActive:(UIApplication *)application { 66 | // 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. 67 | // 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. 68 | } 69 | 70 | - (void)applicationDidEnterBackground:(UIApplication *)application { 71 | // 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. 72 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 73 | } 74 | 75 | - (void)applicationWillEnterForeground:(UIApplication *)application { 76 | // 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. 77 | } 78 | 79 | - (void)applicationDidBecomeActive:(UIApplication *)application { 80 | // 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. 81 | } 82 | 83 | - (void)applicationWillTerminate:(UIApplication *)application { 84 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 85 | } 86 | 87 | @end 88 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/btn_nor.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "btn_nor.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/btn_nor.imageset/btn_nor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/btn_nor.imageset/btn_nor.png -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/btn_pressed.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "btn_pressed.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/btn_pressed.imageset/btn_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/btn_pressed.imageset/btn_pressed.png -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/f1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "f1@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 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/f1.imageset/f1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/f1.imageset/f1@2x.png -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/f2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "f2@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 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/f2.imageset/f2@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/f2.imageset/f2@2x.png -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/f3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "f3@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 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/f3.imageset/f3@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/f3.imageset/f3@2x.png -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "new_feature_1_736h.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new1.imageset/new_feature_1_736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new1.imageset/new_feature_1_736h.png -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "new_feature_2_736h.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new2.imageset/new_feature_2_736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new2.imageset/new_feature_2_736h.png -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "new_feature_3_736h.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new3.imageset/new_feature_3_736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new3.imageset/new_feature_3_736h.png -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new4.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "new_feature_4_736h.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new4.imageset/new_feature_4_736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Assets.xcassets/NewFeature/new4.imageset/new_feature_4_736h.png -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/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 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // XZMCoreNewFeatureDemo 4 | // 5 | // Created by 谢忠敏 on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. 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 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemoTests/XZMCoreNewFeatureDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // XZMCoreNewFeatureDemoTests.m 3 | // XZMCoreNewFeatureDemoTests 4 | // 5 | // Created by 谢忠敏 on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XZMCoreNewFeatureDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation XZMCoreNewFeatureDemoTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemoUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureDemoUITests/XZMCoreNewFeatureDemoUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // XZMCoreNewFeatureDemoUITests.m 3 | // XZMCoreNewFeatureDemoUITests 4 | // 5 | // Created by 谢忠敏 on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XZMCoreNewFeatureDemoUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation XZMCoreNewFeatureDemoUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // XZMCoreNewFeaturePlayerDemo 4 | // 5 | // Created by Mac_Nelson on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. 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 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // XZMCoreNewFeaturePlayerDemo 4 | // 5 | // Created by Mac_Nelson on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "XZMCoreNewFeatureVC.h" 11 | #import "CALayer+Transition.h" 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 | 24 | self.window = window; 25 | 26 | //判断是否需要显示:(内部已经考虑版本及本地版本缓存) 27 | BOOL canShow = [XZMCoreNewFeatureVC canShowNewFeature]; 28 | 29 | //测试代码,正式版本应该删除 30 | canShow = YES; 31 | 32 | if(canShow){ // 初始化新特性界面 33 | window.rootViewController = [XZMCoreNewFeatureVC newFeatureVCWithPlayerURL:[[NSBundle mainBundle] URLForResource:@"美团启动视频.m4v" withExtension:nil] enterBlock:^{ 34 | 35 | NSLog(@"进入主页面"); 36 | [self enter]; 37 | } configuration:^(AVPlayerLayer *playerLayer) { 38 | 39 | }]; 40 | 41 | }else{ 42 | 43 | [self enter]; 44 | } 45 | 46 | [window makeKeyAndVisible]; 47 | 48 | return YES; 49 | } 50 | 51 | 52 | // 进入主页面 53 | -(void)enter{ 54 | 55 | UIViewController *vc = [[UIViewController alloc] init]; 56 | vc.view.backgroundColor = [UIColor brownColor]; 57 | self.window.rootViewController = vc; 58 | [self.window.layer transitionWithAnimType:TransitionAnimTypeRamdom subType:TransitionSubtypesFromRamdom curve:TransitionCurveRamdom duration:2.0f]; 59 | } 60 | 61 | - (void)applicationWillResignActive:(UIApplication *)application { 62 | // 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. 63 | // 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. 64 | } 65 | 66 | - (void)applicationDidEnterBackground:(UIApplication *)application { 67 | // 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. 68 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 69 | } 70 | 71 | - (void)applicationWillEnterForeground:(UIApplication *)application { 72 | // 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. 73 | } 74 | 75 | - (void)applicationDidBecomeActive:(UIApplication *)application { 76 | // 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. 77 | } 78 | 79 | - (void)applicationWillTerminate:(UIApplication *)application { 80 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 81 | } 82 | 83 | @end 84 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/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 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/Supporting Files/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // XZMCoreNewFeaturePlayerDemo 4 | // 5 | // Created by Mac_Nelson on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. 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 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/Supporting Files/启动视频.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/Supporting Files/启动视频.mp4 -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/Supporting Files/美团启动视频.m4v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiezhongmin/XZMCoreNewFeature/638dae6097d66e01aeb425fec77226f2dd896a1a/XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemo/Supporting Files/美团启动视频.m4v -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemoTests/XZMCoreNewFeaturePlayerDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // XZMCoreNewFeaturePlayerDemoTests.m 3 | // XZMCoreNewFeaturePlayerDemoTests 4 | // 5 | // Created by Mac_Nelson on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XZMCoreNewFeaturePlayerDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation XZMCoreNewFeaturePlayerDemoTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemoUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeaturePlayerDemoUITests/XZMCoreNewFeaturePlayerDemoUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // XZMCoreNewFeaturePlayerDemoUITests.m 3 | // XZMCoreNewFeaturePlayerDemoUITests 4 | // 5 | // Created by Mac_Nelson on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XZMCoreNewFeaturePlayerDemoUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation XZMCoreNewFeaturePlayerDemoUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureVC/Category/CALayer+Transition.h: -------------------------------------------------------------------------------- 1 | // 2 | // CALayer+Transition.h 3 | // Carpenter 4 | 5 | 6 | #import 7 | 8 | @interface CALayer (Transition) 9 | 10 | /* 11 | * 动画类型 12 | */ 13 | typedef enum{ 14 | 15 | //水波 16 | TransitionAnimTypeRippleEffect=0, 17 | 18 | //吸走 19 | TransitionAnimTypeSuckEffect, 20 | 21 | //翻开书本 22 | TransitionAnimTypePageCurl, 23 | 24 | //正反翻转 25 | TransitionAnimTypeOglFlip, 26 | 27 | //正方体 28 | TransitionAnimTypeCube, 29 | 30 | //push推开 31 | TransitionAnimTypeReveal, 32 | 33 | //合上书本 34 | TransitionAnimTypePageUnCurl, 35 | 36 | //随机 37 | TransitionAnimTypeRamdom, 38 | 39 | }TransitionAnimType; 40 | 41 | 42 | 43 | 44 | /* 45 | * 动画方向 46 | */ 47 | typedef enum{ 48 | 49 | //从上 50 | TransitionSubtypesFromTop=0, 51 | 52 | //从左 53 | TransitionSubtypesFromLeft, 54 | 55 | //从下 56 | TransitionSubtypesFromBotoom, 57 | 58 | //从右 59 | TransitionSubtypesFromRight, 60 | 61 | //随机 62 | TransitionSubtypesFromRamdom, 63 | 64 | }TransitionSubType; 65 | 66 | 67 | /* 68 | * 动画曲线 69 | */ 70 | typedef enum { 71 | 72 | //默认 73 | TransitionCurveDefault, 74 | 75 | //缓进 76 | TransitionCurveEaseIn, 77 | 78 | //缓出 79 | TransitionCurveEaseOut, 80 | 81 | //缓进缓出 82 | TransitionCurveEaseInEaseOut, 83 | 84 | //线性 85 | TransitionCurveLinear, 86 | 87 | //随机 88 | TransitionCurveRamdom, 89 | 90 | }TransitionCurve; 91 | 92 | 93 | 94 | 95 | /** 96 | * 转场动画 97 | * 98 | * @param animType 转场动画类型 99 | * @param subtype 转动动画方向 100 | * @param curve 转动动画曲线 101 | * @param duration 转动动画时长 102 | * 103 | * @return 转场动画实例 104 | */ 105 | -(CATransition *)transitionWithAnimType:(TransitionAnimType)animType subType:(TransitionSubType)subType curve:(TransitionCurve)curve duration:(CGFloat)duration; 106 | 107 | @end 108 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureVC/Category/CALayer+Transition.m: -------------------------------------------------------------------------------- 1 | // 2 | // CALayer+Transition.m 3 | // Carpenter 4 | 5 | 6 | #import "CALayer+Transition.h" 7 | 8 | @implementation CALayer (Transition) 9 | 10 | 11 | /** 12 | * 转场动画 13 | * 14 | * @param animType 转场动画类型 15 | * @param subtype 转动动画方向 16 | * @param curve 转动动画曲线 17 | * @param duration 转动动画时长 18 | * 19 | * @return 转场动画实例 20 | */ 21 | -(CATransition *)transitionWithAnimType:(TransitionAnimType)animType subType:(TransitionSubType)subType curve:(TransitionCurve)curve duration:(CGFloat)duration{ 22 | 23 | NSString *key = @"transition"; 24 | 25 | if([self animationForKey:key]!=nil){ 26 | [self removeAnimationForKey:key]; 27 | } 28 | 29 | 30 | CATransition *transition=[CATransition animation]; 31 | 32 | //动画时长 33 | transition.duration=duration; 34 | 35 | //动画类型 36 | transition.type=[self animaTypeWithTransitionType:animType]; 37 | 38 | //动画方向 39 | transition.subtype=[self animaSubtype:subType]; 40 | 41 | //缓动函数 42 | transition.timingFunction=[CAMediaTimingFunction functionWithName:[self curve:curve]]; 43 | 44 | //完成动画删除 45 | transition.removedOnCompletion = YES; 46 | 47 | [self addAnimation:transition forKey:key]; 48 | 49 | return transition; 50 | } 51 | 52 | 53 | 54 | /* 55 | * 返回动画曲线 56 | */ 57 | -(NSString *)curve:(TransitionCurve)curve{ 58 | 59 | //曲线数组 60 | NSArray *funcNames=@[kCAMediaTimingFunctionDefault,kCAMediaTimingFunctionEaseIn,kCAMediaTimingFunctionEaseInEaseOut,kCAMediaTimingFunctionEaseOut,kCAMediaTimingFunctionLinear]; 61 | 62 | return [self objFromArray:funcNames index:curve isRamdom:(TransitionCurveRamdom == curve)]; 63 | } 64 | 65 | 66 | 67 | /* 68 | * 返回动画方向 69 | */ 70 | -(NSString *)animaSubtype:(TransitionSubType)subType{ 71 | 72 | //设置转场动画的方向 73 | NSArray *subtypes=@[kCATransitionFromTop,kCATransitionFromLeft,kCATransitionFromBottom,kCATransitionFromRight]; 74 | 75 | return [self objFromArray:subtypes index:subType isRamdom:(TransitionSubtypesFromRamdom == subType)]; 76 | } 77 | 78 | 79 | 80 | 81 | /* 82 | * 返回动画类型 83 | */ 84 | -(NSString *)animaTypeWithTransitionType:(TransitionAnimType)type{ 85 | 86 | //设置转场动画的类型 87 | NSArray *animArray=@[@"rippleEffect",@"suckEffect",@"pageCurl",@"oglFlip",@"cube",@"reveal",@"pageUnCurl"]; 88 | 89 | return [self objFromArray:animArray index:type isRamdom:(TransitionAnimTypeRamdom == type)]; 90 | } 91 | 92 | 93 | 94 | /* 95 | * 统一从数据返回对象 96 | */ 97 | -(id)objFromArray:(NSArray *)array index:(NSUInteger)index isRamdom:(BOOL)isRamdom{ 98 | 99 | NSUInteger count = array.count; 100 | 101 | NSUInteger i = isRamdom?arc4random_uniform((u_int32_t)count) : index; 102 | 103 | return array[i]; 104 | } 105 | 106 | 107 | 108 | @end 109 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureVC/XZMCoreNewFeatureVC.h: -------------------------------------------------------------------------------- 1 | // 2 | // XZMCoreNewFeatureVC.h 3 | // XZMCoreNewFeatureDemo 4 | // 5 | // Created by 谢忠敏 on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #define KScreenW [UIScreen mainScreen].bounds.size.width 12 | #define KScreenH [UIScreen mainScreen].bounds.size.height 13 | 14 | @interface XZMCoreNewFeatureVC : UIViewController 15 | 16 | /** 进入首页按钮 */ 17 | @property (nonatomic,weak) UIButton *enterButton; 18 | 19 | /** 创建普通滚动图片新特性界面 20 | * @param imageNames 图片名数组 21 | * @param enterBlock 进入主页面的回调 22 | * @param configurationBlock 配置回调 23 | */ 24 | + (instancetype)newFeatureVCWithImageNames:(NSArray *)imageNames enterBlock:(void(^)())enterBlock configuration:(void (^)(UIButton *enterButton))configurationBlock; 25 | 26 | 27 | /** 创建视频新特性界面 28 | * @param URL 视频路径 29 | * @param enterBlock 进入主页面的回调 30 | * @param configurationBlock 配置回调 31 | */ 32 | + (instancetype)newFeatureVCWithPlayerURL:(NSURL *)URL enterBlock:(void(^)())enterBlock configuration:(void (^)(AVPlayerLayer *playerLayer))configurationBlock; 33 | 34 | /* 35 | * 是否应该显示版本新特性界面 36 | */ 37 | + (BOOL)canShowNewFeature; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /XZMCoreNewFeatureDemo/XZMCoreNewFeatureVC/XZMCoreNewFeatureVC.m: -------------------------------------------------------------------------------- 1 | // 2 | // XZMCoreNewFeatureVC.m 3 | // XZMCoreNewFeatureDemo 4 | // 5 | // Created by 谢忠敏 on 15/11/26. 6 | // Copyright © 2015年 com.xiaomage.new. All rights reserved. 7 | // 8 | 9 | #import "XZMCoreNewFeatureVC.h" 10 | 11 | NSString *const NewFeatureVersionKey = @"NewFeatureVersionKey"; 12 | 13 | @interface CoreArchive : NSObject 14 | /** 15 | * 保存普通字符串 16 | */ 17 | + (void)setStr:(NSString *)str key:(NSString *)key; 18 | 19 | /** 20 | * 读取 21 | */ 22 | + (NSString *)strForKey:(NSString *)key; 23 | 24 | @end 25 | 26 | 27 | @interface NewFeatureScrollView : UIScrollView 28 | 29 | @end 30 | 31 | @implementation CoreArchive 32 | // 保存普通对象 33 | + (void)setStr:(NSString *)str key:(NSString *)key{ 34 | 35 | // 获取preference 36 | NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; 37 | 38 | // 保存 39 | [defaults setObject:str forKey:key]; 40 | 41 | // 立即同步 42 | [defaults synchronize]; 43 | 44 | } 45 | 46 | // 读取 47 | + (NSString *)strForKey:(NSString *)key{ 48 | 49 | //获取preference 50 | NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; 51 | 52 | //读取 53 | NSString *str=(NSString *)[defaults objectForKey:key]; 54 | 55 | return str; 56 | 57 | } 58 | 59 | @end 60 | 61 | 62 | @implementation NewFeatureScrollView 63 | 64 | - (instancetype)initWithFrame:(CGRect)frame{ 65 | 66 | self = [super initWithFrame:frame]; 67 | 68 | if(self){ 69 | 70 | //视图准备 71 | [self viewPrepare]; 72 | } 73 | 74 | return self; 75 | } 76 | 77 | 78 | - (id)initWithCoder:(NSCoder *)aDecoder{ 79 | 80 | self=[super initWithCoder:aDecoder]; 81 | 82 | if(self){ 83 | 84 | //视图准备 85 | [self viewPrepare]; 86 | } 87 | 88 | return self; 89 | } 90 | 91 | 92 | // 视图准备 93 | - (void)viewPrepare{ 94 | 95 | //开启分页 96 | self.pagingEnabled = YES; 97 | 98 | //隐藏各种条 99 | self.showsHorizontalScrollIndicator = NO; 100 | self.showsVerticalScrollIndicator = NO; 101 | 102 | //取消boundce 103 | self.bounces = NO; 104 | } 105 | 106 | - (void)layoutSubviews{ 107 | 108 | [super layoutSubviews]; 109 | 110 | __block CGRect frame = self.bounds; 111 | 112 | __block NSUInteger count = 0; 113 | 114 | [self.subviews enumerateObjectsUsingBlock:^(UIView *subView, NSUInteger idx, BOOL *stop) { 115 | 116 | if([subView isKindOfClass:[UIImageView class]]){ 117 | 118 | CGFloat frameX = frame.size.width * idx; 119 | 120 | frame.origin.x = frameX; 121 | 122 | subView.frame = frame; 123 | 124 | count ++; 125 | } 126 | }]; 127 | 128 | self.contentSize = CGSizeMake(frame.size.width * count, 0); 129 | } 130 | 131 | @end 132 | 133 | 134 | @interface XZMCoreNewFeatureVC () 135 | 136 | /** 模型数组 */ 137 | @property (nonatomic,strong) NSArray *imageNames; 138 | 139 | /** scrollView */ 140 | @property (nonatomic,weak) NewFeatureScrollView *scrollView; 141 | 142 | /** 播放器 */ 143 | @property (nonatomic, strong) AVPlayerLayer *playerLayer; 144 | 145 | @property (nonatomic,copy) void(^enterBlock)(); 146 | 147 | @end 148 | 149 | @implementation XZMCoreNewFeatureVC 150 | 151 | // 初始化滚动图片新特性界面 152 | + (instancetype)newFeatureVCWithImageNames:(NSArray *)imageNames enterBlock:(void(^)())enterBlock configuration:(void (^)(UIButton *enterButton))configurationBlock 153 | { 154 | XZMCoreNewFeatureVC *newFeatureVC = [[XZMCoreNewFeatureVC alloc] init]; 155 | 156 | newFeatureVC.imageNames = imageNames; 157 | 158 | //控制器准备 159 | configurationBlock([newFeatureVC vcPrepare]); 160 | 161 | //显示了版本新特性,保存版本号 162 | [newFeatureVC saveVersion]; 163 | 164 | //记录block 165 | newFeatureVC.enterBlock =enterBlock; 166 | 167 | return newFeatureVC; 168 | } 169 | 170 | // 初始化视频新特性界面 171 | + (instancetype)newFeatureVCWithPlayerURL:(NSURL *)URL enterBlock:(void(^)())enterBlock configuration:(void (^)(AVPlayerLayer *playerLayer))configurationBlock 172 | { 173 | XZMCoreNewFeatureVC *newFeatureVC = [[XZMCoreNewFeatureVC alloc] init]; 174 | 175 | // 初始化播放器 176 | configurationBlock([newFeatureVC playerWith:URL]); 177 | 178 | // 监听通知 179 | [newFeatureVC setUpNotification]; 180 | 181 | //显示了版本新特性,保存版本号 182 | [newFeatureVC saveVersion]; 183 | 184 | //记录block 185 | newFeatureVC.enterBlock = enterBlock; 186 | 187 | return newFeatureVC; 188 | } 189 | 190 | // 监听通知 191 | - (void)setUpNotification 192 | { 193 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dismiss) name:AVPlayerItemDidPlayToEndTimeNotification object:nil]; 194 | } 195 | 196 | - (void)dealloc 197 | { 198 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 199 | [self.playerLayer.player.currentItem cancelPendingSeeks]; 200 | [self.playerLayer.player.currentItem.asset cancelLoading]; 201 | } 202 | 203 | #pragma mark - 初始化播放器 204 | - (AVPlayerLayer *)playerWith:(NSURL *)URL 205 | { 206 | if (_playerLayer == nil) { 207 | 208 | // 2.创建AVPlayerItem 209 | AVPlayerItem *item = [AVPlayerItem playerItemWithURL:URL]; 210 | 211 | // 3.创建AVPlayer 212 | AVPlayer * player = [AVPlayer playerWithPlayerItem:item]; 213 | 214 | // 4.添加AVPlayerLayer 215 | AVPlayerLayer *playerLayer = [AVPlayerLayer playerLayerWithPlayer:player]; 216 | 217 | playerLayer.frame = self.view.bounds; 218 | [self.view.layer addSublayer:playerLayer]; 219 | [player play]; 220 | } 221 | return _playerLayer; 222 | } 223 | 224 | // 显示了版本新特性,保存版本号 225 | - (void)saveVersion{ 226 | 227 | //系统直接读取的版本号 228 | NSString *versionValueStringForSystemNow=[[NSBundle mainBundle].infoDictionary valueForKey:(NSString *)kCFBundleVersionKey]; 229 | 230 | //保存版本号 231 | [CoreArchive setStr:versionValueStringForSystemNow key:NewFeatureVersionKey]; 232 | 233 | } 234 | 235 | 236 | // 控制器准备 237 | - (UIButton *)vcPrepare{ 238 | 239 | //添加scrollView 240 | NewFeatureScrollView *scrollView = [[NewFeatureScrollView alloc] init]; 241 | _scrollView = scrollView; 242 | 243 | //添加 244 | [self.view addSubview:scrollView]; 245 | 246 | //添加约束 247 | scrollView.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height); 248 | 249 | //添加图片 250 | return [self imageViewsPrepare]; 251 | 252 | 253 | } 254 | 255 | // 添加图片 256 | - (UIButton *)imageViewsPrepare{ 257 | 258 | [self.imageNames enumerateObjectsUsingBlock:^(NSString *imageName, NSUInteger idx, BOOL *stop) { 259 | 260 | UIImageView *imageV = [[UIImageView alloc] init]; 261 | 262 | //设置图片 263 | imageV.image = [UIImage imageNamed:imageName]; 264 | 265 | //记录tag 266 | imageV.tag = idx; 267 | 268 | [_scrollView addSubview:imageV]; 269 | 270 | if(idx == self.imageNames.count -1) { 271 | 272 | // 添加按钮 273 | _enterButton = [self setUpEnterButton:imageV]; 274 | 275 | } 276 | 277 | }]; 278 | 279 | return _enterButton; 280 | } 281 | 282 | /** 初始化按钮 */ 283 | - (UIButton *)setUpEnterButton:(UIImageView *)imageView 284 | { 285 | imageView.userInteractionEnabled = YES; 286 | UIButton *enterButton = [UIButton buttonWithType:UIButtonTypeCustom]; 287 | [imageView addSubview:enterButton]; 288 | [enterButton addTarget:self action:@selector(chickEnterButton) forControlEvents:UIControlEventTouchUpInside]; 289 | return enterButton; 290 | } 291 | 292 | - (void)gestureAction:(UITapGestureRecognizer *)tap{ 293 | 294 | UIView *tapView = tap.view; 295 | 296 | //禁用 297 | tapView.userInteractionEnabled = NO; 298 | 299 | if(UIGestureRecognizerStateEnded == tap.state) [self dismiss]; 300 | } 301 | 302 | - (void)chickEnterButton 303 | { 304 | [self dismiss]; 305 | } 306 | 307 | - (void)dismiss{ 308 | 309 | if(self.enterBlock != nil) _enterBlock(); 310 | } 311 | 312 | // 是否应该显示版本新特性页面 313 | + (BOOL)canShowNewFeature{ 314 | 315 | //系统直接读取的版本号 316 | NSString *versionValueStringForSystemNow=[[NSBundle mainBundle].infoDictionary valueForKey:(NSString *)kCFBundleVersionKey]; 317 | 318 | //读取本地版本号 319 | NSString *versionLocal = [CoreArchive strForKey:NewFeatureVersionKey]; 320 | 321 | if(versionLocal!=nil && [versionValueStringForSystemNow isEqualToString:versionLocal]){//说明有本地版本记录,且和当前系统版本一致 322 | 323 | return NO; 324 | 325 | }else{ // 无本地版本记录或本地版本记录与当前系统版本不一致 326 | 327 | //保存 328 | [CoreArchive setStr:versionValueStringForSystemNow key:NewFeatureVersionKey]; 329 | 330 | return YES; 331 | } 332 | } 333 | 334 | @end 335 | --------------------------------------------------------------------------------