├── NavigationControllerTransitions
├── NavigationControllerTransitions
│ ├── en.lproj
│ │ ├── InfoPlist.strings
│ │ ├── MainWindow.xib
│ │ └── RootViewController.xib
│ ├── RootViewController.h
│ ├── main.m
│ ├── NavigationControllerTransitions-Prefix.pch
│ ├── NavigationControllerTransitionsAppDelegate.h
│ ├── NavigationControllerTransitions-Info.plist
│ ├── NavigationControllerTransitionsAppDelegate.m
│ └── RootViewController.m
└── NavigationControllerTransitions.xcodeproj
│ └── project.pbxproj
├── KTViewTransitions.xcworkspace
└── contents.xcworkspacedata
├── LICENSE
├── README.md
├── UINavigationController+KTTransitions.h
└── UINavigationController+KTTransitions.m
/NavigationControllerTransitions/NavigationControllerTransitions/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/KTViewTransitions.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/NavigationControllerTransitions/NavigationControllerTransitions/RootViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // RootViewController.h
3 | // NavigationControllerTransitions
4 | //
5 | // Created by Kirby Turner on 4/14/11.
6 | // Copyright 2011 White Peak Software Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RootViewController : UITableViewController {
12 |
13 | }
14 |
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/NavigationControllerTransitions/NavigationControllerTransitions/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // NavigationControllerTransitions
4 | //
5 | // Created by Kirby Turner on 4/14/11.
6 | // Copyright 2011 White Peak Software Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | int main(int argc, char *argv[])
12 | {
13 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
14 | int retVal = UIApplicationMain(argc, argv, nil, nil);
15 | [pool release];
16 | return retVal;
17 | }
18 |
--------------------------------------------------------------------------------
/NavigationControllerTransitions/NavigationControllerTransitions/NavigationControllerTransitions-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header for all source files of the 'NavigationControllerTransitions' target in the 'NavigationControllerTransitions' project
3 | //
4 |
5 | #import
6 |
7 | #ifndef __IPHONE_3_0
8 | #warning "This project uses features only available in iPhone SDK 3.0 and later."
9 | #endif
10 |
11 | #ifdef __OBJC__
12 | #import
13 | #import
14 | #endif
15 |
--------------------------------------------------------------------------------
/NavigationControllerTransitions/NavigationControllerTransitions/NavigationControllerTransitionsAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // NavigationControllerTransitionsAppDelegate.h
3 | // NavigationControllerTransitions
4 | //
5 | // Created by Kirby Turner on 4/14/11.
6 | // Copyright 2011 White Peak Software Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NavigationControllerTransitionsAppDelegate : NSObject {
12 |
13 | }
14 |
15 | @property (nonatomic, retain) IBOutlet UIWindow *window;
16 |
17 | @property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2011 White Peak Software Inc
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/NavigationControllerTransitions/NavigationControllerTransitions/NavigationControllerTransitions-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIconFile
12 |
13 | CFBundleIdentifier
14 | com.whitepeaksoftware.${PRODUCT_NAME:rfc1034identifier}
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | ${PRODUCT_NAME}
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | ????
25 | CFBundleVersion
26 | 1.0
27 | LSRequiresIPhoneOS
28 |
29 | NSMainNibFile
30 | MainWindow
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | KTViewTransitions
2 | =================
3 |
4 | This is a set of sample iOS projects I'm using to explore ways to animate views. The goal is to create a set of reusable view transition animations that everyone can be used in other projects.
5 |
6 | UINavigationController+KTTransitions
7 | ====================================
8 |
9 | UINavigationController category with view transition animations. Play with the NavigationControllerTransitions sample project to see the transitions in action.
10 |
11 | License
12 | =======
13 |
14 | The MIT License
15 |
16 | Copyright (c) 2011 White Peak Software Inc
17 |
18 | Permission is hereby granted, free of charge, to any person obtaining a copy
19 | of this software and associated documentation files (the "Software"), to deal
20 | in the Software without restriction, including without limitation the rights
21 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22 | copies of the Software, and to permit persons to whom the Software is
23 | furnished to do so, subject to the following conditions:
24 |
25 | The above copyright notice and this permission notice shall be included in
26 | all copies or substantial portions of the Software.
27 |
28 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
34 | THE SOFTWARE.
--------------------------------------------------------------------------------
/UINavigationController+KTTransitions.h:
--------------------------------------------------------------------------------
1 | //
2 | // UINavigationController+KTTransitions.h
3 | //
4 | // Created by Kirby Turner on 4/11/11.
5 | // Copyright 2011 White Peak Software Inc. All rights reserved.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files (the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions:
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 | //
25 |
26 | #import
27 |
28 |
29 | @interface UINavigationController (UINavigationController_KTTransitions)
30 |
31 | - (void)kt_pushViewController:(UIViewController *)viewController explodeFromPoint:(CGPoint)fromPoint;
32 | - (void)kt_popViewControllerImplodeToPoint:(CGPoint)toPoint;
33 |
34 | - (void)kt_pushViewController:(UIViewController *)viewController slideUpWithDuration:(NSTimeInterval)duration;
35 | - (void)kt_popViewController:(UIViewController *)viewController slideDownWithDuration:(NSTimeInterval)duration;
36 |
37 | - (void)kt_pushViewController:(UIViewController *)viewController fadeInWithDuration:(NSTimeInterval)duration;
38 | - (void)kt_popViewController:(UIViewController *)viewController fadeOutWithDuration:(NSTimeInterval)duration;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/NavigationControllerTransitions/NavigationControllerTransitions/NavigationControllerTransitionsAppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // NavigationControllerTransitionsAppDelegate.m
3 | // NavigationControllerTransitions
4 | //
5 | // Created by Kirby Turner on 4/14/11.
6 | // Copyright 2011 White Peak Software Inc. All rights reserved.
7 | //
8 |
9 | #import "NavigationControllerTransitionsAppDelegate.h"
10 |
11 | @implementation NavigationControllerTransitionsAppDelegate
12 |
13 |
14 | @synthesize window=_window;
15 |
16 | @synthesize navigationController=_navigationController;
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
19 | {
20 | // Override point for customization after application launch.
21 | // Add the navigation controller's view to the window and display.
22 | self.window.rootViewController = self.navigationController;
23 | [self.window makeKeyAndVisible];
24 | return YES;
25 | }
26 |
27 | - (void)applicationWillResignActive:(UIApplication *)application
28 | {
29 | /*
30 | 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.
31 | 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.
32 | */
33 | }
34 |
35 | - (void)applicationDidEnterBackground:(UIApplication *)application
36 | {
37 | /*
38 | 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.
39 | If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
40 | */
41 | }
42 |
43 | - (void)applicationWillEnterForeground:(UIApplication *)application
44 | {
45 | /*
46 | 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.
47 | */
48 | }
49 |
50 | - (void)applicationDidBecomeActive:(UIApplication *)application
51 | {
52 | /*
53 | 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.
54 | */
55 | }
56 |
57 | - (void)applicationWillTerminate:(UIApplication *)application
58 | {
59 | /*
60 | Called when the application is about to terminate.
61 | Save data if appropriate.
62 | See also applicationDidEnterBackground:.
63 | */
64 | }
65 |
66 | - (void)dealloc
67 | {
68 | [_window release];
69 | [_navigationController release];
70 | [super dealloc];
71 | }
72 |
73 | @end
74 |
--------------------------------------------------------------------------------
/NavigationControllerTransitions/NavigationControllerTransitions/RootViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // RootViewController.m
3 | // NavigationControllerTransitions
4 | //
5 | // Created by Kirby Turner on 4/14/11.
6 | // Copyright 2011 White Peak Software Inc. All rights reserved.
7 | //
8 |
9 | #import "RootViewController.h"
10 | #import "UINavigationController+KTTransitions.h"
11 |
12 | NSString * const kDictKeyText = @"text";
13 | NSString * const kDictKeySelectorName = @"selectorName";
14 |
15 | @interface RootViewController ()
16 | @property (nonatomic, retain) NSArray *data;
17 | @end
18 |
19 | @implementation RootViewController
20 |
21 | @synthesize data = data_;
22 |
23 | - (void)dealloc
24 | {
25 | [data_ release], data_ = nil;
26 | [super dealloc];
27 | }
28 |
29 | - (void)viewDidLoad
30 | {
31 | [super viewDidLoad];
32 |
33 | [self setTitle:@"Transitions"];
34 |
35 | [[self navigationController] setNavigationBarHidden:YES];
36 |
37 | BOOL isRootViewController = ([[[self navigationController] viewControllers] count] == 1);
38 |
39 | // Setup menu.
40 | NSMutableArray *newArray = [[NSMutableArray alloc] init];
41 | if (isRootViewController) {
42 | [newArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"Push Explode", kDictKeyText, @"pushExplode", kDictKeySelectorName, nil]];
43 | [newArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"Push Slide Up", kDictKeyText, @"pushSlideUp", kDictKeySelectorName, nil]];
44 | [newArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"Push Fade In", kDictKeyText, @"pushFadeIn", kDictKeySelectorName, nil]];
45 |
46 | } else {
47 | [newArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"Pop Implode", kDictKeyText, @"popImplode", kDictKeySelectorName, nil]];
48 | [newArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"Pop Slide Down", kDictKeyText, @"popSlideDown", kDictKeySelectorName, nil]];
49 | [newArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"Pop Fade Out", kDictKeyText, @"popFadeOut", kDictKeySelectorName, nil]];
50 |
51 | }
52 | [self setData:newArray];
53 | [newArray release];
54 | }
55 |
56 | - (void)viewWillAppear:(BOOL)animated
57 | {
58 | [super viewWillAppear:animated];
59 | }
60 |
61 | - (void)viewDidAppear:(BOOL)animated
62 | {
63 | [super viewDidAppear:animated];
64 | }
65 |
66 | - (void)viewWillDisappear:(BOOL)animated
67 | {
68 | [super viewWillDisappear:animated];
69 | }
70 |
71 | - (void)viewDidDisappear:(BOOL)animated
72 | {
73 | [super viewDidDisappear:animated];
74 | }
75 |
76 | - (void)didReceiveMemoryWarning
77 | {
78 | // Releases the view if it doesn't have a superview.
79 | [super didReceiveMemoryWarning];
80 |
81 | // Relinquish ownership any cached data, images, etc that aren't in use.
82 | }
83 |
84 | - (void)viewDidUnload
85 | {
86 | [super viewDidUnload];
87 |
88 | // Relinquish ownership of anything that can be recreated in viewDidLoad or on demand.
89 | // For example: self.myOutlet = nil;
90 | }
91 |
92 |
93 | #pragma mark -
94 | #pragma mark Menu Actions
95 |
96 | - (void)pushExplode
97 | {
98 | NSInteger c = (arc4random() % 10) + 1;
99 | UIColor *color = [UIColor colorWithRed:(c&4) ? 1.0 : 0.0 green:(c&2) ? 1.0 : 0.0 blue:(c&1) ? 1.0 : 0.0 alpha:1.0];
100 |
101 | CGPoint point = CGPointMake(320/2, 480/2);
102 | UIViewController *newController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
103 | [[newController view] setBackgroundColor:color];
104 | [[self navigationController] kt_pushViewController:newController explodeFromPoint:point];
105 | [newController release];
106 | }
107 |
108 | - (void)popImplode
109 | {
110 | CGPoint point = CGPointMake(320/2, 480/2);
111 | UIViewController *newController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
112 | [[self navigationController] kt_popViewControllerImplodeToPoint:point];
113 | [newController release];
114 | }
115 |
116 | - (void)pushSlideUp
117 | {
118 | NSInteger c = (arc4random() % 10) + 1;
119 | UIColor *color = [UIColor colorWithRed:(c&4) ? 1.0 : 0.0 green:(c&2) ? 1.0 : 0.0 blue:(c&1) ? 1.0 : 0.0 alpha:1.0];
120 |
121 | UIViewController *newController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
122 | [[newController view] setBackgroundColor:color];
123 | [[self navigationController] kt_pushViewController:newController slideUpWithDuration:0.6];
124 | [newController release];
125 | }
126 |
127 | - (void)popSlideDown
128 | {
129 | UIViewController *newController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
130 | [[self navigationController] kt_popViewController:newController slideDownWithDuration:0.6];
131 | [newController release];
132 | }
133 |
134 | - (void)pushFadeIn
135 | {
136 | NSInteger c = (arc4random() % 10) + 1;
137 | UIColor *color = [UIColor colorWithRed:(c&4) ? 1.0 : 0.0 green:(c&2) ? 1.0 : 0.0 blue:(c&1) ? 1.0 : 0.0 alpha:1.0];
138 |
139 | UIViewController *newController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
140 | [[newController view] setBackgroundColor:color];
141 | [[self navigationController] kt_pushViewController:newController fadeInWithDuration:0.6];
142 | [newController release];
143 | }
144 |
145 | - (void)popFadeOut
146 | {
147 | UIViewController *newController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
148 | [[self navigationController] kt_popViewController:newController fadeOutWithDuration:0.6];
149 | [newController release];
150 | }
151 |
152 |
153 |
154 | #pragma mark -
155 | #pragma mark UITableViewDataSource and UITableViewDelegate Methods
156 |
157 | // Customize the number of sections in the table view.
158 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
159 | {
160 | return 1;
161 | }
162 |
163 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
164 | {
165 | return [[self data] count];
166 | }
167 |
168 | // Customize the appearance of table view cells.
169 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
170 | {
171 | static NSString *CellIdentifier = @"RootViewControllerCell";
172 |
173 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
174 | if (cell == nil) {
175 | cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
176 | }
177 |
178 | NSDictionary *item = [[self data] objectAtIndex:[indexPath row]];
179 | [[cell textLabel] setText:[item objectForKey:kDictKeyText]];
180 |
181 | // Configure the cell.
182 | return cell;
183 | }
184 |
185 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
186 | {
187 | NSDictionary *item = [[self data] objectAtIndex:[indexPath row]];
188 | SEL selector = NSSelectorFromString([item objectForKey:kDictKeySelectorName]);
189 | [self performSelector:selector];
190 | [tableView deselectRowAtIndexPath:indexPath animated:YES];
191 | }
192 |
193 |
194 | @end
195 |
--------------------------------------------------------------------------------
/UINavigationController+KTTransitions.m:
--------------------------------------------------------------------------------
1 | //
2 | // UINavigationController+KTTransitions.h
3 | //
4 | // Created by Kirby Turner on 4/11/11.
5 | // Copyright 2011 White Peak Software Inc. All rights reserved.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files (the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions:
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 | //
25 |
26 | #import "UINavigationController+KTTransitions.h"
27 |
28 |
29 | @implementation UINavigationController (UINavigationController_KTTransitions)
30 |
31 | #pragma mark -
32 | #pragma mark Explode
33 |
34 | - (void)kt_pushViewController:(UIViewController *)viewController explodeFromPoint:(CGPoint)fromPoint
35 | {
36 | UIView *transitionToView = [viewController view];
37 | CGFloat transitionToAlpha = [transitionToView alpha];
38 | [transitionToView setAlpha:0.3];
39 | [transitionToView setFrame:CGRectMake(fromPoint.x, fromPoint.y, 0, 0)];
40 |
41 | UIViewController *topViewController = [self topViewController];
42 | UIView *transitionFromView = [topViewController view];
43 | [transitionFromView addSubview:transitionToView];
44 |
45 | CGRect bounds = [transitionFromView bounds];
46 |
47 | void (^animations)(void) = ^ {
48 | [transitionToView setFrame:bounds];
49 | [transitionToView setAlpha:transitionToAlpha];
50 | };
51 |
52 | void (^completion)(BOOL) = ^(BOOL finished) {
53 | if (finished) {
54 | [self pushViewController:viewController animated:NO];
55 | }
56 | };
57 |
58 | [UIView animateWithDuration:0.6 animations:animations completion:completion];
59 | }
60 |
61 | - (void)kt_popViewControllerImplodeToPoint:(CGPoint)toPoint
62 | {
63 | UIViewController *transitionFromViewController = [self topViewController];
64 | UIView *transitionFromView = [transitionFromViewController view];
65 |
66 | [self popViewControllerAnimated:NO];
67 |
68 | UIViewController *transitionToViewController = [self topViewController];
69 | UIView *transitionToView = [transitionToViewController view];
70 |
71 | [transitionToView addSubview:transitionFromView];
72 |
73 | void (^animations)(void) = ^ {
74 | [transitionFromView setFrame:CGRectMake(toPoint.x, toPoint.y, 0, 0)];
75 | [transitionFromView setAlpha:0.0];
76 | };
77 |
78 | void (^completion)(BOOL) = ^(BOOL finished) {
79 | [transitionFromView removeFromSuperview];
80 | };
81 |
82 | [UIView animateWithDuration:0.6 animations:animations completion:completion];
83 | }
84 |
85 | #pragma mark -
86 | #pragma mark Slide Up (and pop slide down)
87 | - (void)kt_pushViewController:(UIViewController *)viewController slideUpWithDuration:(NSTimeInterval)duration;
88 | {
89 | UIViewController *topViewController = [self topViewController];
90 | UIView *transitionFromView = [topViewController view];
91 |
92 | UIView *transitionToView = [viewController view];
93 |
94 | CGRect frame = [transitionToView frame];
95 | frame = CGRectOffset(frame, 0, [transitionToView frame].size.height);
96 | [transitionToView setFrame:frame];
97 |
98 | [transitionFromView addSubview:transitionToView];
99 |
100 | CGRect bounds = [transitionFromView bounds];
101 |
102 | void (^animations)(void) = ^ {
103 | [transitionToView setFrame:bounds];
104 | };
105 |
106 | void (^completion)(BOOL) = ^(BOOL finished) {
107 | if (finished) {
108 | [self pushViewController:viewController animated:NO];
109 | }
110 | };
111 |
112 | [UIView animateWithDuration:duration animations:animations completion:completion];
113 | }
114 |
115 | - (void)kt_popViewController:(UIViewController *)viewController slideDownWithDuration:(NSTimeInterval)duration
116 | {
117 | UIViewController *transitionFromViewController = [self topViewController];
118 | UIView *transitionFromView = [transitionFromViewController view];
119 |
120 | [self popViewControllerAnimated:NO];
121 |
122 | UIViewController *transitionToViewController = [self topViewController];
123 | UIView *transitionToView = [transitionToViewController view];
124 |
125 | [transitionToView addSubview:transitionFromView];
126 |
127 | CGRect startFrame = [transitionFromView frame];
128 | CGRect endFrame = CGRectOffset(startFrame, startFrame.origin.x, startFrame.size.height);
129 |
130 | void (^animations)(void) = ^ {
131 | [transitionFromView setFrame:endFrame];
132 | };
133 |
134 | void (^completion)(BOOL) = ^(BOOL finished) {
135 | [transitionFromView removeFromSuperview];
136 | };
137 |
138 | [UIView animateWithDuration:duration animations:animations completion:completion];
139 | }
140 |
141 | #pragma mark -
142 | #pragma mark Fade In and Out
143 |
144 | - (void)kt_pushViewController:(UIViewController *)viewController fadeInWithDuration:(NSTimeInterval)duration
145 | {
146 | UIViewController *topViewController = [self topViewController];
147 | UIView *transitionFromView = [topViewController view];
148 |
149 | UIView *transitionToView = [viewController view];
150 | [transitionToView setAlpha:0.0];
151 |
152 | [transitionFromView addSubview:transitionToView];
153 |
154 | void (^animations)(void) = ^ {
155 | [transitionToView setAlpha:1.0];
156 | };
157 |
158 | void (^completion)(BOOL) = ^(BOOL finished) {
159 | if (finished) {
160 | [self pushViewController:viewController animated:NO];
161 | }
162 | };
163 |
164 | [UIView animateWithDuration:duration animations:animations completion:completion];
165 | }
166 |
167 | - (void)kt_popViewController:(UIViewController *)viewController fadeOutWithDuration:(NSTimeInterval)duration
168 | {
169 | UIViewController *transitionFromViewController = [self topViewController];
170 | UIView *transitionFromView = [transitionFromViewController view];
171 |
172 | [self popViewControllerAnimated:NO];
173 |
174 | UIViewController *transitionToViewController = [self topViewController];
175 | UIView *transitionToView = [transitionToViewController view];
176 |
177 | [transitionToView addSubview:transitionFromView];
178 |
179 | void (^animations)(void) = ^ {
180 | [transitionFromView setAlpha:0.0];
181 | };
182 |
183 | void (^completion)(BOOL) = ^(BOOL finished) {
184 | [transitionFromView removeFromSuperview];
185 | };
186 |
187 | [UIView animateWithDuration:duration animations:animations completion:completion];
188 | }
189 |
190 | @end
191 |
--------------------------------------------------------------------------------
/NavigationControllerTransitions/NavigationControllerTransitions/en.lproj/MainWindow.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1024
5 | 10J567
6 | 1305
7 | 1038.35
8 | 462.00
9 |
13 |
23 |
27 |
34 |
35 | YES
36 |
37 | IBFilesOwner
38 | IBCocoaTouchFramework
39 |
40 |
41 | IBFirstResponder
42 | IBCocoaTouchFramework
43 |
44 |
45 | IBCocoaTouchFramework
46 |
47 |
48 |
49 | 1316
50 |
51 | {320, 480}
52 |
53 |
54 |
55 | 1
56 | MSAxIDEAA
57 |
58 | NO
59 | NO
60 |
61 | IBCocoaTouchFramework
62 | YES
63 |
64 |
65 |
66 |
67 | 1
68 | 1
69 |
70 | IBCocoaTouchFramework
71 | NO
72 |
73 |
74 | 256
75 | {0, 0}
76 | NO
77 | YES
78 | YES
79 | IBCocoaTouchFramework
80 |
81 |
82 | YES
83 |
84 |
85 | IBCocoaTouchFramework
86 |
87 |
88 | RootViewController
89 |
90 |
91 | 1
92 | 1
93 |
94 | IBCocoaTouchFramework
95 | NO
96 |
97 |
98 |
99 |
100 |
101 |
102 | YES
103 |
104 |
105 | delegate
106 |
107 |
108 |
109 | 4
110 |
111 |
112 |
113 | window
114 |
115 |
116 |
117 | 5
118 |
119 |
120 |
121 | navigationController
122 |
123 |
124 |
125 | 15
126 |
127 |
128 |
129 |
130 | YES
131 |
132 | 0
133 |
134 |
135 |
136 |
137 |
138 | 2
139 |
140 |
141 | YES
142 |
143 |
144 |
145 |
146 | -1
147 |
148 |
149 | File's Owner
150 |
151 |
152 | 3
153 |
154 |
155 |
156 |
157 | -2
158 |
159 |
160 |
161 |
162 | 9
163 |
164 |
165 | YES
166 |
167 |
168 |
169 |
170 | Navigation Controller
171 |
172 |
173 | 11
174 |
175 |
176 |
177 |
178 | 13
179 |
180 |
181 | YES
182 |
183 |
184 |
185 |
186 |
187 | 14
188 |
189 |
190 |
191 |
192 |
193 |
194 | YES
195 |
196 | YES
197 | -1.CustomClassName
198 | -2.CustomClassName
199 | 11.IBPluginDependency
200 | 13.CustomClassName
201 | 13.IBPluginDependency
202 | 2.IBAttributePlaceholdersKey
203 | 2.IBEditorWindowLastContentRect
204 | 2.IBPluginDependency
205 | 3.CustomClassName
206 | 3.IBPluginDependency
207 | 9.IBEditorWindowLastContentRect
208 | 9.IBPluginDependency
209 |
210 |
211 | YES
212 | UIApplication
213 | UIResponder
214 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin
215 | RootViewController
216 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin
217 |
218 | YES
219 |
220 |
221 |
222 | {{673, 376}, {320, 480}}
223 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin
224 | NavigationControllerTransitionsAppDelegate
225 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin
226 | {{186, 376}, {320, 480}}
227 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin
228 |
229 |
230 |
231 | YES
232 |
233 |
234 |
235 |
236 |
237 | YES
238 |
239 |
240 |
241 |
242 | 16
243 |
244 |
245 | 0
246 | IBCocoaTouchFramework
247 |
248 | com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
249 |
250 |
251 |
252 | com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
253 |
254 |
255 | YES
256 | 3
257 | 300
258 |
259 |
260 |
--------------------------------------------------------------------------------
/NavigationControllerTransitions/NavigationControllerTransitions.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 689C76BE135733C700BD0E9F /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 689C76BD135733C700BD0E9F /* UIKit.framework */; };
11 | 689C76C0135733C700BD0E9F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 689C76BF135733C700BD0E9F /* Foundation.framework */; };
12 | 689C76C2135733C700BD0E9F /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 689C76C1135733C700BD0E9F /* CoreGraphics.framework */; };
13 | 689C76C8135733C700BD0E9F /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 689C76C6135733C700BD0E9F /* InfoPlist.strings */; };
14 | 689C76CB135733C700BD0E9F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 689C76CA135733C700BD0E9F /* main.m */; };
15 | 689C76CE135733C700BD0E9F /* NavigationControllerTransitionsAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 689C76CD135733C700BD0E9F /* NavigationControllerTransitionsAppDelegate.m */; };
16 | 689C76D1135733C700BD0E9F /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 689C76CF135733C700BD0E9F /* MainWindow.xib */; };
17 | 689C76D4135733C700BD0E9F /* RootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 689C76D3135733C700BD0E9F /* RootViewController.m */; };
18 | 689C76D7135733C700BD0E9F /* RootViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 689C76D5135733C700BD0E9F /* RootViewController.xib */; };
19 | 689C76DF1357373B00BD0E9F /* UINavigationController+KTTransitions.m in Sources */ = {isa = PBXBuildFile; fileRef = 689C76DE1357373B00BD0E9F /* UINavigationController+KTTransitions.m */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXFileReference section */
23 | 689C76B9135733C700BD0E9F /* NavigationControllerTransitions.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NavigationControllerTransitions.app; sourceTree = BUILT_PRODUCTS_DIR; };
24 | 689C76BD135733C700BD0E9F /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
25 | 689C76BF135733C700BD0E9F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
26 | 689C76C1135733C700BD0E9F /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
27 | 689C76C5135733C700BD0E9F /* NavigationControllerTransitions-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "NavigationControllerTransitions-Info.plist"; sourceTree = ""; };
28 | 689C76C7135733C700BD0E9F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
29 | 689C76C9135733C700BD0E9F /* NavigationControllerTransitions-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NavigationControllerTransitions-Prefix.pch"; sourceTree = ""; };
30 | 689C76CA135733C700BD0E9F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
31 | 689C76CC135733C700BD0E9F /* NavigationControllerTransitionsAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NavigationControllerTransitionsAppDelegate.h; sourceTree = ""; };
32 | 689C76CD135733C700BD0E9F /* NavigationControllerTransitionsAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NavigationControllerTransitionsAppDelegate.m; sourceTree = ""; };
33 | 689C76D0135733C700BD0E9F /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainWindow.xib; sourceTree = ""; };
34 | 689C76D2135733C700BD0E9F /* RootViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = ""; };
35 | 689C76D3135733C700BD0E9F /* RootViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RootViewController.m; sourceTree = ""; };
36 | 689C76D6135733C700BD0E9F /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/RootViewController.xib; sourceTree = ""; };
37 | 689C76DD1357373B00BD0E9F /* UINavigationController+KTTransitions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UINavigationController+KTTransitions.h"; path = "../../UINavigationController+KTTransitions.h"; sourceTree = ""; };
38 | 689C76DE1357373B00BD0E9F /* UINavigationController+KTTransitions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UINavigationController+KTTransitions.m"; path = "../../UINavigationController+KTTransitions.m"; sourceTree = ""; };
39 | /* End PBXFileReference section */
40 |
41 | /* Begin PBXFrameworksBuildPhase section */
42 | 689C76B6135733C700BD0E9F /* Frameworks */ = {
43 | isa = PBXFrameworksBuildPhase;
44 | buildActionMask = 2147483647;
45 | files = (
46 | 689C76BE135733C700BD0E9F /* UIKit.framework in Frameworks */,
47 | 689C76C0135733C700BD0E9F /* Foundation.framework in Frameworks */,
48 | 689C76C2135733C700BD0E9F /* CoreGraphics.framework in Frameworks */,
49 | );
50 | runOnlyForDeploymentPostprocessing = 0;
51 | };
52 | /* End PBXFrameworksBuildPhase section */
53 |
54 | /* Begin PBXGroup section */
55 | 689C76AE135733C700BD0E9F = {
56 | isa = PBXGroup;
57 | children = (
58 | 689C76C3135733C700BD0E9F /* NavigationControllerTransitions */,
59 | 689C76BC135733C700BD0E9F /* Frameworks */,
60 | 689C76BA135733C700BD0E9F /* Products */,
61 | );
62 | sourceTree = "";
63 | };
64 | 689C76BA135733C700BD0E9F /* Products */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 689C76B9135733C700BD0E9F /* NavigationControllerTransitions.app */,
68 | );
69 | name = Products;
70 | sourceTree = "";
71 | };
72 | 689C76BC135733C700BD0E9F /* Frameworks */ = {
73 | isa = PBXGroup;
74 | children = (
75 | 689C76BD135733C700BD0E9F /* UIKit.framework */,
76 | 689C76BF135733C700BD0E9F /* Foundation.framework */,
77 | 689C76C1135733C700BD0E9F /* CoreGraphics.framework */,
78 | );
79 | name = Frameworks;
80 | sourceTree = "";
81 | };
82 | 689C76C3135733C700BD0E9F /* NavigationControllerTransitions */ = {
83 | isa = PBXGroup;
84 | children = (
85 | 689C76CC135733C700BD0E9F /* NavigationControllerTransitionsAppDelegate.h */,
86 | 689C76CD135733C700BD0E9F /* NavigationControllerTransitionsAppDelegate.m */,
87 | 689C76CF135733C700BD0E9F /* MainWindow.xib */,
88 | 689C76D2135733C700BD0E9F /* RootViewController.h */,
89 | 689C76D3135733C700BD0E9F /* RootViewController.m */,
90 | 689C76D5135733C700BD0E9F /* RootViewController.xib */,
91 | 689C76DD1357373B00BD0E9F /* UINavigationController+KTTransitions.h */,
92 | 689C76DE1357373B00BD0E9F /* UINavigationController+KTTransitions.m */,
93 | 689C76C4135733C700BD0E9F /* Supporting Files */,
94 | );
95 | path = NavigationControllerTransitions;
96 | sourceTree = "";
97 | };
98 | 689C76C4135733C700BD0E9F /* Supporting Files */ = {
99 | isa = PBXGroup;
100 | children = (
101 | 689C76C5135733C700BD0E9F /* NavigationControllerTransitions-Info.plist */,
102 | 689C76C6135733C700BD0E9F /* InfoPlist.strings */,
103 | 689C76C9135733C700BD0E9F /* NavigationControllerTransitions-Prefix.pch */,
104 | 689C76CA135733C700BD0E9F /* main.m */,
105 | );
106 | name = "Supporting Files";
107 | sourceTree = "";
108 | };
109 | /* End PBXGroup section */
110 |
111 | /* Begin PBXNativeTarget section */
112 | 689C76B8135733C700BD0E9F /* NavigationControllerTransitions */ = {
113 | isa = PBXNativeTarget;
114 | buildConfigurationList = 689C76DA135733C700BD0E9F /* Build configuration list for PBXNativeTarget "NavigationControllerTransitions" */;
115 | buildPhases = (
116 | 689C76B5135733C700BD0E9F /* Sources */,
117 | 689C76B6135733C700BD0E9F /* Frameworks */,
118 | 689C76B7135733C700BD0E9F /* Resources */,
119 | );
120 | buildRules = (
121 | );
122 | dependencies = (
123 | );
124 | name = NavigationControllerTransitions;
125 | productName = NavigationControllerTransitions;
126 | productReference = 689C76B9135733C700BD0E9F /* NavigationControllerTransitions.app */;
127 | productType = "com.apple.product-type.application";
128 | };
129 | /* End PBXNativeTarget section */
130 |
131 | /* Begin PBXProject section */
132 | 689C76B0135733C700BD0E9F /* Project object */ = {
133 | isa = PBXProject;
134 | attributes = {
135 | ORGANIZATIONNAME = "White Peak Software Inc.";
136 | };
137 | buildConfigurationList = 689C76B3135733C700BD0E9F /* Build configuration list for PBXProject "NavigationControllerTransitions" */;
138 | compatibilityVersion = "Xcode 3.2";
139 | developmentRegion = English;
140 | hasScannedForEncodings = 0;
141 | knownRegions = (
142 | en,
143 | );
144 | mainGroup = 689C76AE135733C700BD0E9F;
145 | productRefGroup = 689C76BA135733C700BD0E9F /* Products */;
146 | projectDirPath = "";
147 | projectRoot = "";
148 | targets = (
149 | 689C76B8135733C700BD0E9F /* NavigationControllerTransitions */,
150 | );
151 | };
152 | /* End PBXProject section */
153 |
154 | /* Begin PBXResourcesBuildPhase section */
155 | 689C76B7135733C700BD0E9F /* Resources */ = {
156 | isa = PBXResourcesBuildPhase;
157 | buildActionMask = 2147483647;
158 | files = (
159 | 689C76C8135733C700BD0E9F /* InfoPlist.strings in Resources */,
160 | 689C76D1135733C700BD0E9F /* MainWindow.xib in Resources */,
161 | 689C76D7135733C700BD0E9F /* RootViewController.xib in Resources */,
162 | );
163 | runOnlyForDeploymentPostprocessing = 0;
164 | };
165 | /* End PBXResourcesBuildPhase section */
166 |
167 | /* Begin PBXSourcesBuildPhase section */
168 | 689C76B5135733C700BD0E9F /* Sources */ = {
169 | isa = PBXSourcesBuildPhase;
170 | buildActionMask = 2147483647;
171 | files = (
172 | 689C76CB135733C700BD0E9F /* main.m in Sources */,
173 | 689C76CE135733C700BD0E9F /* NavigationControllerTransitionsAppDelegate.m in Sources */,
174 | 689C76D4135733C700BD0E9F /* RootViewController.m in Sources */,
175 | 689C76DF1357373B00BD0E9F /* UINavigationController+KTTransitions.m in Sources */,
176 | );
177 | runOnlyForDeploymentPostprocessing = 0;
178 | };
179 | /* End PBXSourcesBuildPhase section */
180 |
181 | /* Begin PBXVariantGroup section */
182 | 689C76C6135733C700BD0E9F /* InfoPlist.strings */ = {
183 | isa = PBXVariantGroup;
184 | children = (
185 | 689C76C7135733C700BD0E9F /* en */,
186 | );
187 | name = InfoPlist.strings;
188 | sourceTree = "";
189 | };
190 | 689C76CF135733C700BD0E9F /* MainWindow.xib */ = {
191 | isa = PBXVariantGroup;
192 | children = (
193 | 689C76D0135733C700BD0E9F /* en */,
194 | );
195 | name = MainWindow.xib;
196 | sourceTree = "";
197 | };
198 | 689C76D5135733C700BD0E9F /* RootViewController.xib */ = {
199 | isa = PBXVariantGroup;
200 | children = (
201 | 689C76D6135733C700BD0E9F /* en */,
202 | );
203 | name = RootViewController.xib;
204 | sourceTree = "";
205 | };
206 | /* End PBXVariantGroup section */
207 |
208 | /* Begin XCBuildConfiguration section */
209 | 689C76D8135733C700BD0E9F /* Debug */ = {
210 | isa = XCBuildConfiguration;
211 | buildSettings = {
212 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
213 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
214 | GCC_C_LANGUAGE_STANDARD = gnu99;
215 | GCC_OPTIMIZATION_LEVEL = 0;
216 | GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
217 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
218 | GCC_VERSION = com.apple.compilers.llvmgcc42;
219 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
220 | GCC_WARN_UNUSED_VARIABLE = YES;
221 | IPHONEOS_DEPLOYMENT_TARGET = 4.3;
222 | SDKROOT = iphoneos;
223 | };
224 | name = Debug;
225 | };
226 | 689C76D9135733C700BD0E9F /* Release */ = {
227 | isa = XCBuildConfiguration;
228 | buildSettings = {
229 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
230 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
231 | GCC_C_LANGUAGE_STANDARD = gnu99;
232 | GCC_VERSION = com.apple.compilers.llvmgcc42;
233 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
234 | GCC_WARN_UNUSED_VARIABLE = YES;
235 | IPHONEOS_DEPLOYMENT_TARGET = 4.3;
236 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
237 | SDKROOT = iphoneos;
238 | };
239 | name = Release;
240 | };
241 | 689C76DB135733C700BD0E9F /* Debug */ = {
242 | isa = XCBuildConfiguration;
243 | buildSettings = {
244 | ALWAYS_SEARCH_USER_PATHS = NO;
245 | COPY_PHASE_STRIP = NO;
246 | GCC_DYNAMIC_NO_PIC = NO;
247 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
248 | GCC_PREFIX_HEADER = "NavigationControllerTransitions/NavigationControllerTransitions-Prefix.pch";
249 | INFOPLIST_FILE = "NavigationControllerTransitions/NavigationControllerTransitions-Info.plist";
250 | PRODUCT_NAME = "$(TARGET_NAME)";
251 | WRAPPER_EXTENSION = app;
252 | };
253 | name = Debug;
254 | };
255 | 689C76DC135733C700BD0E9F /* Release */ = {
256 | isa = XCBuildConfiguration;
257 | buildSettings = {
258 | ALWAYS_SEARCH_USER_PATHS = NO;
259 | COPY_PHASE_STRIP = YES;
260 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
261 | GCC_PREFIX_HEADER = "NavigationControllerTransitions/NavigationControllerTransitions-Prefix.pch";
262 | INFOPLIST_FILE = "NavigationControllerTransitions/NavigationControllerTransitions-Info.plist";
263 | PRODUCT_NAME = "$(TARGET_NAME)";
264 | VALIDATE_PRODUCT = YES;
265 | WRAPPER_EXTENSION = app;
266 | };
267 | name = Release;
268 | };
269 | /* End XCBuildConfiguration section */
270 |
271 | /* Begin XCConfigurationList section */
272 | 689C76B3135733C700BD0E9F /* Build configuration list for PBXProject "NavigationControllerTransitions" */ = {
273 | isa = XCConfigurationList;
274 | buildConfigurations = (
275 | 689C76D8135733C700BD0E9F /* Debug */,
276 | 689C76D9135733C700BD0E9F /* Release */,
277 | );
278 | defaultConfigurationIsVisible = 0;
279 | defaultConfigurationName = Release;
280 | };
281 | 689C76DA135733C700BD0E9F /* Build configuration list for PBXNativeTarget "NavigationControllerTransitions" */ = {
282 | isa = XCConfigurationList;
283 | buildConfigurations = (
284 | 689C76DB135733C700BD0E9F /* Debug */,
285 | 689C76DC135733C700BD0E9F /* Release */,
286 | );
287 | defaultConfigurationIsVisible = 0;
288 | };
289 | /* End XCConfigurationList section */
290 | };
291 | rootObject = 689C76B0135733C700BD0E9F /* Project object */;
292 | }
293 |
--------------------------------------------------------------------------------
/NavigationControllerTransitions/NavigationControllerTransitions/en.lproj/RootViewController.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 784
5 | 10D541
6 | 760
7 | 1038.29
8 | 460.00
9 |
10 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin
11 | 81
12 |
13 |
14 | YES
15 |
16 |
17 |
18 | YES
19 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin
20 |
21 |
22 | YES
23 |
24 | YES
25 |
26 |
27 | YES
28 |
29 |
30 |
31 | YES
32 |
33 | IBFilesOwner
34 | IBCocoaTouchFramework
35 |
36 |
37 | IBFirstResponder
38 | IBCocoaTouchFramework
39 |
40 |
41 |
42 | 274
43 | {320, 247}
44 |
45 |
46 | 3
47 | MQA
48 |
49 | NO
50 | YES
51 | NO
52 | IBCocoaTouchFramework
53 | NO
54 | 1
55 | 0
56 | YES
57 | 44
58 | 22
59 | 22
60 |
61 |
62 |
63 |
64 | YES
65 |
66 |
67 | view
68 |
69 |
70 |
71 | 3
72 |
73 |
74 |
75 | dataSource
76 |
77 |
78 |
79 | 4
80 |
81 |
82 |
83 | delegate
84 |
85 |
86 |
87 | 5
88 |
89 |
90 |
91 |
92 | YES
93 |
94 | 0
95 |
96 |
97 |
98 |
99 |
100 | -1
101 |
102 |
103 | File's Owner
104 |
105 |
106 | -2
107 |
108 |
109 |
110 |
111 | 2
112 |
113 |
114 |
115 |
116 |
117 |
118 | YES
119 |
120 | YES
121 | -1.CustomClassName
122 | -2.CustomClassName
123 | 2.IBEditorWindowLastContentRect
124 | 2.IBPluginDependency
125 |
126 |
127 | YES
128 | RootViewController
129 | UIResponder
130 | {{144, 609}, {320, 247}}
131 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin
132 |
133 |
134 |
135 | YES
136 |
137 |
138 | YES
139 |
140 |
141 |
142 |
143 | YES
144 |
145 |
146 | YES
147 |
148 |
149 |
150 | 5
151 |
152 |
153 |
154 | YES
155 |
156 | RootViewController
157 | UITableViewController
158 |
159 | IBProjectSource
160 | RootViewController.h
161 |
162 |
163 |
164 |
165 | YES
166 |
167 | NSObject
168 |
169 | IBFrameworkSource
170 | Foundation.framework/Headers/NSError.h
171 |
172 |
173 |
174 | NSObject
175 |
176 | IBFrameworkSource
177 | Foundation.framework/Headers/NSFileManager.h
178 |
179 |
180 |
181 | NSObject
182 |
183 | IBFrameworkSource
184 | Foundation.framework/Headers/NSKeyValueCoding.h
185 |
186 |
187 |
188 | NSObject
189 |
190 | IBFrameworkSource
191 | Foundation.framework/Headers/NSKeyValueObserving.h
192 |
193 |
194 |
195 | NSObject
196 |
197 | IBFrameworkSource
198 | Foundation.framework/Headers/NSKeyedArchiver.h
199 |
200 |
201 |
202 | NSObject
203 |
204 | IBFrameworkSource
205 | Foundation.framework/Headers/NSNetServices.h
206 |
207 |
208 |
209 | NSObject
210 |
211 | IBFrameworkSource
212 | Foundation.framework/Headers/NSObject.h
213 |
214 |
215 |
216 | NSObject
217 |
218 | IBFrameworkSource
219 | Foundation.framework/Headers/NSPort.h
220 |
221 |
222 |
223 | NSObject
224 |
225 | IBFrameworkSource
226 | Foundation.framework/Headers/NSRunLoop.h
227 |
228 |
229 |
230 | NSObject
231 |
232 | IBFrameworkSource
233 | Foundation.framework/Headers/NSStream.h
234 |
235 |
236 |
237 | NSObject
238 |
239 | IBFrameworkSource
240 | Foundation.framework/Headers/NSThread.h
241 |
242 |
243 |
244 | NSObject
245 |
246 | IBFrameworkSource
247 | Foundation.framework/Headers/NSURL.h
248 |
249 |
250 |
251 | NSObject
252 |
253 | IBFrameworkSource
254 | Foundation.framework/Headers/NSURLConnection.h
255 |
256 |
257 |
258 | NSObject
259 |
260 | IBFrameworkSource
261 | Foundation.framework/Headers/NSXMLParser.h
262 |
263 |
264 |
265 | NSObject
266 |
267 | IBFrameworkSource
268 | UIKit.framework/Headers/UIAccessibility.h
269 |
270 |
271 |
272 | NSObject
273 |
274 | IBFrameworkSource
275 | UIKit.framework/Headers/UINibLoading.h
276 |
277 |
278 |
279 | NSObject
280 |
281 | IBFrameworkSource
282 | UIKit.framework/Headers/UIResponder.h
283 |
284 |
285 |
286 | UIResponder
287 | NSObject
288 |
289 |
290 |
291 | UIScrollView
292 | UIView
293 |
294 | IBFrameworkSource
295 | UIKit.framework/Headers/UIScrollView.h
296 |
297 |
298 |
299 | UISearchBar
300 | UIView
301 |
302 | IBFrameworkSource
303 | UIKit.framework/Headers/UISearchBar.h
304 |
305 |
306 |
307 | UISearchDisplayController
308 | NSObject
309 |
310 | IBFrameworkSource
311 | UIKit.framework/Headers/UISearchDisplayController.h
312 |
313 |
314 |
315 | UITableView
316 | UIScrollView
317 |
318 | IBFrameworkSource
319 | UIKit.framework/Headers/UITableView.h
320 |
321 |
322 |
323 | UITableViewController
324 | UIViewController
325 |
326 | IBFrameworkSource
327 | UIKit.framework/Headers/UITableViewController.h
328 |
329 |
330 |
331 | UIView
332 |
333 | IBFrameworkSource
334 | UIKit.framework/Headers/UITextField.h
335 |
336 |
337 |
338 | UIView
339 | UIResponder
340 |
341 | IBFrameworkSource
342 | UIKit.framework/Headers/UIView.h
343 |
344 |
345 |
346 | UIViewController
347 |
348 | IBFrameworkSource
349 | UIKit.framework/Headers/UINavigationController.h
350 |
351 |
352 |
353 | UIViewController
354 |
355 | IBFrameworkSource
356 | UIKit.framework/Headers/UITabBarController.h
357 |
358 |
359 |
360 | UIViewController
361 | UIResponder
362 |
363 | IBFrameworkSource
364 | UIKit.framework/Headers/UIViewController.h
365 |
366 |
367 |
368 |
369 | 0
370 | IBCocoaTouchFramework
371 |
372 | com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
373 |
374 |
375 |
376 | com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
377 |
378 |
379 | YES
380 | NavigationControllerTransitions.xcodeproj
381 | 3
382 | 81
383 |
384 |
385 |
--------------------------------------------------------------------------------