├── DMCustomTransition
├── en.lproj
│ └── InfoPlist.strings
├── DMAppDelegate.h
├── DMPresentedViewController.h
├── DMCustomTransition-Prefix.pch
├── main.m
├── DMViewController.h
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── DMPresentedViewController.m
├── DMCustomTransition-Info.plist
├── DMViewController.m
├── DMAppDelegate.m
└── Storyboard.storyboard
├── DMCustomTransitionTests
├── en.lproj
│ └── InfoPlist.strings
├── DMCustomTransitionTests-Info.plist
└── DMCustomTransitionTests.m
├── DMCustomTransition.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
├── Transitions
├── DMAlphaTransition.h
├── DMScaleTransition.h
├── DMSlideTransition.h
├── DMBaseTransition.h
├── DMBaseTransition.m
├── DMAlphaTransition.m
├── DMScaleTransition.m
└── DMSlideTransition.m
├── .gitignore
├── README.md
└── LICENSE
/DMCustomTransition/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/DMCustomTransitionTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/DMCustomTransition.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Transitions/DMAlphaTransition.h:
--------------------------------------------------------------------------------
1 | //
2 | // DMAlphaTransition.h
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import "DMBaseTransition.h"
10 |
11 | @interface DMAlphaTransition : DMBaseTransition
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Transitions/DMScaleTransition.h:
--------------------------------------------------------------------------------
1 | //
2 | // DMScaleTransition.h
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import "DMBaseTransition.h"
10 |
11 | @interface DMScaleTransition : DMBaseTransition
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | .DS_Store
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 | profile
14 | *.moved-aside
15 | DerivedData
16 | .idea/
17 | *.hmap
18 | *.xccheckout
19 |
20 | #CocoaPods
21 | Pods
22 |
--------------------------------------------------------------------------------
/DMCustomTransition/DMAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // DMAppDelegate.h
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface DMAppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Transitions/DMSlideTransition.h:
--------------------------------------------------------------------------------
1 | //
2 | // DMSlideTransition.h
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import "DMBaseTransition.h"
10 |
11 | @interface DMSlideTransition : DMBaseTransition
12 |
13 | @property (nonatomic, strong) UIColor *backgroundColor;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/DMCustomTransition/DMPresentedViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // DMPresentedViewController.h
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface DMPresentedViewController : UIViewController
12 |
13 | - (IBAction)onCloseButton:(id)sender;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/DMCustomTransition/DMCustomTransition-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #import
8 |
9 | #ifndef __IPHONE_3_0
10 | #warning "This project uses features only available in iOS SDK 3.0 and later."
11 | #endif
12 |
13 | #ifdef __OBJC__
14 | #import
15 | #import
16 | #endif
17 |
--------------------------------------------------------------------------------
/DMCustomTransition/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "DMAppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([DMAppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #DMCustomTransition
2 |
3 | This is a set of custiom iOS 7 transition. Those transitions are abstracts and should works with any screen size, view controller and configurations.
4 |
5 | No cocoapods, no complicated stuff, just an example and a set of classes in **/transitions**
6 |
7 | There is a base class that each transition subclass, to use one of those transition in your project you need to import the transition you want + the base class `DMBaseTransition`
8 |
--------------------------------------------------------------------------------
/DMCustomTransition/DMViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // DMViewController.h
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface DMViewController : UIViewController
12 |
13 | - (IBAction)onScaleTransitionButton:(id)sender;
14 | - (IBAction)onAlphaTransitionButton:(id)sender;
15 | - (IBAction)onSlideTransitionButton:(id)sender;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/DMCustomTransition/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "40x40",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "60x60",
16 | "scale" : "2x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/Transitions/DMBaseTransition.h:
--------------------------------------------------------------------------------
1 | //
2 | // DMBaseTransition.h
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface DMBaseTransition : NSObject
12 |
13 |
14 | @property (nonatomic, readwrite, assign, getter = isPresenting) BOOL presenting;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/DMCustomTransition/Images.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "extent" : "full-screen",
7 | "minimum-system-version" : "7.0",
8 | "scale" : "2x"
9 | },
10 | {
11 | "orientation" : "portrait",
12 | "idiom" : "iphone",
13 | "subtype" : "retina4",
14 | "extent" : "full-screen",
15 | "minimum-system-version" : "7.0",
16 | "scale" : "2x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/DMCustomTransitionTests/DMCustomTransitionTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | com.thomasricouard.${PRODUCT_NAME:rfc1034identifier}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | BNDL
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleSignature
18 | ????
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/DMCustomTransitionTests/DMCustomTransitionTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // DMCustomTransitionTests.m
3 | // DMCustomTransitionTests
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface DMCustomTransitionTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation DMCustomTransitionTests
16 |
17 | - (void)setUp
18 | {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown
24 | {
25 | // Put teardown code here. This method is called after the invocation of each test method in the class.
26 | [super tearDown];
27 | }
28 |
29 | - (void)testExample
30 | {
31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32 | }
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/DMCustomTransition/DMPresentedViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // DMPresentedViewController.m
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import "DMPresentedViewController.h"
10 |
11 | @interface DMPresentedViewController ()
12 |
13 | @end
14 |
15 | @implementation DMPresentedViewController
16 |
17 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
18 | {
19 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
20 | if (self) {
21 | // Custom initialization
22 | }
23 | return self;
24 | }
25 |
26 | - (void)viewDidLoad
27 | {
28 | [super viewDidLoad];
29 | // Do any additional setup after loading the view.
30 | }
31 |
32 | - (void)didReceiveMemoryWarning
33 | {
34 | [super didReceiveMemoryWarning];
35 | // Dispose of any resources that can be recreated.
36 | }
37 |
38 |
39 | - (IBAction)onCloseButton:(id)sender {
40 | [self dismissViewControllerAnimated:YES completion:^{
41 |
42 | }];
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013 Thomas Ricouard
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | 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, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/Transitions/DMBaseTransition.m:
--------------------------------------------------------------------------------
1 | //
2 | // DMBaseTransition.m
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import "DMBaseTransition.h"
10 |
11 | @implementation DMBaseTransition
12 |
13 |
14 | #pragma mark - UIViewControllerAnimatedTransitioning
15 |
16 |
17 | - (NSTimeInterval)transitionDuration:(id)transitionContext
18 | {
19 | return 0.30f;
20 | }
21 |
22 | - (void)animateTransition:(id)transitionContext
23 | {
24 |
25 | }
26 |
27 |
28 | #pragma mark - UIViewControllerTransitioningDelegate
29 |
30 |
31 | - (id)animationControllerForPresentedController:(UIViewController *)presented
32 | presentingController:(UIViewController *)presenting
33 | sourceController:(UIViewController *)source
34 | {
35 | _presenting = YES;
36 | return self;
37 | }
38 |
39 | - (id)animationControllerForDismissedController:(UIViewController *)dismissed
40 | {
41 | _presenting = NO;
42 | return self;
43 | }
44 |
45 |
46 | @end
47 |
--------------------------------------------------------------------------------
/DMCustomTransition/DMCustomTransition-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | com.thomasricouard.${PRODUCT_NAME:rfc1034identifier}
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ${PRODUCT_NAME}
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1.0
25 | LSRequiresIPhoneOS
26 |
27 | UIMainStoryboardFile
28 | Storyboard
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/Transitions/DMAlphaTransition.m:
--------------------------------------------------------------------------------
1 | //
2 | // DMAlphaTransition.m
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import "DMAlphaTransition.h"
10 |
11 | @implementation DMAlphaTransition
12 |
13 |
14 | #pragma mark - UIViewControllerAnimatedTransitioning
15 |
16 |
17 | - (NSTimeInterval)transitionDuration:(id)transitionContext
18 | {
19 | return 0.30f;
20 | }
21 |
22 | - (void)animateTransition:(id)transitionContext
23 | {
24 | UIViewController *fromVC = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];
25 | UIViewController *toVC = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
26 | UIView *containerView = [transitionContext containerView];
27 |
28 | if (self.isPresenting) {
29 |
30 | [containerView addSubview:toVC.view];
31 | [toVC.view setAlpha:0];
32 |
33 | [UIView animateWithDuration:[self transitionDuration:transitionContext]
34 | animations:^{
35 | [toVC.view setAlpha:1];
36 | }
37 | completion:^(BOOL finished) {
38 | [transitionContext completeTransition:YES];
39 | }];
40 | }
41 | else {
42 |
43 | [containerView addSubview:toVC.view];
44 | [containerView addSubview:fromVC.view];
45 |
46 | [UIView animateWithDuration:[self transitionDuration:transitionContext]
47 | animations:^{
48 | [fromVC.view setAlpha:0];
49 | }
50 | completion:^(BOOL finished) {
51 | [transitionContext completeTransition:YES];
52 | }];
53 | }
54 | }
55 |
56 | @end
57 |
--------------------------------------------------------------------------------
/DMCustomTransition/DMViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // DMViewController.m
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import "DMViewController.h"
10 | #import "DMPresentedViewController.h"
11 | #import "DMAlphaTransition.h"
12 | #import "DMScaleTransition.h"
13 | #import "DMSlideTransition.h"
14 |
15 | @interface DMViewController ()
16 |
17 | @property (nonatomic, strong) DMAlphaTransition *alphaTransition;
18 | @property (nonatomic, strong) DMScaleTransition *scaleTransition;
19 | @property (nonatomic, strong) DMSlideTransition *slideTransition;
20 |
21 | @end
22 |
23 | @implementation DMViewController
24 |
25 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
26 | {
27 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
28 | if (self) {
29 | // Custom initialization
30 | }
31 | return self;
32 | }
33 |
34 | - (void)viewDidLoad
35 | {
36 | [super viewDidLoad];
37 | }
38 |
39 | - (void)didReceiveMemoryWarning
40 | {
41 | [super didReceiveMemoryWarning];
42 | }
43 |
44 | - (IBAction)onScaleTransitionButton:(id)sender {
45 | self.scaleTransition = [[DMScaleTransition alloc]init];
46 | [self presentWithTransition:self.scaleTransition];
47 | }
48 |
49 | - (IBAction)onAlphaTransitionButton:(id)sender {
50 | self.alphaTransition = [[DMAlphaTransition alloc]init];
51 | [self presentWithTransition:self.alphaTransition];
52 | }
53 |
54 | - (IBAction)onSlideTransitionButton:(id)sender {
55 | self.slideTransition = [[DMSlideTransition alloc]init];
56 | [self.slideTransition setBackgroundColor:[UIColor whiteColor]];
57 | [self presentWithTransition:self.slideTransition];
58 | }
59 |
60 | - (void)presentWithTransition:(id)transition
61 | {
62 | DMPresentedViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"presentedVC"];
63 | [vc setTransitioningDelegate:transition];
64 | [self presentViewController:vc animated:YES completion:^{
65 |
66 | }];
67 | }
68 |
69 | @end
70 |
--------------------------------------------------------------------------------
/DMCustomTransition/DMAppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // DMAppDelegate.m
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import "DMAppDelegate.h"
10 |
11 | @implementation DMAppDelegate
12 |
13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14 | {
15 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
16 | self.window.backgroundColor = [UIColor whiteColor];
17 | UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:[NSBundle mainBundle]];
18 | UIViewController *vc = [storyboard instantiateInitialViewController];
19 | self.window.rootViewController = vc;
20 | [self.window makeKeyAndVisible];
21 | return YES;
22 | }
23 |
24 | - (void)applicationWillResignActive:(UIApplication *)application
25 | {
26 | // 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.
27 | // 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.
28 | }
29 |
30 | - (void)applicationDidEnterBackground:(UIApplication *)application
31 | {
32 | // 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.
33 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
34 | }
35 |
36 | - (void)applicationWillEnterForeground:(UIApplication *)application
37 | {
38 | // 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.
39 | }
40 |
41 | - (void)applicationDidBecomeActive:(UIApplication *)application
42 | {
43 | // 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.
44 | }
45 |
46 | - (void)applicationWillTerminate:(UIApplication *)application
47 | {
48 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
49 | }
50 |
51 | @end
52 |
--------------------------------------------------------------------------------
/Transitions/DMScaleTransition.m:
--------------------------------------------------------------------------------
1 | //
2 | // DMScaleTransition.m
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import "DMScaleTransition.h"
10 |
11 | @implementation DMScaleTransition
12 |
13 |
14 | #pragma mark - UIViewControllerAnimatedTransitioning
15 |
16 |
17 | - (NSTimeInterval)transitionDuration:(id)transitionContext
18 | {
19 | return 0.30f;
20 | }
21 |
22 | - (void)animateTransition:(id)transitionContext
23 | {
24 | UIViewController *fromVC = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];
25 | UIViewController *toVC = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
26 | UIView *containerView = [transitionContext containerView];
27 |
28 | if (self.isPresenting) {
29 |
30 | [containerView addSubview:toVC.view];
31 | [toVC.view setAlpha:0];
32 | CGAffineTransform xForm = toVC.view.transform;
33 | toVC.view.transform = CGAffineTransformScale(xForm, 2.0f, 2.0f);
34 |
35 | [UIView animateWithDuration:[self transitionDuration:transitionContext]
36 | animations:^{
37 | [toVC.view setAlpha:1];
38 | toVC.view.transform =
39 | CGAffineTransformScale(xForm, 1.0f, 1.0f);
40 | fromVC.view.transform =
41 | CGAffineTransformScale(fromVC.view.transform, 0.9f, 0.9f);
42 | }
43 | completion:^(BOOL finished) {
44 | [transitionContext completeTransition:YES];
45 | }];
46 | }
47 | else {
48 |
49 | [containerView addSubview:toVC.view];
50 | [containerView addSubview:fromVC.view];
51 |
52 | CGAffineTransform xForm = toVC.view.transform;
53 | toVC.view.transform = CGAffineTransformScale(toVC.view.transform, 0.9f, 0.9f);
54 |
55 | [UIView animateWithDuration:[self transitionDuration:transitionContext]
56 | animations:^{
57 | [fromVC.view setAlpha:0];
58 | fromVC.view.transform =
59 | CGAffineTransformScale(xForm, 2.0f, 2.0f);
60 | toVC.view.transform =
61 | CGAffineTransformScale(CGAffineTransformIdentity, 1.0f, 1.0f);
62 | }
63 | completion:^(BOOL finished) {
64 | [transitionContext completeTransition:YES];
65 | }];
66 | }
67 | }
68 |
69 | @end
70 |
--------------------------------------------------------------------------------
/Transitions/DMSlideTransition.m:
--------------------------------------------------------------------------------
1 | //
2 | // DMSlideTransition.m
3 | // DMCustomTransition
4 | //
5 | // Created by Thomas Ricouard on 26/11/13.
6 | // Copyright (c) 2013 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | #import "DMSlideTransition.h"
10 |
11 | @implementation DMSlideTransition
12 |
13 |
14 | #pragma mark - UIViewControllerAnimatedTransitioning
15 |
16 |
17 | - (NSTimeInterval)transitionDuration:(id)transitionContext
18 | {
19 | return 0.50f;
20 | }
21 |
22 | - (void)animateTransition:(id)transitionContext
23 | {
24 | UIViewController *fromVC = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];
25 | UIViewController *toVC = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
26 | UIView *containerView = [transitionContext containerView];
27 | [containerView setBackgroundColor:self.backgroundColor ? self.backgroundColor : [UIColor whiteColor]];
28 | if (self.isPresenting) {
29 |
30 | [containerView addSubview:toVC.view];
31 | CGRect fromFrame = fromVC.view.frame;
32 | CGRect toFrame = toVC.view.frame;
33 |
34 | fromFrame.origin.y = -fromFrame.size.height/2;
35 | toFrame.origin.y = containerView.frame.size.height;
36 | [toVC.view setFrame:toFrame];
37 | toFrame.origin.y = 0;
38 |
39 | [UIView animateWithDuration:[self transitionDuration:transitionContext]
40 | delay:0
41 | usingSpringWithDamping:0.92f
42 | initialSpringVelocity:17
43 | options:UIViewAnimationOptionCurveEaseIn
44 | animations:^{
45 | [fromVC.view setFrame:fromFrame];
46 | [toVC.view setFrame:toFrame];
47 | } completion:^(BOOL finished) {
48 | [transitionContext completeTransition:YES];
49 | }];
50 |
51 | }
52 | else {
53 |
54 | [containerView addSubview:toVC.view];
55 | [containerView addSubview:fromVC.view];
56 |
57 | CGRect fromFrame = fromVC.view.frame;
58 | CGRect toFrame = toVC.view.frame;
59 |
60 | fromFrame.origin.y = containerView.frame.size.height;
61 |
62 | toFrame.origin.y = -containerView.frame.size.height;
63 | [toVC.view setFrame:toFrame];
64 | toFrame.origin.y = 0;
65 |
66 |
67 | [UIView animateWithDuration:[self transitionDuration:transitionContext]
68 | delay:0
69 | usingSpringWithDamping:0.92f
70 | initialSpringVelocity:17
71 | options:UIViewAnimationOptionCurveEaseIn
72 | animations:^{
73 | [fromVC.view setFrame:fromFrame];
74 | [toVC.view setFrame:toFrame];
75 | } completion:^(BOOL finished) {
76 | [transitionContext completeTransition:YES];
77 | }];
78 |
79 | }
80 | }
81 |
82 | @end
83 |
--------------------------------------------------------------------------------
/DMCustomTransition/Storyboard.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
29 |
39 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
--------------------------------------------------------------------------------
/DMCustomTransition.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 9FB79BCB1845000100333376 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FB79BCA1845000100333376 /* Foundation.framework */; };
11 | 9FB79BCD1845000100333376 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FB79BCC1845000100333376 /* CoreGraphics.framework */; };
12 | 9FB79BCF1845000100333376 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FB79BCE1845000100333376 /* UIKit.framework */; };
13 | 9FB79BD51845000100333376 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9FB79BD31845000100333376 /* InfoPlist.strings */; };
14 | 9FB79BD71845000100333376 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FB79BD61845000100333376 /* main.m */; };
15 | 9FB79BDB1845000100333376 /* DMAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FB79BDA1845000100333376 /* DMAppDelegate.m */; };
16 | 9FB79BDD1845000100333376 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9FB79BDC1845000100333376 /* Images.xcassets */; };
17 | 9FB79BE41845000200333376 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FB79BE31845000200333376 /* XCTest.framework */; };
18 | 9FB79BE51845000200333376 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FB79BCA1845000100333376 /* Foundation.framework */; };
19 | 9FB79BE61845000200333376 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FB79BCE1845000100333376 /* UIKit.framework */; };
20 | 9FB79BEE1845000200333376 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9FB79BEC1845000200333376 /* InfoPlist.strings */; };
21 | 9FB79BF01845000200333376 /* DMCustomTransitionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FB79BEF1845000200333376 /* DMCustomTransitionTests.m */; };
22 | 9FB79BFB1845003600333376 /* DMViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FB79BFA1845003600333376 /* DMViewController.m */; };
23 | 9FB79BFF1845005700333376 /* DMBaseTransition.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FB79BFE1845005700333376 /* DMBaseTransition.m */; };
24 | 9FB79C021845006900333376 /* DMAlphaTransition.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FB79C011845006900333376 /* DMAlphaTransition.m */; };
25 | 9FB79C051845007700333376 /* DMScaleTransition.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FB79C041845007700333376 /* DMScaleTransition.m */; };
26 | 9FB79C08184501E600333376 /* DMSlideTransition.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FB79C07184501E600333376 /* DMSlideTransition.m */; };
27 | 9FB79C0B1845023800333376 /* DMPresentedViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FB79C0A1845023800333376 /* DMPresentedViewController.m */; };
28 | 9FB79C0D1845024900333376 /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9FB79C0C1845024900333376 /* Storyboard.storyboard */; };
29 | /* End PBXBuildFile section */
30 |
31 | /* Begin PBXContainerItemProxy section */
32 | 9FB79BE71845000200333376 /* PBXContainerItemProxy */ = {
33 | isa = PBXContainerItemProxy;
34 | containerPortal = 9FB79BBF1845000100333376 /* Project object */;
35 | proxyType = 1;
36 | remoteGlobalIDString = 9FB79BC61845000100333376;
37 | remoteInfo = DMCustomTransition;
38 | };
39 | /* End PBXContainerItemProxy section */
40 |
41 | /* Begin PBXFileReference section */
42 | 9FB79BC71845000100333376 /* DMCustomTransition.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DMCustomTransition.app; sourceTree = BUILT_PRODUCTS_DIR; };
43 | 9FB79BCA1845000100333376 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
44 | 9FB79BCC1845000100333376 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
45 | 9FB79BCE1845000100333376 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
46 | 9FB79BD21845000100333376 /* DMCustomTransition-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DMCustomTransition-Info.plist"; sourceTree = ""; };
47 | 9FB79BD41845000100333376 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
48 | 9FB79BD61845000100333376 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
49 | 9FB79BD81845000100333376 /* DMCustomTransition-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DMCustomTransition-Prefix.pch"; sourceTree = ""; };
50 | 9FB79BD91845000100333376 /* DMAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DMAppDelegate.h; sourceTree = ""; };
51 | 9FB79BDA1845000100333376 /* DMAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DMAppDelegate.m; sourceTree = ""; };
52 | 9FB79BDC1845000100333376 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
53 | 9FB79BE21845000200333376 /* DMCustomTransitionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DMCustomTransitionTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
54 | 9FB79BE31845000200333376 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
55 | 9FB79BEB1845000200333376 /* DMCustomTransitionTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DMCustomTransitionTests-Info.plist"; sourceTree = ""; };
56 | 9FB79BED1845000200333376 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
57 | 9FB79BEF1845000200333376 /* DMCustomTransitionTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DMCustomTransitionTests.m; sourceTree = ""; };
58 | 9FB79BF91845003600333376 /* DMViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DMViewController.h; sourceTree = ""; };
59 | 9FB79BFA1845003600333376 /* DMViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DMViewController.m; sourceTree = ""; };
60 | 9FB79BFD1845005700333376 /* DMBaseTransition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DMBaseTransition.h; path = Transitions/DMBaseTransition.h; sourceTree = SOURCE_ROOT; };
61 | 9FB79BFE1845005700333376 /* DMBaseTransition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DMBaseTransition.m; path = Transitions/DMBaseTransition.m; sourceTree = SOURCE_ROOT; };
62 | 9FB79C001845006900333376 /* DMAlphaTransition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DMAlphaTransition.h; path = Transitions/DMAlphaTransition.h; sourceTree = SOURCE_ROOT; };
63 | 9FB79C011845006900333376 /* DMAlphaTransition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DMAlphaTransition.m; path = Transitions/DMAlphaTransition.m; sourceTree = SOURCE_ROOT; };
64 | 9FB79C031845007700333376 /* DMScaleTransition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DMScaleTransition.h; path = Transitions/DMScaleTransition.h; sourceTree = SOURCE_ROOT; };
65 | 9FB79C041845007700333376 /* DMScaleTransition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DMScaleTransition.m; path = Transitions/DMScaleTransition.m; sourceTree = SOURCE_ROOT; };
66 | 9FB79C06184501E600333376 /* DMSlideTransition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DMSlideTransition.h; path = Transitions/DMSlideTransition.h; sourceTree = SOURCE_ROOT; };
67 | 9FB79C07184501E600333376 /* DMSlideTransition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DMSlideTransition.m; path = Transitions/DMSlideTransition.m; sourceTree = SOURCE_ROOT; };
68 | 9FB79C091845023800333376 /* DMPresentedViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DMPresentedViewController.h; sourceTree = ""; };
69 | 9FB79C0A1845023800333376 /* DMPresentedViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DMPresentedViewController.m; sourceTree = ""; };
70 | 9FB79C0C1845024900333376 /* Storyboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Storyboard.storyboard; sourceTree = ""; };
71 | /* End PBXFileReference section */
72 |
73 | /* Begin PBXFrameworksBuildPhase section */
74 | 9FB79BC41845000100333376 /* Frameworks */ = {
75 | isa = PBXFrameworksBuildPhase;
76 | buildActionMask = 2147483647;
77 | files = (
78 | 9FB79BCD1845000100333376 /* CoreGraphics.framework in Frameworks */,
79 | 9FB79BCF1845000100333376 /* UIKit.framework in Frameworks */,
80 | 9FB79BCB1845000100333376 /* Foundation.framework in Frameworks */,
81 | );
82 | runOnlyForDeploymentPostprocessing = 0;
83 | };
84 | 9FB79BDF1845000200333376 /* Frameworks */ = {
85 | isa = PBXFrameworksBuildPhase;
86 | buildActionMask = 2147483647;
87 | files = (
88 | 9FB79BE41845000200333376 /* XCTest.framework in Frameworks */,
89 | 9FB79BE61845000200333376 /* UIKit.framework in Frameworks */,
90 | 9FB79BE51845000200333376 /* Foundation.framework in Frameworks */,
91 | );
92 | runOnlyForDeploymentPostprocessing = 0;
93 | };
94 | /* End PBXFrameworksBuildPhase section */
95 |
96 | /* Begin PBXGroup section */
97 | 9FB79BBE1845000100333376 = {
98 | isa = PBXGroup;
99 | children = (
100 | 9FB79BD01845000100333376 /* DMCustomTransition */,
101 | 9FB79BE91845000200333376 /* DMCustomTransitionTests */,
102 | 9FB79BC91845000100333376 /* Frameworks */,
103 | 9FB79BC81845000100333376 /* Products */,
104 | );
105 | sourceTree = "";
106 | };
107 | 9FB79BC81845000100333376 /* Products */ = {
108 | isa = PBXGroup;
109 | children = (
110 | 9FB79BC71845000100333376 /* DMCustomTransition.app */,
111 | 9FB79BE21845000200333376 /* DMCustomTransitionTests.xctest */,
112 | );
113 | name = Products;
114 | sourceTree = "";
115 | };
116 | 9FB79BC91845000100333376 /* Frameworks */ = {
117 | isa = PBXGroup;
118 | children = (
119 | 9FB79BCA1845000100333376 /* Foundation.framework */,
120 | 9FB79BCC1845000100333376 /* CoreGraphics.framework */,
121 | 9FB79BCE1845000100333376 /* UIKit.framework */,
122 | 9FB79BE31845000200333376 /* XCTest.framework */,
123 | );
124 | name = Frameworks;
125 | sourceTree = "";
126 | };
127 | 9FB79BD01845000100333376 /* DMCustomTransition */ = {
128 | isa = PBXGroup;
129 | children = (
130 | 9FB79BFC1845003B00333376 /* Transition */,
131 | 9FB79BD91845000100333376 /* DMAppDelegate.h */,
132 | 9FB79BDA1845000100333376 /* DMAppDelegate.m */,
133 | 9FB79BF91845003600333376 /* DMViewController.h */,
134 | 9FB79BFA1845003600333376 /* DMViewController.m */,
135 | 9FB79C091845023800333376 /* DMPresentedViewController.h */,
136 | 9FB79C0A1845023800333376 /* DMPresentedViewController.m */,
137 | 9FB79C0C1845024900333376 /* Storyboard.storyboard */,
138 | 9FB79BDC1845000100333376 /* Images.xcassets */,
139 | 9FB79BD11845000100333376 /* Supporting Files */,
140 | );
141 | path = DMCustomTransition;
142 | sourceTree = "";
143 | };
144 | 9FB79BD11845000100333376 /* Supporting Files */ = {
145 | isa = PBXGroup;
146 | children = (
147 | 9FB79BD21845000100333376 /* DMCustomTransition-Info.plist */,
148 | 9FB79BD31845000100333376 /* InfoPlist.strings */,
149 | 9FB79BD61845000100333376 /* main.m */,
150 | 9FB79BD81845000100333376 /* DMCustomTransition-Prefix.pch */,
151 | );
152 | name = "Supporting Files";
153 | sourceTree = "";
154 | };
155 | 9FB79BE91845000200333376 /* DMCustomTransitionTests */ = {
156 | isa = PBXGroup;
157 | children = (
158 | 9FB79BEF1845000200333376 /* DMCustomTransitionTests.m */,
159 | 9FB79BEA1845000200333376 /* Supporting Files */,
160 | );
161 | path = DMCustomTransitionTests;
162 | sourceTree = "";
163 | };
164 | 9FB79BEA1845000200333376 /* Supporting Files */ = {
165 | isa = PBXGroup;
166 | children = (
167 | 9FB79BEB1845000200333376 /* DMCustomTransitionTests-Info.plist */,
168 | 9FB79BEC1845000200333376 /* InfoPlist.strings */,
169 | );
170 | name = "Supporting Files";
171 | sourceTree = "";
172 | };
173 | 9FB79BFC1845003B00333376 /* Transition */ = {
174 | isa = PBXGroup;
175 | children = (
176 | 9FB79BFD1845005700333376 /* DMBaseTransition.h */,
177 | 9FB79BFE1845005700333376 /* DMBaseTransition.m */,
178 | 9FB79C001845006900333376 /* DMAlphaTransition.h */,
179 | 9FB79C011845006900333376 /* DMAlphaTransition.m */,
180 | 9FB79C031845007700333376 /* DMScaleTransition.h */,
181 | 9FB79C041845007700333376 /* DMScaleTransition.m */,
182 | 9FB79C06184501E600333376 /* DMSlideTransition.h */,
183 | 9FB79C07184501E600333376 /* DMSlideTransition.m */,
184 | );
185 | name = Transition;
186 | sourceTree = "";
187 | };
188 | /* End PBXGroup section */
189 |
190 | /* Begin PBXNativeTarget section */
191 | 9FB79BC61845000100333376 /* DMCustomTransition */ = {
192 | isa = PBXNativeTarget;
193 | buildConfigurationList = 9FB79BF31845000200333376 /* Build configuration list for PBXNativeTarget "DMCustomTransition" */;
194 | buildPhases = (
195 | 9FB79BC31845000100333376 /* Sources */,
196 | 9FB79BC41845000100333376 /* Frameworks */,
197 | 9FB79BC51845000100333376 /* Resources */,
198 | );
199 | buildRules = (
200 | );
201 | dependencies = (
202 | );
203 | name = DMCustomTransition;
204 | productName = DMCustomTransition;
205 | productReference = 9FB79BC71845000100333376 /* DMCustomTransition.app */;
206 | productType = "com.apple.product-type.application";
207 | };
208 | 9FB79BE11845000200333376 /* DMCustomTransitionTests */ = {
209 | isa = PBXNativeTarget;
210 | buildConfigurationList = 9FB79BF61845000200333376 /* Build configuration list for PBXNativeTarget "DMCustomTransitionTests" */;
211 | buildPhases = (
212 | 9FB79BDE1845000200333376 /* Sources */,
213 | 9FB79BDF1845000200333376 /* Frameworks */,
214 | 9FB79BE01845000200333376 /* Resources */,
215 | );
216 | buildRules = (
217 | );
218 | dependencies = (
219 | 9FB79BE81845000200333376 /* PBXTargetDependency */,
220 | );
221 | name = DMCustomTransitionTests;
222 | productName = DMCustomTransitionTests;
223 | productReference = 9FB79BE21845000200333376 /* DMCustomTransitionTests.xctest */;
224 | productType = "com.apple.product-type.bundle.unit-test";
225 | };
226 | /* End PBXNativeTarget section */
227 |
228 | /* Begin PBXProject section */
229 | 9FB79BBF1845000100333376 /* Project object */ = {
230 | isa = PBXProject;
231 | attributes = {
232 | CLASSPREFIX = DM;
233 | LastUpgradeCheck = 0510;
234 | ORGANIZATIONNAME = "Thomas Ricouard";
235 | TargetAttributes = {
236 | 9FB79BE11845000200333376 = {
237 | TestTargetID = 9FB79BC61845000100333376;
238 | };
239 | };
240 | };
241 | buildConfigurationList = 9FB79BC21845000100333376 /* Build configuration list for PBXProject "DMCustomTransition" */;
242 | compatibilityVersion = "Xcode 3.2";
243 | developmentRegion = English;
244 | hasScannedForEncodings = 0;
245 | knownRegions = (
246 | en,
247 | );
248 | mainGroup = 9FB79BBE1845000100333376;
249 | productRefGroup = 9FB79BC81845000100333376 /* Products */;
250 | projectDirPath = "";
251 | projectRoot = "";
252 | targets = (
253 | 9FB79BC61845000100333376 /* DMCustomTransition */,
254 | 9FB79BE11845000200333376 /* DMCustomTransitionTests */,
255 | );
256 | };
257 | /* End PBXProject section */
258 |
259 | /* Begin PBXResourcesBuildPhase section */
260 | 9FB79BC51845000100333376 /* Resources */ = {
261 | isa = PBXResourcesBuildPhase;
262 | buildActionMask = 2147483647;
263 | files = (
264 | 9FB79BD51845000100333376 /* InfoPlist.strings in Resources */,
265 | 9FB79BDD1845000100333376 /* Images.xcassets in Resources */,
266 | 9FB79C0D1845024900333376 /* Storyboard.storyboard in Resources */,
267 | );
268 | runOnlyForDeploymentPostprocessing = 0;
269 | };
270 | 9FB79BE01845000200333376 /* Resources */ = {
271 | isa = PBXResourcesBuildPhase;
272 | buildActionMask = 2147483647;
273 | files = (
274 | 9FB79BEE1845000200333376 /* InfoPlist.strings in Resources */,
275 | );
276 | runOnlyForDeploymentPostprocessing = 0;
277 | };
278 | /* End PBXResourcesBuildPhase section */
279 |
280 | /* Begin PBXSourcesBuildPhase section */
281 | 9FB79BC31845000100333376 /* Sources */ = {
282 | isa = PBXSourcesBuildPhase;
283 | buildActionMask = 2147483647;
284 | files = (
285 | 9FB79C0B1845023800333376 /* DMPresentedViewController.m in Sources */,
286 | 9FB79C051845007700333376 /* DMScaleTransition.m in Sources */,
287 | 9FB79C08184501E600333376 /* DMSlideTransition.m in Sources */,
288 | 9FB79BFF1845005700333376 /* DMBaseTransition.m in Sources */,
289 | 9FB79BD71845000100333376 /* main.m in Sources */,
290 | 9FB79BFB1845003600333376 /* DMViewController.m in Sources */,
291 | 9FB79C021845006900333376 /* DMAlphaTransition.m in Sources */,
292 | 9FB79BDB1845000100333376 /* DMAppDelegate.m in Sources */,
293 | );
294 | runOnlyForDeploymentPostprocessing = 0;
295 | };
296 | 9FB79BDE1845000200333376 /* Sources */ = {
297 | isa = PBXSourcesBuildPhase;
298 | buildActionMask = 2147483647;
299 | files = (
300 | 9FB79BF01845000200333376 /* DMCustomTransitionTests.m in Sources */,
301 | );
302 | runOnlyForDeploymentPostprocessing = 0;
303 | };
304 | /* End PBXSourcesBuildPhase section */
305 |
306 | /* Begin PBXTargetDependency section */
307 | 9FB79BE81845000200333376 /* PBXTargetDependency */ = {
308 | isa = PBXTargetDependency;
309 | target = 9FB79BC61845000100333376 /* DMCustomTransition */;
310 | targetProxy = 9FB79BE71845000200333376 /* PBXContainerItemProxy */;
311 | };
312 | /* End PBXTargetDependency section */
313 |
314 | /* Begin PBXVariantGroup section */
315 | 9FB79BD31845000100333376 /* InfoPlist.strings */ = {
316 | isa = PBXVariantGroup;
317 | children = (
318 | 9FB79BD41845000100333376 /* en */,
319 | );
320 | name = InfoPlist.strings;
321 | sourceTree = "";
322 | };
323 | 9FB79BEC1845000200333376 /* InfoPlist.strings */ = {
324 | isa = PBXVariantGroup;
325 | children = (
326 | 9FB79BED1845000200333376 /* en */,
327 | );
328 | name = InfoPlist.strings;
329 | sourceTree = "";
330 | };
331 | /* End PBXVariantGroup section */
332 |
333 | /* Begin XCBuildConfiguration section */
334 | 9FB79BF11845000200333376 /* Debug */ = {
335 | isa = XCBuildConfiguration;
336 | buildSettings = {
337 | ALWAYS_SEARCH_USER_PATHS = NO;
338 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
339 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
340 | CLANG_CXX_LIBRARY = "libc++";
341 | CLANG_ENABLE_MODULES = YES;
342 | CLANG_ENABLE_OBJC_ARC = YES;
343 | CLANG_WARN_BOOL_CONVERSION = YES;
344 | CLANG_WARN_CONSTANT_CONVERSION = YES;
345 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
346 | CLANG_WARN_EMPTY_BODY = YES;
347 | CLANG_WARN_ENUM_CONVERSION = YES;
348 | CLANG_WARN_INT_CONVERSION = YES;
349 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
350 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
351 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
352 | COPY_PHASE_STRIP = NO;
353 | GCC_C_LANGUAGE_STANDARD = gnu99;
354 | GCC_DYNAMIC_NO_PIC = NO;
355 | GCC_OPTIMIZATION_LEVEL = 0;
356 | GCC_PREPROCESSOR_DEFINITIONS = (
357 | "DEBUG=1",
358 | "$(inherited)",
359 | );
360 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
363 | GCC_WARN_UNDECLARED_SELECTOR = YES;
364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
365 | GCC_WARN_UNUSED_FUNCTION = YES;
366 | GCC_WARN_UNUSED_VARIABLE = YES;
367 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
368 | ONLY_ACTIVE_ARCH = YES;
369 | SDKROOT = iphoneos;
370 | };
371 | name = Debug;
372 | };
373 | 9FB79BF21845000200333376 /* Release */ = {
374 | isa = XCBuildConfiguration;
375 | buildSettings = {
376 | ALWAYS_SEARCH_USER_PATHS = NO;
377 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
378 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
379 | CLANG_CXX_LIBRARY = "libc++";
380 | CLANG_ENABLE_MODULES = YES;
381 | CLANG_ENABLE_OBJC_ARC = YES;
382 | CLANG_WARN_BOOL_CONVERSION = YES;
383 | CLANG_WARN_CONSTANT_CONVERSION = YES;
384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
385 | CLANG_WARN_EMPTY_BODY = YES;
386 | CLANG_WARN_ENUM_CONVERSION = YES;
387 | CLANG_WARN_INT_CONVERSION = YES;
388 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
389 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
390 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
391 | COPY_PHASE_STRIP = YES;
392 | ENABLE_NS_ASSERTIONS = NO;
393 | GCC_C_LANGUAGE_STANDARD = gnu99;
394 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
395 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
396 | GCC_WARN_UNDECLARED_SELECTOR = YES;
397 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
398 | GCC_WARN_UNUSED_FUNCTION = YES;
399 | GCC_WARN_UNUSED_VARIABLE = YES;
400 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
401 | SDKROOT = iphoneos;
402 | VALIDATE_PRODUCT = YES;
403 | };
404 | name = Release;
405 | };
406 | 9FB79BF41845000200333376 /* Debug */ = {
407 | isa = XCBuildConfiguration;
408 | buildSettings = {
409 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
410 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
411 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
412 | GCC_PREFIX_HEADER = "DMCustomTransition/DMCustomTransition-Prefix.pch";
413 | INFOPLIST_FILE = "DMCustomTransition/DMCustomTransition-Info.plist";
414 | PRODUCT_NAME = "$(TARGET_NAME)";
415 | WRAPPER_EXTENSION = app;
416 | };
417 | name = Debug;
418 | };
419 | 9FB79BF51845000200333376 /* Release */ = {
420 | isa = XCBuildConfiguration;
421 | buildSettings = {
422 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
423 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
424 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
425 | GCC_PREFIX_HEADER = "DMCustomTransition/DMCustomTransition-Prefix.pch";
426 | INFOPLIST_FILE = "DMCustomTransition/DMCustomTransition-Info.plist";
427 | PRODUCT_NAME = "$(TARGET_NAME)";
428 | WRAPPER_EXTENSION = app;
429 | };
430 | name = Release;
431 | };
432 | 9FB79BF71845000200333376 /* Debug */ = {
433 | isa = XCBuildConfiguration;
434 | buildSettings = {
435 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
436 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/DMCustomTransition.app/DMCustomTransition";
437 | FRAMEWORK_SEARCH_PATHS = (
438 | "$(SDKROOT)/Developer/Library/Frameworks",
439 | "$(inherited)",
440 | "$(DEVELOPER_FRAMEWORKS_DIR)",
441 | );
442 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
443 | GCC_PREFIX_HEADER = "DMCustomTransition/DMCustomTransition-Prefix.pch";
444 | GCC_PREPROCESSOR_DEFINITIONS = (
445 | "DEBUG=1",
446 | "$(inherited)",
447 | );
448 | INFOPLIST_FILE = "DMCustomTransitionTests/DMCustomTransitionTests-Info.plist";
449 | PRODUCT_NAME = "$(TARGET_NAME)";
450 | TEST_HOST = "$(BUNDLE_LOADER)";
451 | WRAPPER_EXTENSION = xctest;
452 | };
453 | name = Debug;
454 | };
455 | 9FB79BF81845000200333376 /* Release */ = {
456 | isa = XCBuildConfiguration;
457 | buildSettings = {
458 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
459 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/DMCustomTransition.app/DMCustomTransition";
460 | FRAMEWORK_SEARCH_PATHS = (
461 | "$(SDKROOT)/Developer/Library/Frameworks",
462 | "$(inherited)",
463 | "$(DEVELOPER_FRAMEWORKS_DIR)",
464 | );
465 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
466 | GCC_PREFIX_HEADER = "DMCustomTransition/DMCustomTransition-Prefix.pch";
467 | INFOPLIST_FILE = "DMCustomTransitionTests/DMCustomTransitionTests-Info.plist";
468 | PRODUCT_NAME = "$(TARGET_NAME)";
469 | TEST_HOST = "$(BUNDLE_LOADER)";
470 | WRAPPER_EXTENSION = xctest;
471 | };
472 | name = Release;
473 | };
474 | /* End XCBuildConfiguration section */
475 |
476 | /* Begin XCConfigurationList section */
477 | 9FB79BC21845000100333376 /* Build configuration list for PBXProject "DMCustomTransition" */ = {
478 | isa = XCConfigurationList;
479 | buildConfigurations = (
480 | 9FB79BF11845000200333376 /* Debug */,
481 | 9FB79BF21845000200333376 /* Release */,
482 | );
483 | defaultConfigurationIsVisible = 0;
484 | defaultConfigurationName = Release;
485 | };
486 | 9FB79BF31845000200333376 /* Build configuration list for PBXNativeTarget "DMCustomTransition" */ = {
487 | isa = XCConfigurationList;
488 | buildConfigurations = (
489 | 9FB79BF41845000200333376 /* Debug */,
490 | 9FB79BF51845000200333376 /* Release */,
491 | );
492 | defaultConfigurationIsVisible = 0;
493 | defaultConfigurationName = Release;
494 | };
495 | 9FB79BF61845000200333376 /* Build configuration list for PBXNativeTarget "DMCustomTransitionTests" */ = {
496 | isa = XCConfigurationList;
497 | buildConfigurations = (
498 | 9FB79BF71845000200333376 /* Debug */,
499 | 9FB79BF81845000200333376 /* Release */,
500 | );
501 | defaultConfigurationIsVisible = 0;
502 | defaultConfigurationName = Release;
503 | };
504 | /* End XCConfigurationList section */
505 | };
506 | rootObject = 9FB79BBF1845000100333376 /* Project object */;
507 | }
508 |
--------------------------------------------------------------------------------