├── README.md ├── animateTransition-OC ├── animateTransition │ ├── Assets.xcassets │ │ ├── Contents.json │ │ ├── IMG_1.imageset │ │ │ ├── IMG_0032@2x.JPG │ │ │ └── Contents.json │ │ ├── IMG_2.imageset │ │ │ ├── IMG_0034@2x.JPG │ │ │ └── Contents.json │ │ ├── IMG_3.imageset │ │ │ ├── IMG_0443@2x.JPG │ │ │ └── Contents.json │ │ ├── IMG_4.imageset │ │ │ ├── IMG_0448@2x.JPG │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── ViewController.h │ ├── AppDelegate.h │ ├── SecondViewController.h │ ├── CustomAnimateTransitionPush.h │ ├── main.m │ ├── CustomAnimateTransitionPop.h │ ├── Info.plist │ ├── Base.lproj │ │ └── LaunchScreen.storyboard │ ├── AppDelegate.m │ ├── CustomAnimateTransitionPop.m │ ├── CustomAnimateTransitionPush.m │ ├── SecondViewController.m │ └── ViewController.m ├── animateTransition.xcodeproj │ ├── xcuserdata │ │ └── zhanming.xcuserdatad │ │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── animateTransition.xcscheme │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── zhanming.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── project.pbxproj ├── animateTransitionTests │ ├── Info.plist │ └── animateTransitionTests.m └── animateTransitionUITests │ ├── Info.plist │ └── animateTransitionUITests.m └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | # animateTransitionPush 2 | animateTransitionPush 3 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition.xcodeproj/xcuserdata/zhanming.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/Assets.xcassets/IMG_1.imageset/IMG_0032@2x.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhanming0601/animateTransitionPush/HEAD/animateTransition-OC/animateTransition/Assets.xcassets/IMG_1.imageset/IMG_0032@2x.JPG -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/Assets.xcassets/IMG_2.imageset/IMG_0034@2x.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhanming0601/animateTransitionPush/HEAD/animateTransition-OC/animateTransition/Assets.xcassets/IMG_2.imageset/IMG_0034@2x.JPG -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/Assets.xcassets/IMG_3.imageset/IMG_0443@2x.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhanming0601/animateTransitionPush/HEAD/animateTransition-OC/animateTransition/Assets.xcassets/IMG_3.imageset/IMG_0443@2x.JPG -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/Assets.xcassets/IMG_4.imageset/IMG_0448@2x.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhanming0601/animateTransitionPush/HEAD/animateTransition-OC/animateTransition/Assets.xcassets/IMG_4.imageset/IMG_0448@2x.JPG -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition.xcodeproj/project.xcworkspace/xcuserdata/zhanming.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhanming0601/animateTransitionPush/HEAD/animateTransition-OC/animateTransition.xcodeproj/project.xcworkspace/xcuserdata/zhanming.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // animateTransition 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | @property(strong,nonatomic)UIButton *button; 13 | 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // animateTransition 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. 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 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/SecondViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecondViewController.h 3 | // animateTransition 4 | // 5 | // Created by zhanming on 16/6/1. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SecondViewController : UIViewController 12 | @property(nonatomic,strong)UIImage * myImage; 13 | @end 14 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/CustomAnimateTransitionPush.h: -------------------------------------------------------------------------------- 1 | // 2 | // CustomAnimateTransitionPush.h 3 | // animateTransition 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | @interface CustomAnimateTransitionPush : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // animateTransition 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. 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 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/Assets.xcassets/IMG_1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "IMG_0032@2x.JPG", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/Assets.xcassets/IMG_2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "IMG_0034@2x.JPG", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/Assets.xcassets/IMG_3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "IMG_0443@2x.JPG", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/Assets.xcassets/IMG_4.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "IMG_0448@2x.JPG", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/CustomAnimateTransitionPop.h: -------------------------------------------------------------------------------- 1 | // 2 | // CustomAnimateTransitionPop.h 3 | // animateTransition 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | @interface CustomAnimateTransitionPop : NSObject 12 | @property(nonatomic,strong)idtransitionContext; 13 | @end 14 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/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 | } -------------------------------------------------------------------------------- /animateTransition-OC/animateTransitionTests/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 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransitionUITests/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 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition.xcodeproj/xcuserdata/zhanming.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | animateTransition.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | DC9D35CE1CF734FF00C47152 16 | 17 | primary 18 | 19 | 20 | DC9D35E71CF734FF00C47152 21 | 22 | primary 23 | 24 | 25 | DC9D35F21CF734FF00C47152 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 zhanming0601 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransitionTests/animateTransitionTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // animateTransitionTests.m 3 | // animateTransitionTests 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface animateTransitionTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation animateTransitionTests 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 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/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 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransitionUITests/animateTransitionUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // animateTransitionUITests.m 3 | // animateTransitionUITests 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface animateTransitionUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation animateTransitionUITests 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 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/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 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // animateTransition 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "ViewController.h" 11 | 12 | @interface AppDelegate () 13 | 14 | @end 15 | 16 | @implementation AppDelegate 17 | 18 | 19 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 20 | // Override point for customization after application launch. 21 | 22 | ViewController *main=[ViewController new]; 23 | 24 | UINavigationController *nav=[[UINavigationController alloc] initWithRootViewController:main]; 25 | self.window=[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; 26 | self.window.backgroundColor=[UIColor whiteColor]; 27 | 28 | 29 | self.window.rootViewController=nav; 30 | 31 | [self.window makeKeyAndVisible]; 32 | 33 | return YES; 34 | } 35 | 36 | - (void)applicationWillResignActive:(UIApplication *)application { 37 | // 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. 38 | // 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. 39 | } 40 | 41 | - (void)applicationDidEnterBackground:(UIApplication *)application { 42 | // 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. 43 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 44 | } 45 | 46 | - (void)applicationWillEnterForeground:(UIApplication *)application { 47 | // 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. 48 | } 49 | 50 | - (void)applicationDidBecomeActive:(UIApplication *)application { 51 | // 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. 52 | } 53 | 54 | - (void)applicationWillTerminate:(UIApplication *)application { 55 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 56 | } 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/CustomAnimateTransitionPop.m: -------------------------------------------------------------------------------- 1 | // 2 | // CustomAnimateTransitionPop.m 3 | // animateTransition 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import "CustomAnimateTransitionPop.h" 10 | #import "ViewController.h" 11 | #import "SecondViewController.h" 12 | @implementation CustomAnimateTransitionPop 13 | - (NSTimeInterval)transitionDuration:(id )transitionContext{ 14 | return 0.7f; 15 | } 16 | 17 | - (void)animateTransition:(id )transitionContext{ 18 | 19 | self.transitionContext = transitionContext; 20 | 21 | SecondViewController *fromVC = (SecondViewController *)[transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; 22 | ViewController *toVC = (ViewController *)[transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; 23 | UIView *containerView = [transitionContext containerView]; 24 | UIButton *button = toVC.button; 25 | 26 | 27 | [containerView addSubview:toVC.view]; 28 | [containerView addSubview:fromVC.view]; 29 | 30 | 31 | UIBezierPath *finalPath = [UIBezierPath bezierPathWithOvalInRect:button.frame]; 32 | 33 | CGPoint finalPoint; 34 | 35 | //判断触发点在哪个象限 36 | if(button.frame.origin.x > (toVC.view.bounds.size.width / 2)){ 37 | if (button.frame.origin.y < (toVC.view.bounds.size.height / 2)) { 38 | //第一象限 39 | finalPoint = CGPointMake(button.center.x - 0, button.center.y - CGRectGetMaxY(toVC.view.bounds)+30); 40 | }else{ 41 | //第四象限 42 | finalPoint = CGPointMake(button.center.x - 0, button.center.y - 0); 43 | } 44 | }else{ 45 | if (button.frame.origin.y < (toVC.view.bounds.size.height / 2)) { 46 | //第二象限 47 | finalPoint = CGPointMake(button.center.x - CGRectGetMaxX(toVC.view.bounds), button.center.y - CGRectGetMaxY(toVC.view.bounds)+30); 48 | }else{ 49 | //第三象限 50 | finalPoint = CGPointMake(button.center.x - CGRectGetMaxX(toVC.view.bounds), button.center.y - 0); 51 | } 52 | } 53 | 54 | CGFloat radius = sqrt(finalPoint.x * finalPoint.x + finalPoint.y * finalPoint.y); 55 | UIBezierPath *startPath = [UIBezierPath bezierPathWithOvalInRect:CGRectInset(button.frame, -radius, -radius)]; 56 | 57 | CAShapeLayer *maskLayer = [CAShapeLayer layer]; 58 | maskLayer.path = finalPath.CGPath; 59 | fromVC.view.layer.mask = maskLayer; 60 | 61 | CABasicAnimation *pingAnimation = [CABasicAnimation animationWithKeyPath:@"path"]; 62 | pingAnimation.fromValue = (__bridge id)(startPath.CGPath); 63 | pingAnimation.toValue = (__bridge id)(finalPath.CGPath); 64 | pingAnimation.duration = [self transitionDuration:transitionContext]; 65 | pingAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; 66 | 67 | pingAnimation.delegate = self; 68 | 69 | [maskLayer addAnimation:pingAnimation forKey:@"pingInvert"]; 70 | 71 | } 72 | 73 | - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{ 74 | 75 | [self.transitionContext completeTransition:![self.transitionContext transitionWasCancelled]]; 76 | [self.transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey].view.layer.mask = nil; 77 | [self.transitionContext viewControllerForKey:UITransitionContextToViewControllerKey].view.layer.mask = nil; 78 | } 79 | @end 80 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/CustomAnimateTransitionPush.m: -------------------------------------------------------------------------------- 1 | // 2 | // CustomAnimateTransitionPush.m 3 | // animateTransition 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import "CustomAnimateTransitionPush.h" 10 | #import "ViewController.h" 11 | #import "SecondViewController.h" 12 | 13 | @interface CustomAnimateTransitionPush() 14 | @property (nonatomic,strong)id transitionContext; 15 | @end 16 | 17 | @implementation CustomAnimateTransitionPush 18 | 19 | 20 | -(NSTimeInterval)transitionDuration:(id)transitionContext 21 | { 22 | return 0.7; 23 | } 24 | 25 | -(void)animateTransition:(id)transitionContext 26 | { 27 | 28 | 29 | self.transitionContext=transitionContext; 30 | 31 | // 获取动画的源控制器和目标控制器 32 | ViewController * fromVC = (ViewController *)[transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; 33 | SecondViewController *toVC = (SecondViewController *)[transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; 34 | 35 | //获取容器视图 36 | UIView *contView = [transitionContext containerView]; 37 | 38 | UIButton *button = fromVC.button; 39 | 40 | UIBezierPath *maskStartBP = [UIBezierPath bezierPathWithOvalInRect:button.frame]; 41 | // 都添加到container中。注意顺序 42 | [contView addSubview:fromVC.view]; 43 | [contView addSubview:toVC.view]; 44 | 45 | 46 | //*******************************下面代码就是自定义动画了大家把想要实现的动画写在下面即可**********************// 47 | 48 | //创建两个圆形的 UIBezierPath 实例;一个是 button 的 size ,另外一个则拥有足够覆盖屏幕的半径。最终的动画则是在这两个贝塞尔路径之间进行的 49 | CGPoint finalPoint; 50 | //判断触发点在那个象限 51 | if(button.frame.origin.x > (toVC.view.bounds.size.width / 2)){ 52 | if (button.frame.origin.y < (toVC.view.bounds.size.height / 2)) { 53 | //第一象限 54 | finalPoint = CGPointMake(button.center.x - 0, button.center.y - CGRectGetMaxY(toVC.view.bounds)+30); 55 | }else{ 56 | //第四象限 57 | finalPoint = CGPointMake(button.center.x - 0, button.center.y - 0); 58 | } 59 | }else{ 60 | if (button.frame.origin.y < (toVC.view.bounds.size.height / 2)) { 61 | //第二象限 62 | finalPoint = CGPointMake(button.center.x - CGRectGetMaxX(toVC.view.bounds), button.center.y - CGRectGetMaxY(toVC.view.bounds)+30); 63 | }else{ 64 | //第三象限 65 | finalPoint = CGPointMake(button.center.x - CGRectGetMaxX(toVC.view.bounds), button.center.y - 0); 66 | } 67 | } 68 | 69 | 70 | CGFloat radius = sqrt((finalPoint.x * finalPoint.x) + (finalPoint.y * finalPoint.y)); 71 | UIBezierPath *maskFinalBP = [UIBezierPath bezierPathWithOvalInRect:CGRectInset(button.frame, -radius, -radius)]; 72 | 73 | //创建一个 CAShapeLayer 来负责展示圆形遮盖 74 | 75 | CAShapeLayer *maskLayer = [CAShapeLayer layer]; 76 | maskLayer.path = maskFinalBP.CGPath; //将它的 path 指定为最终的 path 来避免在动画完成后会回弹 77 | toVC.view.layer.mask = maskLayer; 78 | 79 | CABasicAnimation *maskLayerAnimation = [CABasicAnimation animationWithKeyPath:@"path"]; 80 | maskLayerAnimation.fromValue = (__bridge id)(maskStartBP.CGPath); 81 | maskLayerAnimation.toValue = (__bridge id)((maskFinalBP.CGPath)); 82 | maskLayerAnimation.duration = [self transitionDuration:transitionContext]; 83 | maskLayerAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; 84 | maskLayerAnimation.delegate = self; 85 | 86 | [maskLayer addAnimation:maskLayerAnimation forKey:@"path"]; 87 | 88 | 89 | //*******************************上面代码就是自定义动画了大家把想要实现的动画写在上面即可**********************// 90 | } 91 | 92 | #pragma mark - CABasicAnimation的Delegate 93 | 94 | - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{ 95 | 96 | //告诉 iOS 这个 transition 完成 97 | [self.transitionContext completeTransition:YES]; 98 | //清除 fromVC 的 mask 99 | [self.transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey].view.layer.mask = nil; 100 | [self.transitionContext viewControllerForKey:UITransitionContextToViewControllerKey].view.layer.mask = nil; 101 | } 102 | 103 | @end 104 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition.xcodeproj/xcuserdata/zhanming.xcuserdatad/xcschemes/animateTransition.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/SecondViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SecondViewController.m 3 | // animateTransition 4 | // 5 | // Created by zhanming on 16/6/1. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import "SecondViewController.h" 10 | #import "CustomAnimateTransitionPop.h" 11 | 12 | @interface SecondViewController () 13 | @property(nonatomic,strong)UIPercentDrivenInteractiveTransition *interactiveTransition; 14 | 15 | @end 16 | 17 | @implementation SecondViewController 18 | 19 | 20 | //-(UIPercentDrivenInteractiveTransition *)interactiveTransition 21 | //{ 22 | // if(_interactiveTransition==nil) 23 | // { 24 | // _interactiveTransition=[UIPercentDrivenInteractiveTransition new]; 25 | // } 26 | // 27 | // return _interactiveTransition; 28 | //} 29 | 30 | - (void)viewDidLoad { 31 | [super viewDidLoad]; 32 | 33 | 34 | UIImageView * secondImage=[[UIImageView alloc]initWithImage:self.myImage]; 35 | 36 | secondImage.frame=self.view.bounds; 37 | 38 | [self.view addSubview:secondImage]; 39 | 40 | 41 | UIPanGestureRecognizer *gestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)]; 42 | [self.view addGestureRecognizer:gestureRecognizer]; 43 | 44 | 45 | } 46 | 47 | 48 | -(void)viewWillAppear:(BOOL)animated 49 | { 50 | [super viewWillAppear:animated]; 51 | self.navigationController.delegate=self; 52 | } 53 | 54 | - (void)handlePan:(UIPanGestureRecognizer *)gestureRecognizer { 55 | 56 | /*调用UIPercentDrivenInteractiveTransition的updateInteractiveTransition:方法可以控制转场动画进行到哪了, 57 | 当用户的下拉手势完成时,调用finishInteractiveTransition或者cancelInteractiveTransition,UIKit会自动执行剩下的一半动画, 58 | 或者让动画回到最开始的状态。*/ 59 | 60 | 61 | if([gestureRecognizer translationInView:self.view].x>=0) 62 | { 63 | //手势滑动的比例 64 | CGFloat per = [gestureRecognizer translationInView:self.view].x / (self.view.bounds.size.width); 65 | per = MIN(1.0,(MAX(0.0, per))); 66 | if (gestureRecognizer.state == UIGestureRecognizerStateBegan) { 67 | 68 | self.interactiveTransition=[UIPercentDrivenInteractiveTransition new]; 69 | 70 | [self.navigationController popViewControllerAnimated:YES]; 71 | }else if (gestureRecognizer.state == UIGestureRecognizerStateChanged){ 72 | if([gestureRecognizer translationInView:self.view].x ==0) 73 | { 74 | [self.interactiveTransition updateInteractiveTransition:0.01]; 75 | } 76 | else 77 | { 78 | [self.interactiveTransition updateInteractiveTransition:per]; 79 | 80 | } 81 | 82 | }else if (gestureRecognizer.state == UIGestureRecognizerStateEnded || gestureRecognizer.state == UIGestureRecognizerStateCancelled){ 83 | 84 | if([gestureRecognizer translationInView:self.view].x ==0) 85 | { 86 | [self.interactiveTransition cancelInteractiveTransition]; 87 | self.interactiveTransition = nil; 88 | } 89 | else if (per > 0.5) { 90 | 91 | [ self.interactiveTransition finishInteractiveTransition]; 92 | 93 | 94 | }else{ 95 | [ self.interactiveTransition cancelInteractiveTransition]; 96 | } 97 | self.interactiveTransition = nil; 98 | 99 | } 100 | 101 | 102 | } 103 | else if (gestureRecognizer.state == UIGestureRecognizerStateChanged){ 104 | 105 | 106 | 107 | [self.interactiveTransition updateInteractiveTransition:0.01]; 108 | [self.interactiveTransition cancelInteractiveTransition]; 109 | 110 | 111 | 112 | }else if ((gestureRecognizer.state == UIGestureRecognizerStateEnded || gestureRecognizer.state == UIGestureRecognizerStateCancelled)) 113 | { 114 | 115 | self.interactiveTransition = nil; 116 | }} 117 | 118 | //为这个动画添加用户交互 119 | - (id )navigationController:(UINavigationController *)navigationController 120 | interactionControllerForAnimationController:(id ) animationController { 121 | return self.interactiveTransition; 122 | } 123 | //用来自定义转场动画 124 | - (id )navigationController:(UINavigationController *)navigationController 125 | animationControllerForOperation:(UINavigationControllerOperation)operation 126 | fromViewController:(UIViewController *)fromVC 127 | toViewController:(UIViewController *)toVC{ 128 | if (operation == UINavigationControllerOperationPop) { 129 | CustomAnimateTransitionPop *pingInvert = [CustomAnimateTransitionPop new]; 130 | return pingInvert; 131 | }else{ 132 | return nil; 133 | } 134 | } 135 | 136 | 137 | 138 | @end 139 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // animateTransition 4 | // 5 | // Created by 战明 on 16/5/26. 6 | // Copyright © 2016年 zhanming. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "CustomAnimateTransitionPush.h" 11 | 12 | #import "SecondViewController.h" 13 | @interface ViewController () 14 | 15 | @property(strong,nonatomic)NSArray *arrayBtn; 16 | @property(strong,nonatomic)UIButton *btnA; 17 | @property(strong,nonatomic)UIButton *btnB; 18 | @property(strong,nonatomic)UIButton *btnC; 19 | @property(strong,nonatomic)UIButton *btnD; 20 | 21 | 22 | @end 23 | 24 | @implementation ViewController 25 | 26 | - (void)viewDidLoad { 27 | [super viewDidLoad]; 28 | 29 | self.view.backgroundColor=[UIColor colorWithRed:0.98f green:0.97f blue:0.90f alpha:1.00f]; 30 | self.title=@"自定义转场动画"; 31 | 32 | //设置button 33 | [self setButton]; 34 | 35 | } 36 | 37 | 38 | //用来自定义转场动画 39 | -(id)navigationController:(UINavigationController *)navigationController animationControllerForOperation:(UINavigationControllerOperation)operation fromViewController:(UIViewController *)fromVC toViewController:(UIViewController *)toVC 40 | { 41 | 42 | if(operation==UINavigationControllerOperationPush) 43 | { 44 | CustomAnimateTransitionPush *animateTransitionPush=[CustomAnimateTransitionPush new]; 45 | return animateTransitionPush; 46 | } 47 | else 48 | { 49 | return nil; 50 | } 51 | 52 | } 53 | 54 | -(void)viewWillAppear:(BOOL)animated 55 | { 56 | [super viewWillAppear:animated]; 57 | 58 | // 必须在viewDidAppear或者viewWillAppear中写,因为每次都需要将delegate设为当前界面 59 | self.navigationController.delegate=self; 60 | 61 | [self setBtnAnimation]; 62 | 63 | } 64 | 65 | -(void)btnclick:(UIButton *)btn 66 | { 67 | self.button=btn; 68 | 69 | 70 | 71 | 72 | SecondViewController *push=[SecondViewController new]; 73 | 74 | if(btn == self.btnA) 75 | { 76 | push.myImage=[UIImage imageNamed:@"IMG_1"]; 77 | 78 | }else if(btn == self.btnB) 79 | { 80 | push.myImage=[UIImage imageNamed:@"IMG_2"]; 81 | 82 | }else if(btn == self.btnC) 83 | { 84 | push.myImage=[UIImage imageNamed:@"IMG_3"]; 85 | 86 | }else if(btn == self.btnD) 87 | { 88 | push.myImage=[UIImage imageNamed:@"IMG_4"]; 89 | } 90 | 91 | 92 | [self.navigationController pushViewController:push animated:YES]; 93 | } 94 | 95 | -(void)setButton 96 | { 97 | CGFloat margin=50; 98 | 99 | CGFloat width=(self.view.frame.size.width-margin*3)/2; 100 | 101 | CGFloat height =width; 102 | 103 | UIButton *btnA=[UIButton buttonWithType:UIButtonTypeCustom]; 104 | 105 | btnA.frame=CGRectMake(margin,150,width,height); 106 | [btnA addTarget:self action:@selector(btnclick:) forControlEvents:UIControlEventTouchUpInside]; 107 | btnA.backgroundColor=[UIColor colorWithRed:0.67f green:0.87f blue:0.92f alpha:1.00f]; 108 | 109 | btnA.layer.cornerRadius=width/2; 110 | 111 | [self.view addSubview:btnA]; 112 | self.btnA=btnA; 113 | 114 | UIButton *btnB=[UIButton buttonWithType:UIButtonTypeCustom]; 115 | btnB.layer.cornerRadius=width/2; 116 | btnB.frame=CGRectMake(CGRectGetMaxX(btnA.frame)+margin,CGRectGetMinY(btnA.frame),width,height); 117 | [btnB addTarget:self action:@selector(btnclick:) forControlEvents:UIControlEventTouchUpInside]; 118 | btnB.backgroundColor=[UIColor colorWithRed:0.96f green:0.76f blue:0.78f alpha:1.00f]; 119 | [self.view addSubview:btnB]; 120 | self.btnB=btnB; 121 | 122 | UIButton *btnC=[UIButton buttonWithType:UIButtonTypeCustom]; 123 | btnC.layer.cornerRadius=width/2; 124 | btnC.frame=CGRectMake(CGRectGetMinX(btnA.frame),CGRectGetMaxY(btnA.frame)+margin,width,height); 125 | [btnC addTarget:self action:@selector(btnclick:) forControlEvents:UIControlEventTouchUpInside]; 126 | btnC.backgroundColor=[UIColor colorWithRed:0.99f green:0.89f blue:0.49f alpha:1.00f]; 127 | [self.view addSubview:btnC]; 128 | self.btnC=btnC; 129 | 130 | UIButton *btnD=[UIButton buttonWithType:UIButtonTypeCustom]; 131 | btnD.layer.cornerRadius=width/2; 132 | btnD.frame=CGRectMake(CGRectGetMaxX(btnC.frame)+margin,CGRectGetMinY(btnC.frame),width,height); 133 | [btnD addTarget:self action:@selector(btnclick:) forControlEvents:UIControlEventTouchUpInside]; 134 | btnD.backgroundColor=[UIColor colorWithRed:0.53f green:0.82f blue:0.93f alpha:1.00f]; 135 | [self.view addSubview:btnD]; 136 | self.btnD=btnD; 137 | 138 | 139 | 140 | self.arrayBtn=@[btnA,btnB,btnC,btnD]; 141 | 142 | } 143 | 144 | #pragma -mark 这里的动画只使用了CoreAnimation,使用简单的代码实现了button的浮动,给大家一个思路,没有封装代码也比较垃圾,请见谅 145 | 146 | -(void)setBtnAnimation 147 | { 148 | 149 | for (UIButton *btn in self.arrayBtn) { 150 | 151 | CAKeyframeAnimation *pathAnimation = [CAKeyframeAnimation animationWithKeyPath:@"position"]; 152 | pathAnimation.calculationMode = kCAAnimationPaced; 153 | pathAnimation.fillMode = kCAFillModeForwards; 154 | 155 | pathAnimation.repeatCount = MAXFLOAT; 156 | pathAnimation.autoreverses=YES; 157 | pathAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear]; 158 | 159 | 160 | if(btn == self.btnA) 161 | { 162 | pathAnimation.duration=5; 163 | 164 | }else if(btn == self.btnB) 165 | { 166 | pathAnimation.duration=6; 167 | 168 | }else if(btn == self.btnC) 169 | { 170 | pathAnimation.duration=7; 171 | 172 | }else if(btn == self.btnD) 173 | { 174 | pathAnimation.duration=4; 175 | } 176 | 177 | 178 | UIBezierPath *path=[UIBezierPath bezierPathWithOvalInRect:CGRectInset(btn.frame, btn.frame.size.width/2-5, btn.frame.size.width/2-5)]; 179 | 180 | pathAnimation.path=path.CGPath; 181 | 182 | [btn.layer addAnimation:pathAnimation forKey:@"pathAnimation"]; 183 | 184 | 185 | 186 | 187 | 188 | CAKeyframeAnimation *scaleX=[CAKeyframeAnimation animationWithKeyPath:@"transform.scale.x"]; 189 | 190 | scaleX.values = @[@1.0, @1.1, @1.0]; 191 | scaleX.keyTimes = @[@0.0, @0.5,@1.0]; 192 | scaleX.repeatCount = MAXFLOAT; 193 | scaleX.autoreverses = YES; 194 | 195 | 196 | if(btn == self.btnA) 197 | { 198 | scaleX.duration=4; 199 | 200 | }else if(btn == self.btnB) 201 | { 202 | scaleX.duration=5; 203 | 204 | }else if(btn == self.btnC) 205 | { 206 | scaleX.duration=7; 207 | 208 | }else if(btn == self.btnD) 209 | { 210 | scaleX.duration=6; 211 | } 212 | 213 | [btn.layer addAnimation:scaleX forKey:@"scaleX"]; 214 | 215 | 216 | CAKeyframeAnimation *scaleY=[CAKeyframeAnimation animationWithKeyPath:@"transform.scale.y"]; 217 | 218 | scaleY.values = @[@1.0, @1.1, @1.0]; 219 | scaleY.keyTimes = @[@0.0, @0.5,@1.0]; 220 | scaleY.repeatCount = MAXFLOAT; 221 | scaleY.autoreverses = YES; 222 | if(btn == self.btnA) 223 | { 224 | scaleY.duration=6; 225 | 226 | }else if(btn == self.btnB) 227 | { 228 | scaleY.duration=7; 229 | 230 | }else if(btn == self.btnC) 231 | { 232 | scaleY.duration=4; 233 | 234 | }else if(btn == self.btnD) 235 | { 236 | scaleY.duration=5; 237 | } 238 | 239 | [btn.layer addAnimation:scaleY forKey:@"scaleY"]; 240 | 241 | 242 | 243 | } 244 | 245 | } 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | - (void)didReceiveMemoryWarning { 254 | [super didReceiveMemoryWarning]; 255 | // Dispose of any resources that can be recreated. 256 | } 257 | 258 | @end 259 | -------------------------------------------------------------------------------- /animateTransition-OC/animateTransition.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | DC77B0BC1CFE7130008C64E6 /* SecondViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DC77B0BB1CFE7130008C64E6 /* SecondViewController.m */; }; 11 | DC9D35D41CF734FF00C47152 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = DC9D35D31CF734FF00C47152 /* main.m */; }; 12 | DC9D35D71CF734FF00C47152 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DC9D35D61CF734FF00C47152 /* AppDelegate.m */; }; 13 | DC9D35DA1CF734FF00C47152 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DC9D35D91CF734FF00C47152 /* ViewController.m */; }; 14 | DC9D35DF1CF734FF00C47152 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DC9D35DE1CF734FF00C47152 /* Assets.xcassets */; }; 15 | DC9D35E21CF734FF00C47152 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DC9D35E01CF734FF00C47152 /* LaunchScreen.storyboard */; }; 16 | DC9D35ED1CF734FF00C47152 /* animateTransitionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DC9D35EC1CF734FF00C47152 /* animateTransitionTests.m */; }; 17 | DC9D35F81CF734FF00C47152 /* animateTransitionUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = DC9D35F71CF734FF00C47152 /* animateTransitionUITests.m */; }; 18 | DC9D36071CF7352A00C47152 /* CustomAnimateTransitionPush.m in Sources */ = {isa = PBXBuildFile; fileRef = DC9D36061CF7352A00C47152 /* CustomAnimateTransitionPush.m */; }; 19 | DC9D360D1CF73A2700C47152 /* CustomAnimateTransitionPop.m in Sources */ = {isa = PBXBuildFile; fileRef = DC9D360C1CF73A2700C47152 /* CustomAnimateTransitionPop.m */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | DC9D35E91CF734FF00C47152 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = DC9D35C71CF734FF00C47152 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = DC9D35CE1CF734FF00C47152; 28 | remoteInfo = animateTransition; 29 | }; 30 | DC9D35F41CF734FF00C47152 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = DC9D35C71CF734FF00C47152 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = DC9D35CE1CF734FF00C47152; 35 | remoteInfo = animateTransition; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | DC77B0BA1CFE7130008C64E6 /* SecondViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecondViewController.h; sourceTree = ""; }; 41 | DC77B0BB1CFE7130008C64E6 /* SecondViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SecondViewController.m; sourceTree = ""; }; 42 | DC9D35CF1CF734FF00C47152 /* animateTransition.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = animateTransition.app; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | DC9D35D31CF734FF00C47152 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 44 | DC9D35D51CF734FF00C47152 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 45 | DC9D35D61CF734FF00C47152 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 46 | DC9D35D81CF734FF00C47152 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 47 | DC9D35D91CF734FF00C47152 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 48 | DC9D35DE1CF734FF00C47152 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 49 | DC9D35E11CF734FF00C47152 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 50 | DC9D35E31CF734FF00C47152 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | DC9D35E81CF734FF00C47152 /* animateTransitionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = animateTransitionTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | DC9D35EC1CF734FF00C47152 /* animateTransitionTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = animateTransitionTests.m; sourceTree = ""; }; 53 | DC9D35EE1CF734FF00C47152 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | DC9D35F31CF734FF00C47152 /* animateTransitionUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = animateTransitionUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | DC9D35F71CF734FF00C47152 /* animateTransitionUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = animateTransitionUITests.m; sourceTree = ""; }; 56 | DC9D35F91CF734FF00C47152 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | DC9D36051CF7352A00C47152 /* CustomAnimateTransitionPush.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomAnimateTransitionPush.h; sourceTree = ""; }; 58 | DC9D36061CF7352A00C47152 /* CustomAnimateTransitionPush.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomAnimateTransitionPush.m; sourceTree = ""; }; 59 | DC9D360B1CF73A2700C47152 /* CustomAnimateTransitionPop.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomAnimateTransitionPop.h; sourceTree = ""; }; 60 | DC9D360C1CF73A2700C47152 /* CustomAnimateTransitionPop.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomAnimateTransitionPop.m; sourceTree = ""; }; 61 | /* End PBXFileReference section */ 62 | 63 | /* Begin PBXFrameworksBuildPhase section */ 64 | DC9D35CC1CF734FF00C47152 /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | DC9D35E51CF734FF00C47152 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | DC9D35F01CF734FF00C47152 /* Frameworks */ = { 79 | isa = PBXFrameworksBuildPhase; 80 | buildActionMask = 2147483647; 81 | files = ( 82 | ); 83 | runOnlyForDeploymentPostprocessing = 0; 84 | }; 85 | /* End PBXFrameworksBuildPhase section */ 86 | 87 | /* Begin PBXGroup section */ 88 | DC9D35C61CF734FF00C47152 = { 89 | isa = PBXGroup; 90 | children = ( 91 | DC9D35D11CF734FF00C47152 /* animateTransition */, 92 | DC9D35EB1CF734FF00C47152 /* animateTransitionTests */, 93 | DC9D35F61CF734FF00C47152 /* animateTransitionUITests */, 94 | DC9D35D01CF734FF00C47152 /* Products */, 95 | ); 96 | sourceTree = ""; 97 | }; 98 | DC9D35D01CF734FF00C47152 /* Products */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | DC9D35CF1CF734FF00C47152 /* animateTransition.app */, 102 | DC9D35E81CF734FF00C47152 /* animateTransitionTests.xctest */, 103 | DC9D35F31CF734FF00C47152 /* animateTransitionUITests.xctest */, 104 | ); 105 | name = Products; 106 | sourceTree = ""; 107 | }; 108 | DC9D35D11CF734FF00C47152 /* animateTransition */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | DC9D35D51CF734FF00C47152 /* AppDelegate.h */, 112 | DC9D35D61CF734FF00C47152 /* AppDelegate.m */, 113 | DC9D35D81CF734FF00C47152 /* ViewController.h */, 114 | DC9D35D91CF734FF00C47152 /* ViewController.m */, 115 | DC77B0BA1CFE7130008C64E6 /* SecondViewController.h */, 116 | DC77B0BB1CFE7130008C64E6 /* SecondViewController.m */, 117 | DC9D35DE1CF734FF00C47152 /* Assets.xcassets */, 118 | DC9D35E01CF734FF00C47152 /* LaunchScreen.storyboard */, 119 | DC9D35E31CF734FF00C47152 /* Info.plist */, 120 | DC9D35D21CF734FF00C47152 /* Supporting Files */, 121 | DC9D36051CF7352A00C47152 /* CustomAnimateTransitionPush.h */, 122 | DC9D36061CF7352A00C47152 /* CustomAnimateTransitionPush.m */, 123 | DC9D360B1CF73A2700C47152 /* CustomAnimateTransitionPop.h */, 124 | DC9D360C1CF73A2700C47152 /* CustomAnimateTransitionPop.m */, 125 | ); 126 | path = animateTransition; 127 | sourceTree = ""; 128 | }; 129 | DC9D35D21CF734FF00C47152 /* Supporting Files */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | DC9D35D31CF734FF00C47152 /* main.m */, 133 | ); 134 | name = "Supporting Files"; 135 | sourceTree = ""; 136 | }; 137 | DC9D35EB1CF734FF00C47152 /* animateTransitionTests */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | DC9D35EC1CF734FF00C47152 /* animateTransitionTests.m */, 141 | DC9D35EE1CF734FF00C47152 /* Info.plist */, 142 | ); 143 | path = animateTransitionTests; 144 | sourceTree = ""; 145 | }; 146 | DC9D35F61CF734FF00C47152 /* animateTransitionUITests */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | DC9D35F71CF734FF00C47152 /* animateTransitionUITests.m */, 150 | DC9D35F91CF734FF00C47152 /* Info.plist */, 151 | ); 152 | path = animateTransitionUITests; 153 | sourceTree = ""; 154 | }; 155 | /* End PBXGroup section */ 156 | 157 | /* Begin PBXNativeTarget section */ 158 | DC9D35CE1CF734FF00C47152 /* animateTransition */ = { 159 | isa = PBXNativeTarget; 160 | buildConfigurationList = DC9D35FC1CF734FF00C47152 /* Build configuration list for PBXNativeTarget "animateTransition" */; 161 | buildPhases = ( 162 | DC9D35CB1CF734FF00C47152 /* Sources */, 163 | DC9D35CC1CF734FF00C47152 /* Frameworks */, 164 | DC9D35CD1CF734FF00C47152 /* Resources */, 165 | ); 166 | buildRules = ( 167 | ); 168 | dependencies = ( 169 | ); 170 | name = animateTransition; 171 | productName = animateTransition; 172 | productReference = DC9D35CF1CF734FF00C47152 /* animateTransition.app */; 173 | productType = "com.apple.product-type.application"; 174 | }; 175 | DC9D35E71CF734FF00C47152 /* animateTransitionTests */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = DC9D35FF1CF734FF00C47152 /* Build configuration list for PBXNativeTarget "animateTransitionTests" */; 178 | buildPhases = ( 179 | DC9D35E41CF734FF00C47152 /* Sources */, 180 | DC9D35E51CF734FF00C47152 /* Frameworks */, 181 | DC9D35E61CF734FF00C47152 /* Resources */, 182 | ); 183 | buildRules = ( 184 | ); 185 | dependencies = ( 186 | DC9D35EA1CF734FF00C47152 /* PBXTargetDependency */, 187 | ); 188 | name = animateTransitionTests; 189 | productName = animateTransitionTests; 190 | productReference = DC9D35E81CF734FF00C47152 /* animateTransitionTests.xctest */; 191 | productType = "com.apple.product-type.bundle.unit-test"; 192 | }; 193 | DC9D35F21CF734FF00C47152 /* animateTransitionUITests */ = { 194 | isa = PBXNativeTarget; 195 | buildConfigurationList = DC9D36021CF734FF00C47152 /* Build configuration list for PBXNativeTarget "animateTransitionUITests" */; 196 | buildPhases = ( 197 | DC9D35EF1CF734FF00C47152 /* Sources */, 198 | DC9D35F01CF734FF00C47152 /* Frameworks */, 199 | DC9D35F11CF734FF00C47152 /* Resources */, 200 | ); 201 | buildRules = ( 202 | ); 203 | dependencies = ( 204 | DC9D35F51CF734FF00C47152 /* PBXTargetDependency */, 205 | ); 206 | name = animateTransitionUITests; 207 | productName = animateTransitionUITests; 208 | productReference = DC9D35F31CF734FF00C47152 /* animateTransitionUITests.xctest */; 209 | productType = "com.apple.product-type.bundle.ui-testing"; 210 | }; 211 | /* End PBXNativeTarget section */ 212 | 213 | /* Begin PBXProject section */ 214 | DC9D35C71CF734FF00C47152 /* Project object */ = { 215 | isa = PBXProject; 216 | attributes = { 217 | LastUpgradeCheck = 0730; 218 | ORGANIZATIONNAME = zhanming; 219 | TargetAttributes = { 220 | DC9D35CE1CF734FF00C47152 = { 221 | CreatedOnToolsVersion = 7.3.1; 222 | }; 223 | DC9D35E71CF734FF00C47152 = { 224 | CreatedOnToolsVersion = 7.3.1; 225 | TestTargetID = DC9D35CE1CF734FF00C47152; 226 | }; 227 | DC9D35F21CF734FF00C47152 = { 228 | CreatedOnToolsVersion = 7.3.1; 229 | TestTargetID = DC9D35CE1CF734FF00C47152; 230 | }; 231 | }; 232 | }; 233 | buildConfigurationList = DC9D35CA1CF734FF00C47152 /* Build configuration list for PBXProject "animateTransition" */; 234 | compatibilityVersion = "Xcode 3.2"; 235 | developmentRegion = English; 236 | hasScannedForEncodings = 0; 237 | knownRegions = ( 238 | en, 239 | Base, 240 | ); 241 | mainGroup = DC9D35C61CF734FF00C47152; 242 | productRefGroup = DC9D35D01CF734FF00C47152 /* Products */; 243 | projectDirPath = ""; 244 | projectRoot = ""; 245 | targets = ( 246 | DC9D35CE1CF734FF00C47152 /* animateTransition */, 247 | DC9D35E71CF734FF00C47152 /* animateTransitionTests */, 248 | DC9D35F21CF734FF00C47152 /* animateTransitionUITests */, 249 | ); 250 | }; 251 | /* End PBXProject section */ 252 | 253 | /* Begin PBXResourcesBuildPhase section */ 254 | DC9D35CD1CF734FF00C47152 /* Resources */ = { 255 | isa = PBXResourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | DC9D35E21CF734FF00C47152 /* LaunchScreen.storyboard in Resources */, 259 | DC9D35DF1CF734FF00C47152 /* Assets.xcassets in Resources */, 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | }; 263 | DC9D35E61CF734FF00C47152 /* Resources */ = { 264 | isa = PBXResourcesBuildPhase; 265 | buildActionMask = 2147483647; 266 | files = ( 267 | ); 268 | runOnlyForDeploymentPostprocessing = 0; 269 | }; 270 | DC9D35F11CF734FF00C47152 /* Resources */ = { 271 | isa = PBXResourcesBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | }; 277 | /* End PBXResourcesBuildPhase section */ 278 | 279 | /* Begin PBXSourcesBuildPhase section */ 280 | DC9D35CB1CF734FF00C47152 /* Sources */ = { 281 | isa = PBXSourcesBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | DC9D35DA1CF734FF00C47152 /* ViewController.m in Sources */, 285 | DC9D36071CF7352A00C47152 /* CustomAnimateTransitionPush.m in Sources */, 286 | DC77B0BC1CFE7130008C64E6 /* SecondViewController.m in Sources */, 287 | DC9D360D1CF73A2700C47152 /* CustomAnimateTransitionPop.m in Sources */, 288 | DC9D35D71CF734FF00C47152 /* AppDelegate.m in Sources */, 289 | DC9D35D41CF734FF00C47152 /* main.m in Sources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | DC9D35E41CF734FF00C47152 /* Sources */ = { 294 | isa = PBXSourcesBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | DC9D35ED1CF734FF00C47152 /* animateTransitionTests.m in Sources */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | DC9D35EF1CF734FF00C47152 /* Sources */ = { 302 | isa = PBXSourcesBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | DC9D35F81CF734FF00C47152 /* animateTransitionUITests.m in Sources */, 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | /* End PBXSourcesBuildPhase section */ 310 | 311 | /* Begin PBXTargetDependency section */ 312 | DC9D35EA1CF734FF00C47152 /* PBXTargetDependency */ = { 313 | isa = PBXTargetDependency; 314 | target = DC9D35CE1CF734FF00C47152 /* animateTransition */; 315 | targetProxy = DC9D35E91CF734FF00C47152 /* PBXContainerItemProxy */; 316 | }; 317 | DC9D35F51CF734FF00C47152 /* PBXTargetDependency */ = { 318 | isa = PBXTargetDependency; 319 | target = DC9D35CE1CF734FF00C47152 /* animateTransition */; 320 | targetProxy = DC9D35F41CF734FF00C47152 /* PBXContainerItemProxy */; 321 | }; 322 | /* End PBXTargetDependency section */ 323 | 324 | /* Begin PBXVariantGroup section */ 325 | DC9D35E01CF734FF00C47152 /* LaunchScreen.storyboard */ = { 326 | isa = PBXVariantGroup; 327 | children = ( 328 | DC9D35E11CF734FF00C47152 /* Base */, 329 | ); 330 | name = LaunchScreen.storyboard; 331 | sourceTree = ""; 332 | }; 333 | /* End PBXVariantGroup section */ 334 | 335 | /* Begin XCBuildConfiguration section */ 336 | DC9D35FA1CF734FF00C47152 /* Debug */ = { 337 | isa = XCBuildConfiguration; 338 | buildSettings = { 339 | ALWAYS_SEARCH_USER_PATHS = NO; 340 | CLANG_ANALYZER_NONNULL = YES; 341 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 342 | CLANG_CXX_LIBRARY = "libc++"; 343 | CLANG_ENABLE_MODULES = YES; 344 | CLANG_ENABLE_OBJC_ARC = YES; 345 | CLANG_WARN_BOOL_CONVERSION = YES; 346 | CLANG_WARN_CONSTANT_CONVERSION = YES; 347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 348 | CLANG_WARN_EMPTY_BODY = YES; 349 | CLANG_WARN_ENUM_CONVERSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 352 | CLANG_WARN_UNREACHABLE_CODE = YES; 353 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 354 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 355 | COPY_PHASE_STRIP = NO; 356 | DEBUG_INFORMATION_FORMAT = dwarf; 357 | ENABLE_STRICT_OBJC_MSGSEND = YES; 358 | ENABLE_TESTABILITY = YES; 359 | GCC_C_LANGUAGE_STANDARD = gnu99; 360 | GCC_DYNAMIC_NO_PIC = NO; 361 | GCC_NO_COMMON_BLOCKS = YES; 362 | GCC_OPTIMIZATION_LEVEL = 0; 363 | GCC_PREPROCESSOR_DEFINITIONS = ( 364 | "DEBUG=1", 365 | "$(inherited)", 366 | ); 367 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 368 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 369 | GCC_WARN_UNDECLARED_SELECTOR = YES; 370 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 371 | GCC_WARN_UNUSED_FUNCTION = YES; 372 | GCC_WARN_UNUSED_VARIABLE = YES; 373 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 374 | MTL_ENABLE_DEBUG_INFO = YES; 375 | ONLY_ACTIVE_ARCH = YES; 376 | SDKROOT = iphoneos; 377 | }; 378 | name = Debug; 379 | }; 380 | DC9D35FB1CF734FF00C47152 /* Release */ = { 381 | isa = XCBuildConfiguration; 382 | buildSettings = { 383 | ALWAYS_SEARCH_USER_PATHS = NO; 384 | CLANG_ANALYZER_NONNULL = YES; 385 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 386 | CLANG_CXX_LIBRARY = "libc++"; 387 | CLANG_ENABLE_MODULES = YES; 388 | CLANG_ENABLE_OBJC_ARC = YES; 389 | CLANG_WARN_BOOL_CONVERSION = YES; 390 | CLANG_WARN_CONSTANT_CONVERSION = YES; 391 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 392 | CLANG_WARN_EMPTY_BODY = YES; 393 | CLANG_WARN_ENUM_CONVERSION = YES; 394 | CLANG_WARN_INT_CONVERSION = YES; 395 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 396 | CLANG_WARN_UNREACHABLE_CODE = YES; 397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 399 | COPY_PHASE_STRIP = NO; 400 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 401 | ENABLE_NS_ASSERTIONS = NO; 402 | ENABLE_STRICT_OBJC_MSGSEND = YES; 403 | GCC_C_LANGUAGE_STANDARD = gnu99; 404 | GCC_NO_COMMON_BLOCKS = YES; 405 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 406 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 407 | GCC_WARN_UNDECLARED_SELECTOR = YES; 408 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 409 | GCC_WARN_UNUSED_FUNCTION = YES; 410 | GCC_WARN_UNUSED_VARIABLE = YES; 411 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 412 | MTL_ENABLE_DEBUG_INFO = NO; 413 | SDKROOT = iphoneos; 414 | VALIDATE_PRODUCT = YES; 415 | }; 416 | name = Release; 417 | }; 418 | DC9D35FD1CF734FF00C47152 /* Debug */ = { 419 | isa = XCBuildConfiguration; 420 | buildSettings = { 421 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 422 | INFOPLIST_FILE = animateTransition/Info.plist; 423 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 424 | PRODUCT_BUNDLE_IDENTIFIER = com.zhanming.animateTransition; 425 | PRODUCT_NAME = "$(TARGET_NAME)"; 426 | }; 427 | name = Debug; 428 | }; 429 | DC9D35FE1CF734FF00C47152 /* Release */ = { 430 | isa = XCBuildConfiguration; 431 | buildSettings = { 432 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 433 | INFOPLIST_FILE = animateTransition/Info.plist; 434 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 435 | PRODUCT_BUNDLE_IDENTIFIER = com.zhanming.animateTransition; 436 | PRODUCT_NAME = "$(TARGET_NAME)"; 437 | }; 438 | name = Release; 439 | }; 440 | DC9D36001CF734FF00C47152 /* Debug */ = { 441 | isa = XCBuildConfiguration; 442 | buildSettings = { 443 | BUNDLE_LOADER = "$(TEST_HOST)"; 444 | INFOPLIST_FILE = animateTransitionTests/Info.plist; 445 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 446 | PRODUCT_BUNDLE_IDENTIFIER = com.zhanming.animateTransitionTests; 447 | PRODUCT_NAME = "$(TARGET_NAME)"; 448 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/animateTransition.app/animateTransition"; 449 | }; 450 | name = Debug; 451 | }; 452 | DC9D36011CF734FF00C47152 /* Release */ = { 453 | isa = XCBuildConfiguration; 454 | buildSettings = { 455 | BUNDLE_LOADER = "$(TEST_HOST)"; 456 | INFOPLIST_FILE = animateTransitionTests/Info.plist; 457 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 458 | PRODUCT_BUNDLE_IDENTIFIER = com.zhanming.animateTransitionTests; 459 | PRODUCT_NAME = "$(TARGET_NAME)"; 460 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/animateTransition.app/animateTransition"; 461 | }; 462 | name = Release; 463 | }; 464 | DC9D36031CF734FF00C47152 /* Debug */ = { 465 | isa = XCBuildConfiguration; 466 | buildSettings = { 467 | INFOPLIST_FILE = animateTransitionUITests/Info.plist; 468 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 469 | PRODUCT_BUNDLE_IDENTIFIER = com.zhanming.animateTransitionUITests; 470 | PRODUCT_NAME = "$(TARGET_NAME)"; 471 | TEST_TARGET_NAME = animateTransition; 472 | }; 473 | name = Debug; 474 | }; 475 | DC9D36041CF734FF00C47152 /* Release */ = { 476 | isa = XCBuildConfiguration; 477 | buildSettings = { 478 | INFOPLIST_FILE = animateTransitionUITests/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 480 | PRODUCT_BUNDLE_IDENTIFIER = com.zhanming.animateTransitionUITests; 481 | PRODUCT_NAME = "$(TARGET_NAME)"; 482 | TEST_TARGET_NAME = animateTransition; 483 | }; 484 | name = Release; 485 | }; 486 | /* End XCBuildConfiguration section */ 487 | 488 | /* Begin XCConfigurationList section */ 489 | DC9D35CA1CF734FF00C47152 /* Build configuration list for PBXProject "animateTransition" */ = { 490 | isa = XCConfigurationList; 491 | buildConfigurations = ( 492 | DC9D35FA1CF734FF00C47152 /* Debug */, 493 | DC9D35FB1CF734FF00C47152 /* Release */, 494 | ); 495 | defaultConfigurationIsVisible = 0; 496 | defaultConfigurationName = Release; 497 | }; 498 | DC9D35FC1CF734FF00C47152 /* Build configuration list for PBXNativeTarget "animateTransition" */ = { 499 | isa = XCConfigurationList; 500 | buildConfigurations = ( 501 | DC9D35FD1CF734FF00C47152 /* Debug */, 502 | DC9D35FE1CF734FF00C47152 /* Release */, 503 | ); 504 | defaultConfigurationIsVisible = 0; 505 | defaultConfigurationName = Release; 506 | }; 507 | DC9D35FF1CF734FF00C47152 /* Build configuration list for PBXNativeTarget "animateTransitionTests" */ = { 508 | isa = XCConfigurationList; 509 | buildConfigurations = ( 510 | DC9D36001CF734FF00C47152 /* Debug */, 511 | DC9D36011CF734FF00C47152 /* Release */, 512 | ); 513 | defaultConfigurationIsVisible = 0; 514 | defaultConfigurationName = Release; 515 | }; 516 | DC9D36021CF734FF00C47152 /* Build configuration list for PBXNativeTarget "animateTransitionUITests" */ = { 517 | isa = XCConfigurationList; 518 | buildConfigurations = ( 519 | DC9D36031CF734FF00C47152 /* Debug */, 520 | DC9D36041CF734FF00C47152 /* Release */, 521 | ); 522 | defaultConfigurationIsVisible = 0; 523 | defaultConfigurationName = Release; 524 | }; 525 | /* End XCConfigurationList section */ 526 | }; 527 | rootObject = DC9D35C71CF734FF00C47152 /* Project object */; 528 | } 529 | --------------------------------------------------------------------------------