├── README.md
├── NavigationPresent.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
├── xcuserdata
│ └── kamous.xcuserdatad
│ │ └── xcschemes
│ │ └── NavigationPresent.xcscheme
└── project.pbxproj
└── NavigationPresent
├── VC
├── ViewControllerA.h
├── ViewControllerB.h
├── ViewControllerA.m
└── ViewControllerB.m
├── AppDelegate.h
├── PushAnimation
├── PPTransitionDismissPopStyleAnimator.h
├── PPTransitionPresenPushStyleAnimator.h
├── BaseViewController.h
├── PPTransitionDismissPopStyleAnimator.m
├── PPTransitionPresenPushStyleAnimator.m
└── BaseViewController.m
├── main.m
├── Assets.xcassets
└── AppIcon.appiconset
│ └── Contents.json
├── Info.plist
├── Base.lproj
├── LaunchScreen.storyboard
└── Main.storyboard
└── AppDelegate.m
/README.md:
--------------------------------------------------------------------------------
1 | # NavigationPresent
2 | 自定义push样式的present动画
3 |
--------------------------------------------------------------------------------
/NavigationPresent.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/NavigationPresent/VC/ViewControllerA.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewControllerA.h
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2016/12/27.
6 | // Copyright © 2016年 kamous. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "BaseViewController.h"
11 |
12 | @interface ViewControllerA : BaseViewController
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/NavigationPresent/VC/ViewControllerB.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewControllerB.h
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2016/12/27.
6 | // Copyright © 2016年 kamous. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "BaseViewController.h"
11 |
12 | @interface ViewControllerB : BaseViewController
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/NavigationPresent/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2016/12/27.
6 | // Copyright © 2016年 kamous. 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 |
--------------------------------------------------------------------------------
/NavigationPresent/PushAnimation/PPTransitionDismissPopStyleAnimator.h:
--------------------------------------------------------------------------------
1 | //
2 | // PPTransitionPresentingPopAnimator.h
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2017/1/8.
6 | // Copyright © 2017年 kamous. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PPTransitionDismissPopStyleAnimator : NSObject
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/NavigationPresent/PushAnimation/PPTransitionPresenPushStyleAnimator.h:
--------------------------------------------------------------------------------
1 | //
2 | // PPTransitionPresentingPushAnimator.h
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2017/1/7.
6 | // Copyright © 2017年 kamous. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PPTransitionPresenPushStyleAnimator : NSObject
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/NavigationPresent/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2016/12/27.
6 | // Copyright © 2016年 kamous. 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 |
--------------------------------------------------------------------------------
/NavigationPresent/PushAnimation/BaseViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // BaseViewController.h
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2017/1/8.
6 | // Copyright © 2017年 kamous. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface BaseViewController : UIViewController
12 |
13 | - (void)presentViewController:(UIViewController *)viewControllerToPresent
14 | animated:(BOOL)animated
15 | completion:(void (^)(void))completion
16 | pushStyle:(BOOL)isPushStyle;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/NavigationPresent/VC/ViewControllerA.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewControllerA.m
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2016/12/27.
6 | // Copyright © 2016年 kamous. All rights reserved.
7 | //
8 |
9 | #import "ViewControllerA.h"
10 |
11 | @interface ViewControllerA ()
12 |
13 | @end
14 |
15 | @implementation ViewControllerA
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | // [self.navigationController setNavigationBarHidden:YES];
20 | // Do any additional setup after loading the view.
21 | }
22 |
23 | - (void)didReceiveMemoryWarning {
24 | [super didReceiveMemoryWarning];
25 | // Dispose of any resources that can be recreated.
26 | }
27 |
28 |
29 | - (IBAction)onNextButtonPressed:(id)sender {
30 | UINavigationController *navB = [self.storyboard instantiateViewControllerWithIdentifier:@"navigationControllerB"];
31 | // [self.navigationController pushViewController:navB animated:YES];
32 | // [self presentViewController:navB animated:YES completion:NULL];
33 | [self presentViewController:navB animated:YES completion:NULL pushStyle:YES];
34 | }
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/NavigationPresent/VC/ViewControllerB.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewControllerB.m
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2016/12/27.
6 | // Copyright © 2016年 kamous. All rights reserved.
7 | //
8 |
9 | #import "ViewControllerB.h"
10 |
11 | @implementation ViewControllerB
12 |
13 | - (void)viewDidLoad {
14 | [super viewDidLoad];
15 | // Do any additional setup after loading the view.
16 |
17 | self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"X"
18 | style:UIBarButtonItemStylePlain
19 | target:self
20 | action:@selector(onCloseButtonPressed:)];
21 |
22 | }
23 |
24 | - (void)didReceiveMemoryWarning {
25 | [super didReceiveMemoryWarning];
26 | // Dispose of any resources that can be recreated.
27 | }
28 |
29 | - (void)onCloseButtonPressed:(id)sender {
30 | [self dismissViewControllerAnimated:YES completion:NULL];
31 | }
32 |
33 |
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/NavigationPresent/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/NavigationPresent/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/NavigationPresent/PushAnimation/PPTransitionDismissPopStyleAnimator.m:
--------------------------------------------------------------------------------
1 | //
2 | // PPTransitionPresentingPopAnimator.m
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2017/1/8.
6 | // Copyright © 2017年 kamous. All rights reserved.
7 | //
8 |
9 | #import "PPTransitionDismissPopStyleAnimator.h"
10 |
11 | #define kPPTransitionDismissPopStyleDuration 0.3
12 |
13 | @implementation PPTransitionDismissPopStyleAnimator
14 |
15 | - (NSTimeInterval)transitionDuration:(id)transitionContext {
16 | return kPPTransitionDismissPopStyleDuration;
17 | }
18 |
19 | - (void)animateTransition:(id)transitionContext {
20 | UIViewController *fromVC = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];
21 | UIViewController *toVC = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
22 | UIView *container = [transitionContext containerView];
23 |
24 | CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
25 | CGRect fromVCRect = fromVC.view.frame;
26 | fromVCRect.origin.x = 0;
27 | fromVC.view.frame = fromVCRect;
28 |
29 | [container addSubview:toVC.view];
30 | CGRect toVCRect = toVC.view.frame;
31 | toVCRect.origin.x = -screenWidth;
32 | toVC.view.frame = toVCRect;
33 |
34 | fromVCRect.origin.x = screenWidth;
35 | toVCRect.origin.x = 0;
36 |
37 | [UIView animateWithDuration:[self transitionDuration:transitionContext] animations:^{
38 | fromVC.view.frame = fromVCRect;
39 | toVC.view.frame = toVCRect;
40 | } completion:^(BOOL finished){
41 | [transitionContext completeTransition:![transitionContext transitionWasCancelled]];//动画结束、取消必须调用
42 | }];
43 | }
44 | @end
45 |
--------------------------------------------------------------------------------
/NavigationPresent/PushAnimation/PPTransitionPresenPushStyleAnimator.m:
--------------------------------------------------------------------------------
1 | //
2 | // PPTransitionPresentingPushAnimator.m
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2017/1/7.
6 | // Copyright © 2017年 kamous. All rights reserved.
7 | //
8 |
9 | #import "PPTransitionPresenPushStyleAnimator.h"
10 |
11 |
12 | #define kPPTransitionPresenPushStyleDuration 0.3
13 |
14 | @implementation PPTransitionPresenPushStyleAnimator
15 |
16 | - (NSTimeInterval)transitionDuration:(id)transitionContext {
17 | return kPPTransitionPresenPushStyleDuration;
18 | }
19 |
20 |
21 | - (void)animateTransition:(id )transitionContext {
22 | UIViewController *fromVC = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];
23 | UIViewController *toVC = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
24 | UIView *container = [transitionContext containerView];
25 |
26 | CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
27 | CGRect fromVCRect = fromVC.view.frame;
28 | fromVCRect.origin.x = 0;
29 | fromVC.view.frame = fromVCRect;
30 | [container addSubview:toVC.view];
31 |
32 | CGRect toVCRect = toVC.view.frame;
33 | toVCRect.origin.x = screenWidth;
34 | toVC.view.frame = toVCRect;
35 |
36 | fromVCRect.origin.x = -screenWidth;
37 | toVCRect.origin.x = 0;
38 |
39 | [UIView animateWithDuration:[self transitionDuration:transitionContext] animations:^{
40 | fromVC.view.frame = fromVCRect;
41 | toVC.view.frame = toVCRect;
42 | } completion:^(BOOL finished){
43 | [fromVC.view removeFromSuperview];
44 | [transitionContext completeTransition:finished];//动画结束、取消必须调用
45 | }];
46 | }
47 | @end
48 |
--------------------------------------------------------------------------------
/NavigationPresent/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 |
--------------------------------------------------------------------------------
/NavigationPresent/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2016/12/27.
6 | // Copyright © 2016年 kamous. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 |
24 | - (void)applicationWillResignActive:(UIApplication *)application {
25 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
27 | }
28 |
29 |
30 | - (void)applicationDidEnterBackground:(UIApplication *)application {
31 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
33 | }
34 |
35 |
36 | - (void)applicationWillEnterForeground:(UIApplication *)application {
37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
38 | }
39 |
40 |
41 | - (void)applicationDidBecomeActive:(UIApplication *)application {
42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
43 | }
44 |
45 |
46 | - (void)applicationWillTerminate:(UIApplication *)application {
47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
48 | }
49 |
50 |
51 | @end
52 |
--------------------------------------------------------------------------------
/NavigationPresent.xcodeproj/xcuserdata/kamous.xcuserdatad/xcschemes/NavigationPresent.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/NavigationPresent/PushAnimation/BaseViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // BaseViewController.m
3 | // NavigationPresent
4 | //
5 | // Created by kamous on 2017/1/8.
6 | // Copyright © 2017年 kamous. All rights reserved.
7 | //
8 |
9 | #import "BaseViewController.h"
10 | #import "PPTransitionPresenPushStyleAnimator.h"
11 | #import "PPTransitionDismissPopStyleAnimator.h"
12 |
13 | @interface BaseViewController () <
14 | UIViewControllerTransitioningDelegate,
15 | UIGestureRecognizerDelegate
16 | >
17 |
18 | @property (nonatomic, strong) UIPercentDrivenInteractiveTransition *percentDrivenTransition;
19 | @end
20 |
21 | @implementation BaseViewController
22 |
23 | - (void)viewDidLoad {
24 | [super viewDidLoad];
25 | }
26 |
27 | //封装原presentViewController:animated:completion:接口
28 | - (void)presentViewController:(UIViewController *)viewControllerToPresent
29 | animated:(BOOL)animated
30 | completion:(void (^)(void))completion
31 | pushStyle:(BOOL)isPushStyle {
32 |
33 | if (animated && isPushStyle) {
34 | viewControllerToPresent.transitioningDelegate = self;
35 |
36 | //添加自定义的返回手势
37 | UIScreenEdgePanGestureRecognizer *screenGesture = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self
38 | action:@selector(onPanGesture:)];
39 | screenGesture.delegate = self;
40 | screenGesture.edges = UIRectEdgeLeft;
41 | [viewControllerToPresent.view addGestureRecognizer:screenGesture];
42 | if ([viewControllerToPresent isKindOfClass:[UINavigationController class]]) {
43 | [screenGesture requireGestureRecognizerToFail:((UINavigationController*)viewControllerToPresent).interactivePopGestureRecognizer];
44 | }
45 | }
46 |
47 | [self presentViewController:viewControllerToPresent animated:animated completion:completion];
48 | }
49 |
50 | #pragma mark - UIViewControllerTransitioningDelegate
51 | - (nullable id )animationControllerForPresentedController:(UIViewController *)presented
52 | presentingController:(UIViewController *)presenting
53 | sourceController:(UIViewController *)source {
54 | return [PPTransitionPresenPushStyleAnimator new];
55 | }
56 |
57 | - (nullable id )animationControllerForDismissedController:(UIViewController *)dismissed {
58 | return [PPTransitionDismissPopStyleAnimator new];
59 | }
60 |
61 | //返回手势需要实现
62 | - (nullable id )interactionControllerForDismissal:(id )animator {
63 | if ([animator isKindOfClass:[PPTransitionDismissPopStyleAnimator class]]) {
64 | return self.percentDrivenTransition;
65 | }
66 | return nil;
67 | }
68 |
69 | - (id)interactionControllerForPresentation:(id)animator {
70 | if ([animator isKindOfClass:[PPTransitionPresenPushStyleAnimator class]]) {
71 | return self.percentDrivenTransition;
72 | }
73 | return nil;
74 | }
75 |
76 |
77 | #pragma mark - UIGestureRecognizer
78 | - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
79 | return YES;
80 | }
81 |
82 | - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
83 | shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
84 | if ([gestureRecognizer isKindOfClass:[UIScreenEdgePanGestureRecognizer class]]
85 | && [otherGestureRecognizer isKindOfClass:[UIScreenEdgePanGestureRecognizer class]]) {
86 | return NO;//和NavigationController自带的返回手势不能同时执行
87 | } else {
88 | return YES;
89 | }
90 | }
91 |
92 | - (void)onPanGesture:(UIScreenEdgePanGestureRecognizer *)gesture {
93 | float progress = [gesture translationInView:self.view].x / [UIScreen mainScreen].bounds.size.width;
94 | if (gesture.state == UIGestureRecognizerStateBegan) {
95 | self.percentDrivenTransition = [UIPercentDrivenInteractiveTransition new];
96 | [self dismissViewControllerAnimated:YES completion:NULL];
97 | } else if (gesture.state == UIGestureRecognizerStateChanged) {
98 | [self.percentDrivenTransition updateInteractiveTransition:progress];
99 | } else if (gesture.state == UIGestureRecognizerStateCancelled ||
100 | gesture.state == UIGestureRecognizerStateEnded) {
101 | if (progress > 0.5) {
102 | [self.percentDrivenTransition finishInteractiveTransition];
103 | } else {
104 | [self.percentDrivenTransition cancelInteractiveTransition];
105 | }
106 | self.percentDrivenTransition = nil;
107 | }
108 | }
109 |
110 | @end
111 |
--------------------------------------------------------------------------------
/NavigationPresent/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
31 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
73 |
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 |
116 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
--------------------------------------------------------------------------------
/NavigationPresent.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 580B465F1E20E8FC00CFAC9F /* PPTransitionPresenPushStyleAnimator.m in Sources */ = {isa = PBXBuildFile; fileRef = 580B465E1E20E8FC00CFAC9F /* PPTransitionPresenPushStyleAnimator.m */; };
11 | 580B46621E21F47700CFAC9F /* PPTransitionDismissPopStyleAnimator.m in Sources */ = {isa = PBXBuildFile; fileRef = 580B46611E21F47700CFAC9F /* PPTransitionDismissPopStyleAnimator.m */; };
12 | 580B46651E21F63700CFAC9F /* BaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 580B46641E21F63700CFAC9F /* BaseViewController.m */; };
13 | 5888A8791E1224D3001BFB66 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5888A8781E1224D3001BFB66 /* main.m */; };
14 | 5888A87C1E1224D3001BFB66 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5888A87B1E1224D3001BFB66 /* AppDelegate.m */; };
15 | 5888A8821E1224D3001BFB66 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5888A8801E1224D3001BFB66 /* Main.storyboard */; };
16 | 5888A8841E1224D3001BFB66 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5888A8831E1224D3001BFB66 /* Assets.xcassets */; };
17 | 5888A8871E1224D3001BFB66 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5888A8851E1224D3001BFB66 /* LaunchScreen.storyboard */; };
18 | 5888A8931E122DA0001BFB66 /* ViewControllerA.m in Sources */ = {isa = PBXBuildFile; fileRef = 5888A8921E122DA0001BFB66 /* ViewControllerA.m */; };
19 | 5888A8961E122DAE001BFB66 /* ViewControllerB.m in Sources */ = {isa = PBXBuildFile; fileRef = 5888A8951E122DAE001BFB66 /* ViewControllerB.m */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXFileReference section */
23 | 580B465D1E20E8FC00CFAC9F /* PPTransitionPresenPushStyleAnimator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PPTransitionPresenPushStyleAnimator.h; sourceTree = ""; };
24 | 580B465E1E20E8FC00CFAC9F /* PPTransitionPresenPushStyleAnimator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PPTransitionPresenPushStyleAnimator.m; sourceTree = ""; };
25 | 580B46601E21F47700CFAC9F /* PPTransitionDismissPopStyleAnimator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PPTransitionDismissPopStyleAnimator.h; sourceTree = ""; };
26 | 580B46611E21F47700CFAC9F /* PPTransitionDismissPopStyleAnimator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PPTransitionDismissPopStyleAnimator.m; sourceTree = ""; };
27 | 580B46631E21F63700CFAC9F /* BaseViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BaseViewController.h; sourceTree = ""; };
28 | 580B46641E21F63700CFAC9F /* BaseViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BaseViewController.m; sourceTree = ""; };
29 | 5888A8741E1224D3001BFB66 /* NavigationPresent.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NavigationPresent.app; sourceTree = BUILT_PRODUCTS_DIR; };
30 | 5888A8781E1224D3001BFB66 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
31 | 5888A87A1E1224D3001BFB66 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
32 | 5888A87B1E1224D3001BFB66 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
33 | 5888A8811E1224D3001BFB66 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
34 | 5888A8831E1224D3001BFB66 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
35 | 5888A8861E1224D3001BFB66 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
36 | 5888A8881E1224D3001BFB66 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
37 | 5888A8911E122DA0001BFB66 /* ViewControllerA.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewControllerA.h; sourceTree = ""; };
38 | 5888A8921E122DA0001BFB66 /* ViewControllerA.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewControllerA.m; sourceTree = ""; };
39 | 5888A8941E122DAE001BFB66 /* ViewControllerB.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewControllerB.h; sourceTree = ""; };
40 | 5888A8951E122DAE001BFB66 /* ViewControllerB.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewControllerB.m; sourceTree = ""; };
41 | /* End PBXFileReference section */
42 |
43 | /* Begin PBXFrameworksBuildPhase section */
44 | 5888A8711E1224D3001BFB66 /* Frameworks */ = {
45 | isa = PBXFrameworksBuildPhase;
46 | buildActionMask = 2147483647;
47 | files = (
48 | );
49 | runOnlyForDeploymentPostprocessing = 0;
50 | };
51 | /* End PBXFrameworksBuildPhase section */
52 |
53 | /* Begin PBXGroup section */
54 | 5888A86B1E1224D3001BFB66 = {
55 | isa = PBXGroup;
56 | children = (
57 | 5888A8761E1224D3001BFB66 /* NavigationPresent */,
58 | 5888A8751E1224D3001BFB66 /* Products */,
59 | );
60 | sourceTree = "";
61 | };
62 | 5888A8751E1224D3001BFB66 /* Products */ = {
63 | isa = PBXGroup;
64 | children = (
65 | 5888A8741E1224D3001BFB66 /* NavigationPresent.app */,
66 | );
67 | name = Products;
68 | sourceTree = "";
69 | };
70 | 5888A8761E1224D3001BFB66 /* NavigationPresent */ = {
71 | isa = PBXGroup;
72 | children = (
73 | 5888A88F1E122D90001BFB66 /* PushAnimation */,
74 | 5888A8901E122D90001BFB66 /* VC */,
75 | 5888A87A1E1224D3001BFB66 /* AppDelegate.h */,
76 | 5888A87B1E1224D3001BFB66 /* AppDelegate.m */,
77 | 5888A8801E1224D3001BFB66 /* Main.storyboard */,
78 | 5888A8831E1224D3001BFB66 /* Assets.xcassets */,
79 | 5888A8851E1224D3001BFB66 /* LaunchScreen.storyboard */,
80 | 5888A8881E1224D3001BFB66 /* Info.plist */,
81 | 5888A8771E1224D3001BFB66 /* Supporting Files */,
82 | );
83 | path = NavigationPresent;
84 | sourceTree = "";
85 | };
86 | 5888A8771E1224D3001BFB66 /* Supporting Files */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 5888A8781E1224D3001BFB66 /* main.m */,
90 | );
91 | name = "Supporting Files";
92 | sourceTree = "";
93 | };
94 | 5888A88F1E122D90001BFB66 /* PushAnimation */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 580B465D1E20E8FC00CFAC9F /* PPTransitionPresenPushStyleAnimator.h */,
98 | 580B465E1E20E8FC00CFAC9F /* PPTransitionPresenPushStyleAnimator.m */,
99 | 580B46601E21F47700CFAC9F /* PPTransitionDismissPopStyleAnimator.h */,
100 | 580B46611E21F47700CFAC9F /* PPTransitionDismissPopStyleAnimator.m */,
101 | 580B46631E21F63700CFAC9F /* BaseViewController.h */,
102 | 580B46641E21F63700CFAC9F /* BaseViewController.m */,
103 | );
104 | path = PushAnimation;
105 | sourceTree = "";
106 | };
107 | 5888A8901E122D90001BFB66 /* VC */ = {
108 | isa = PBXGroup;
109 | children = (
110 | 5888A8911E122DA0001BFB66 /* ViewControllerA.h */,
111 | 5888A8921E122DA0001BFB66 /* ViewControllerA.m */,
112 | 5888A8941E122DAE001BFB66 /* ViewControllerB.h */,
113 | 5888A8951E122DAE001BFB66 /* ViewControllerB.m */,
114 | );
115 | path = VC;
116 | sourceTree = "";
117 | };
118 | /* End PBXGroup section */
119 |
120 | /* Begin PBXNativeTarget section */
121 | 5888A8731E1224D3001BFB66 /* NavigationPresent */ = {
122 | isa = PBXNativeTarget;
123 | buildConfigurationList = 5888A88B1E1224D3001BFB66 /* Build configuration list for PBXNativeTarget "NavigationPresent" */;
124 | buildPhases = (
125 | 5888A8701E1224D3001BFB66 /* Sources */,
126 | 5888A8711E1224D3001BFB66 /* Frameworks */,
127 | 5888A8721E1224D3001BFB66 /* Resources */,
128 | );
129 | buildRules = (
130 | );
131 | dependencies = (
132 | );
133 | name = NavigationPresent;
134 | productName = NavigationPresent;
135 | productReference = 5888A8741E1224D3001BFB66 /* NavigationPresent.app */;
136 | productType = "com.apple.product-type.application";
137 | };
138 | /* End PBXNativeTarget section */
139 |
140 | /* Begin PBXProject section */
141 | 5888A86C1E1224D3001BFB66 /* Project object */ = {
142 | isa = PBXProject;
143 | attributes = {
144 | LastUpgradeCheck = 0820;
145 | ORGANIZATIONNAME = kamous;
146 | TargetAttributes = {
147 | 5888A8731E1224D3001BFB66 = {
148 | CreatedOnToolsVersion = 8.2.1;
149 | DevelopmentTeam = 78AQRVN48Y;
150 | ProvisioningStyle = Automatic;
151 | };
152 | };
153 | };
154 | buildConfigurationList = 5888A86F1E1224D3001BFB66 /* Build configuration list for PBXProject "NavigationPresent" */;
155 | compatibilityVersion = "Xcode 3.2";
156 | developmentRegion = English;
157 | hasScannedForEncodings = 0;
158 | knownRegions = (
159 | en,
160 | Base,
161 | );
162 | mainGroup = 5888A86B1E1224D3001BFB66;
163 | productRefGroup = 5888A8751E1224D3001BFB66 /* Products */;
164 | projectDirPath = "";
165 | projectRoot = "";
166 | targets = (
167 | 5888A8731E1224D3001BFB66 /* NavigationPresent */,
168 | );
169 | };
170 | /* End PBXProject section */
171 |
172 | /* Begin PBXResourcesBuildPhase section */
173 | 5888A8721E1224D3001BFB66 /* Resources */ = {
174 | isa = PBXResourcesBuildPhase;
175 | buildActionMask = 2147483647;
176 | files = (
177 | 5888A8871E1224D3001BFB66 /* LaunchScreen.storyboard in Resources */,
178 | 5888A8841E1224D3001BFB66 /* Assets.xcassets in Resources */,
179 | 5888A8821E1224D3001BFB66 /* Main.storyboard in Resources */,
180 | );
181 | runOnlyForDeploymentPostprocessing = 0;
182 | };
183 | /* End PBXResourcesBuildPhase section */
184 |
185 | /* Begin PBXSourcesBuildPhase section */
186 | 5888A8701E1224D3001BFB66 /* Sources */ = {
187 | isa = PBXSourcesBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | 5888A87C1E1224D3001BFB66 /* AppDelegate.m in Sources */,
191 | 5888A8961E122DAE001BFB66 /* ViewControllerB.m in Sources */,
192 | 5888A8791E1224D3001BFB66 /* main.m in Sources */,
193 | 5888A8931E122DA0001BFB66 /* ViewControllerA.m in Sources */,
194 | 580B46621E21F47700CFAC9F /* PPTransitionDismissPopStyleAnimator.m in Sources */,
195 | 580B46651E21F63700CFAC9F /* BaseViewController.m in Sources */,
196 | 580B465F1E20E8FC00CFAC9F /* PPTransitionPresenPushStyleAnimator.m in Sources */,
197 | );
198 | runOnlyForDeploymentPostprocessing = 0;
199 | };
200 | /* End PBXSourcesBuildPhase section */
201 |
202 | /* Begin PBXVariantGroup section */
203 | 5888A8801E1224D3001BFB66 /* Main.storyboard */ = {
204 | isa = PBXVariantGroup;
205 | children = (
206 | 5888A8811E1224D3001BFB66 /* Base */,
207 | );
208 | name = Main.storyboard;
209 | sourceTree = "";
210 | };
211 | 5888A8851E1224D3001BFB66 /* LaunchScreen.storyboard */ = {
212 | isa = PBXVariantGroup;
213 | children = (
214 | 5888A8861E1224D3001BFB66 /* Base */,
215 | );
216 | name = LaunchScreen.storyboard;
217 | sourceTree = "";
218 | };
219 | /* End PBXVariantGroup section */
220 |
221 | /* Begin XCBuildConfiguration section */
222 | 5888A8891E1224D3001BFB66 /* Debug */ = {
223 | isa = XCBuildConfiguration;
224 | buildSettings = {
225 | ALWAYS_SEARCH_USER_PATHS = NO;
226 | CLANG_ANALYZER_NONNULL = YES;
227 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
228 | CLANG_CXX_LIBRARY = "libc++";
229 | CLANG_ENABLE_MODULES = YES;
230 | CLANG_ENABLE_OBJC_ARC = YES;
231 | CLANG_WARN_BOOL_CONVERSION = YES;
232 | CLANG_WARN_CONSTANT_CONVERSION = YES;
233 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
234 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
235 | CLANG_WARN_EMPTY_BODY = YES;
236 | CLANG_WARN_ENUM_CONVERSION = YES;
237 | CLANG_WARN_INFINITE_RECURSION = YES;
238 | CLANG_WARN_INT_CONVERSION = YES;
239 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
240 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
241 | CLANG_WARN_UNREACHABLE_CODE = YES;
242 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
243 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
244 | COPY_PHASE_STRIP = NO;
245 | DEBUG_INFORMATION_FORMAT = dwarf;
246 | ENABLE_STRICT_OBJC_MSGSEND = YES;
247 | ENABLE_TESTABILITY = YES;
248 | GCC_C_LANGUAGE_STANDARD = gnu99;
249 | GCC_DYNAMIC_NO_PIC = NO;
250 | GCC_NO_COMMON_BLOCKS = YES;
251 | GCC_OPTIMIZATION_LEVEL = 0;
252 | GCC_PREPROCESSOR_DEFINITIONS = (
253 | "DEBUG=1",
254 | "$(inherited)",
255 | );
256 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
257 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
258 | GCC_WARN_UNDECLARED_SELECTOR = YES;
259 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
260 | GCC_WARN_UNUSED_FUNCTION = YES;
261 | GCC_WARN_UNUSED_VARIABLE = YES;
262 | IPHONEOS_DEPLOYMENT_TARGET = 10.2;
263 | MTL_ENABLE_DEBUG_INFO = YES;
264 | ONLY_ACTIVE_ARCH = YES;
265 | SDKROOT = iphoneos;
266 | TARGETED_DEVICE_FAMILY = "1,2";
267 | };
268 | name = Debug;
269 | };
270 | 5888A88A1E1224D3001BFB66 /* Release */ = {
271 | isa = XCBuildConfiguration;
272 | buildSettings = {
273 | ALWAYS_SEARCH_USER_PATHS = NO;
274 | CLANG_ANALYZER_NONNULL = YES;
275 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
276 | CLANG_CXX_LIBRARY = "libc++";
277 | CLANG_ENABLE_MODULES = YES;
278 | CLANG_ENABLE_OBJC_ARC = YES;
279 | CLANG_WARN_BOOL_CONVERSION = YES;
280 | CLANG_WARN_CONSTANT_CONVERSION = YES;
281 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
282 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
283 | CLANG_WARN_EMPTY_BODY = YES;
284 | CLANG_WARN_ENUM_CONVERSION = YES;
285 | CLANG_WARN_INFINITE_RECURSION = YES;
286 | CLANG_WARN_INT_CONVERSION = YES;
287 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
288 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
289 | CLANG_WARN_UNREACHABLE_CODE = YES;
290 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
291 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
292 | COPY_PHASE_STRIP = NO;
293 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
294 | ENABLE_NS_ASSERTIONS = NO;
295 | ENABLE_STRICT_OBJC_MSGSEND = YES;
296 | GCC_C_LANGUAGE_STANDARD = gnu99;
297 | GCC_NO_COMMON_BLOCKS = YES;
298 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
299 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
300 | GCC_WARN_UNDECLARED_SELECTOR = YES;
301 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
302 | GCC_WARN_UNUSED_FUNCTION = YES;
303 | GCC_WARN_UNUSED_VARIABLE = YES;
304 | IPHONEOS_DEPLOYMENT_TARGET = 10.2;
305 | MTL_ENABLE_DEBUG_INFO = NO;
306 | SDKROOT = iphoneos;
307 | TARGETED_DEVICE_FAMILY = "1,2";
308 | VALIDATE_PRODUCT = YES;
309 | };
310 | name = Release;
311 | };
312 | 5888A88C1E1224D3001BFB66 /* Debug */ = {
313 | isa = XCBuildConfiguration;
314 | buildSettings = {
315 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
316 | DEVELOPMENT_TEAM = 78AQRVN48Y;
317 | INFOPLIST_FILE = NavigationPresent/Info.plist;
318 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
320 | PRODUCT_BUNDLE_IDENTIFIER = com.kamous.NavigationPresent;
321 | PRODUCT_NAME = "$(TARGET_NAME)";
322 | };
323 | name = Debug;
324 | };
325 | 5888A88D1E1224D3001BFB66 /* Release */ = {
326 | isa = XCBuildConfiguration;
327 | buildSettings = {
328 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
329 | DEVELOPMENT_TEAM = 78AQRVN48Y;
330 | INFOPLIST_FILE = NavigationPresent/Info.plist;
331 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
332 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
333 | PRODUCT_BUNDLE_IDENTIFIER = com.kamous.NavigationPresent;
334 | PRODUCT_NAME = "$(TARGET_NAME)";
335 | };
336 | name = Release;
337 | };
338 | /* End XCBuildConfiguration section */
339 |
340 | /* Begin XCConfigurationList section */
341 | 5888A86F1E1224D3001BFB66 /* Build configuration list for PBXProject "NavigationPresent" */ = {
342 | isa = XCConfigurationList;
343 | buildConfigurations = (
344 | 5888A8891E1224D3001BFB66 /* Debug */,
345 | 5888A88A1E1224D3001BFB66 /* Release */,
346 | );
347 | defaultConfigurationIsVisible = 0;
348 | defaultConfigurationName = Release;
349 | };
350 | 5888A88B1E1224D3001BFB66 /* Build configuration list for PBXNativeTarget "NavigationPresent" */ = {
351 | isa = XCConfigurationList;
352 | buildConfigurations = (
353 | 5888A88C1E1224D3001BFB66 /* Debug */,
354 | 5888A88D1E1224D3001BFB66 /* Release */,
355 | );
356 | defaultConfigurationIsVisible = 0;
357 | defaultConfigurationName = Release;
358 | };
359 | /* End XCConfigurationList section */
360 | };
361 | rootObject = 5888A86C1E1224D3001BFB66 /* Project object */;
362 | }
363 |
--------------------------------------------------------------------------------