├── MRNavigationController ├── MRNavigationController │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── MRNavigationController │ │ ├── MRViewController.m │ │ ├── MRStack.h │ │ ├── MRViewController.h │ │ ├── MRNavigationController.h │ │ ├── MRStack.m │ │ └── MRNavigationController.m │ ├── main.m │ ├── MRNavigationController-Prefix.pch │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── MRViewControllerOne.h │ ├── MRViewControllerTwo.h │ ├── MRViewControllerThree.h │ ├── MRViewControllerFour.h │ ├── MRAppDelegate.h │ ├── MRViewControllerOne.m │ ├── MRViewControllerTwo.m │ ├── MRViewControllerThree.m │ ├── MRViewControllerFour.m │ ├── MRNavigationController-Info.plist │ ├── HTDelegateProxy.h │ ├── MRViewControllerOne.xib │ ├── MRViewControllerTwo.xib │ ├── MRViewControllerThree.xib │ ├── MRAppDelegate.m │ ├── HTDelegateProxy.m │ └── MRViewControllerFour.xib ├── MRNavigationControllerTests │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── MRNavigationControllerTests-Info.plist │ └── MRNavigationControllerTests.m └── MRNavigationController.xcodeproj │ ├── project.xcworkspace │ └── contents.xcworkspacedata │ └── project.pbxproj ├── .gitignore ├── LICENSE └── README.md /MRNavigationController/MRNavigationController/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationControllerTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRNavigationController/MRViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // MRViewController.m 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import "MRViewController.h" 10 | 11 | @implementation MRViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "MRAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([MRAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRNavigationController-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 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRNavigationController/MRStack.h: -------------------------------------------------------------------------------- 1 | // 2 | // MRStack.h 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 8/14/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MRStack : NSObject 12 | 13 | - (void)push:(id)object; 14 | - (id)pop; 15 | - (id)peek; 16 | - (void)clear; 17 | - (NSUInteger)count; 18 | - (BOOL)isEmpty; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/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 | } -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerOne.h: -------------------------------------------------------------------------------- 1 | // 2 | // MRViewControllerOne.h 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol MRViewControllerOneDelegate 12 | 13 | - (void)showVC2; 14 | 15 | @end 16 | 17 | @interface MRViewControllerOne : UIViewController 18 | 19 | @property (weak, nonatomic) id delegate; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerTwo.h: -------------------------------------------------------------------------------- 1 | // 2 | // MRViewControllerTwo.h 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol MRViewControllerTwoDelegate 12 | 13 | - (void)showVC3; 14 | 15 | @end 16 | 17 | @interface MRViewControllerTwo : UIViewController 18 | 19 | @property (weak, nonatomic) id delegate; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerThree.h: -------------------------------------------------------------------------------- 1 | // 2 | // MRViewControllerThree.h 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol MRViewControllerThreeDelegate 12 | 13 | - (void)showVC4; 14 | 15 | @end 16 | 17 | @interface MRViewControllerThree : UIViewController 18 | 19 | @property (weak, nonatomic) id delegate; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerFour.h: -------------------------------------------------------------------------------- 1 | // 2 | // MRViewControllerFour.h 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol MRViewControllerFourDelegate 12 | 13 | - (void)popToRoot; 14 | - (void)popToVC2; 15 | - (void)popToVC3; 16 | 17 | @end 18 | 19 | @interface MRViewControllerFour : UIViewController 20 | 21 | @property (weak, nonatomic) id delegate; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/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 | } -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRNavigationController/MRViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MRViewController.h 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MRViewController : NSObject 12 | 13 | @property (weak, nonatomic) UIViewController* controller; 14 | @property (assign, nonatomic) BOOL navigationBarHidden; 15 | @property (assign, nonatomic) BOOL toolbarHidden; 16 | @property (copy, nonatomic) void(^onPush)(void); 17 | @property (copy, nonatomic) void(^onPop)(void); 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // MRAppDelegate.h 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MRViewControllerOne.h" 11 | #import "MRViewControllerTwo.h" 12 | #import "MRViewControllerThree.h" 13 | #import "MRViewControllerFour.h" 14 | 15 | @interface MRAppDelegate : UIResponder 16 | 21 | 22 | @property (strong, nonatomic) UIWindow* window; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRNavigationController/MRNavigationController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MRNavigationController.h 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 9/3/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MRNavigationController : UINavigationController 12 | 13 | - (id)initWithRootViewController:(UIViewController*)rootViewController navigationBarHidden:(BOOL)navigationBarHidden toolbarHidden:(BOOL)toolbarHidden; 14 | - (void)pushViewController:(UIViewController*)viewController animated:(BOOL)animated navigationBarHidden:(BOOL)navigationBarHidden toolbarHidden:(BOOL)toolbarHidden push:(void(^)(void))onPush pop:(void(^)(void))onPop; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationControllerTests/MRNavigationControllerTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.martinrybak.${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 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationControllerTests/MRNavigationControllerTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // MRNavigationControllerTests.m 3 | // MRNavigationControllerTests 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MRNavigationControllerTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation MRNavigationControllerTests 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 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerOne.m: -------------------------------------------------------------------------------- 1 | // 2 | // MRViewControllerOne.m 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import "MRViewControllerOne.h" 10 | 11 | @interface MRViewControllerOne () 12 | 13 | @end 14 | 15 | @implementation MRViewControllerOne 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 from its nib. 30 | } 31 | 32 | - (void)didReceiveMemoryWarning 33 | { 34 | [super didReceiveMemoryWarning]; 35 | // Dispose of any resources that can be recreated. 36 | } 37 | 38 | - (IBAction)showVC2:(id)sender 39 | { 40 | [self.delegate showVC2]; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerTwo.m: -------------------------------------------------------------------------------- 1 | // 2 | // MRViewControllerTwo.m 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import "MRViewControllerTwo.h" 10 | 11 | @interface MRViewControllerTwo () 12 | 13 | @end 14 | 15 | @implementation MRViewControllerTwo 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 from its nib. 30 | } 31 | 32 | - (void)didReceiveMemoryWarning 33 | { 34 | [super didReceiveMemoryWarning]; 35 | // Dispose of any resources that can be recreated. 36 | } 37 | 38 | - (IBAction)showVC3:(id)sender 39 | { 40 | [self.delegate showVC3]; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerThree.m: -------------------------------------------------------------------------------- 1 | // 2 | // MRViewControllerThree.m 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import "MRViewControllerThree.h" 10 | 11 | @interface MRViewControllerThree () 12 | 13 | @end 14 | 15 | @implementation MRViewControllerThree 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 from its nib. 30 | } 31 | 32 | - (void)didReceiveMemoryWarning 33 | { 34 | [super didReceiveMemoryWarning]; 35 | // Dispose of any resources that can be recreated. 36 | } 37 | 38 | - (IBAction)showVC4:(id)sender 39 | { 40 | [self.delegate showVC4]; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRNavigationController/MRStack.m: -------------------------------------------------------------------------------- 1 | // 2 | // MRStack.m 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 8/14/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import "MRStack.h" 10 | 11 | @interface MRStack () 12 | 13 | @property (strong, nonatomic) NSMutableArray* array; 14 | 15 | @end 16 | 17 | @implementation MRStack 18 | 19 | - (id)init 20 | { 21 | if (self = [super init]) 22 | { 23 | self.array = [[NSMutableArray alloc] init]; 24 | } 25 | return self; 26 | } 27 | 28 | - (void)push:(id)object 29 | { 30 | [self.array addObject:object]; 31 | } 32 | 33 | - (id)pop 34 | { 35 | id lastObject = [self.array lastObject]; 36 | [self.array removeLastObject]; 37 | return lastObject; 38 | } 39 | 40 | - (id)peek 41 | { 42 | return [self.array lastObject]; 43 | } 44 | 45 | - (void)clear 46 | { 47 | [self.array removeAllObjects]; 48 | } 49 | 50 | - (NSUInteger)count 51 | { 52 | return self.array.count; 53 | } 54 | 55 | - (BOOL)isEmpty 56 | { 57 | return self.array.count == 0; 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 martinrybak 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 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerFour.m: -------------------------------------------------------------------------------- 1 | // 2 | // MRViewControllerFour.m 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import "MRViewControllerFour.h" 10 | 11 | @interface MRViewControllerFour () 12 | 13 | @end 14 | 15 | @implementation MRViewControllerFour 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 from its nib. 30 | } 31 | 32 | - (void)didReceiveMemoryWarning 33 | { 34 | [super didReceiveMemoryWarning]; 35 | // Dispose of any resources that can be recreated. 36 | } 37 | 38 | - (IBAction)popToRoot:(id)sender 39 | { 40 | [self.delegate popToRoot]; 41 | } 42 | 43 | - (IBAction)popToVC2:(id)sender 44 | { 45 | [self.delegate popToVC2]; 46 | } 47 | 48 | - (IBAction)popToVC3:(id)sender 49 | { 50 | [self.delegate popToVC3]; 51 | } 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRNavigationController-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.martinrybak.${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 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/HTDelegateProxy.h: -------------------------------------------------------------------------------- 1 | // 2 | // HTDelegateProxy.h 3 | // HotelTonight 4 | // 5 | // Created by Jacob Jennings on 10/21/12. 6 | // Copyright (c) 2012 Hotel Tonight. All rights reserved. 7 | // 8 | /* 9 | Copyright (c) 2012 Hotel Tonight 10 | 11 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 16 | */ 17 | 18 | // Void return type selectors will be invoked on all delegates that respond to the selector 19 | // Non-void return type selectors will be invoked on the first delegate in the list that responds to the selector 20 | 21 | #import 22 | 23 | @interface HTDelegateProxy : NSProxy 24 | 25 | @property (nonatomic, strong) NSArray *delegates; 26 | 27 | - (id)initWithDelegates:(NSArray *)delegates; 28 | - (id)init; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MRNavigationController 2 | 3 | A **UINavigationController** subclass with a **pushViewController** method that accepts **push** and **pop** blocks, as well as **navigation bar** and **toolbar** visibility settings, for each pushed controller. Here is an example: 4 | 5 | ```sh 6 | #import "MRNavigationController.h" 7 | 8 | self.vc1 = [[UIViewController alloc] init]; 9 | self.vc2 = [[UIViewController alloc] init]; 10 | self.nav = [[MRNavigationController alloc] initWithRootViewController:self.vc1 navigationBarHidden:YES toolbarHidden:YES]; 11 | [self.nav pushViewController:self.vc2 animated:YES navigationBarHidden:NO toolbarHidden:NO push:^{ 12 | NSLog(@"VC1 pushed VC2"); 13 | } 14 | pop:^{ 15 | NSLog(@"VC2 popped"); 16 | self.vc2 = nil; 17 | }]; 18 | ``` 19 | 20 | In this sample, the navigation controller will display the **vc1** view controller with no navigation bar and no toolbar. The first log statement will then be printed. The **vc2** view controller will then be animated onto the screen with a navigation bar and toolbar. When its back button is pressed, the second log statement will be printed, the **vc2** view controller will be animated away and cleared from memory, and the **vc1** view controller will once again appear with no navigation bar and no toolbar. 21 | 22 | The **pop** block is executed whether the back button is pressed or if the view controller is popped manually via one of the standard pop methods: 23 | 24 | * popViewControllerAnimated: 25 | * popToViewController:animated: 26 | * popToRootViewControllerAnimated: 27 | 28 | The following superclass methods can still be used, but pushed view controllers will be assigned a default of **navigationBarHidden:NO** and **toolbarHidden:YES** and no push or pop blocks will be executed: 29 | 30 | * initWithRootViewController: 31 | * pushViewController:animated: 32 | 33 | You can still use your own delegate thanks to a trick from a fantastic library called [HTDelegateProxy]. 34 | 35 | For a live example, download and run the Xcode project. 36 | 37 | ## Installation 38 | I’ve published this library as a [CocoaPod], which is the easiest way to install it. Otherwise, simply manually copy these [class files] and [HTDelegateProxy] files into your project. 39 | 40 | [CocoaPod]: http://www.cocoapods.org/?q=MRNavigationController 41 | [class files]: https://github.com/martinrybak/MRNavigationController/tree/master/MRNavigationController/MRNavigationController/MRNavigationController 42 | [HTDelegateProxy]: https://github.com/hoteltonight/HTDelegateProxy/archive/master.zip 43 | 44 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerOne.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 24 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerTwo.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 24 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerThree.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 24 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // MRAppDelegate.m 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 11/23/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import "MRAppDelegate.h" 10 | #import "MRNavigationController.h" 11 | #import "MRViewControllerOne.h" 12 | #import "MRViewControllerTwo.h" 13 | #import "MRViewControllerThree.h" 14 | #import "MRViewControllerFour.h" 15 | 16 | @interface MRAppDelegate () 17 | 18 | @property (strong, nonatomic) MRNavigationController* nav; 19 | @property (strong, nonatomic) MRViewControllerOne* vc1; 20 | @property (strong, nonatomic) MRViewControllerTwo* vc2; 21 | @property (strong, nonatomic) MRViewControllerThree* vc3; 22 | @property (strong, nonatomic) MRViewControllerFour* vc4; 23 | @property (strong, nonatomic) NSTimer* timer; 24 | 25 | @end 26 | 27 | @implementation MRAppDelegate 28 | 29 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 30 | { 31 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 32 | self.vc1 = [[MRViewControllerOne alloc] init]; 33 | self.vc1.title = @"Root"; 34 | self.vc1.delegate = self; 35 | self.nav = [[MRNavigationController alloc] initWithRootViewController:self.vc1 navigationBarHidden:YES toolbarHidden:YES]; 36 | self.window.rootViewController = self.nav; 37 | self.window.backgroundColor = [UIColor whiteColor]; 38 | [self.window makeKeyAndVisible]; 39 | 40 | //Uncomment to see confirm that view controllers are set to nil over time 41 | //self.timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(ping) userInfo:nil repeats:YES]; 42 | 43 | return YES; 44 | } 45 | 46 | - (void)ping 47 | { 48 | NSLog(@"VC1 = %@", self.vc1.title); 49 | NSLog(@"VC2 = %@", self.vc2.title); 50 | NSLog(@"VC3 = %@", self.vc3.title); 51 | NSLog(@"VC4 = %@", self.vc4.title); 52 | } 53 | 54 | - (void)showVC2 55 | { 56 | self.vc2 = [[MRViewControllerTwo alloc] init]; 57 | self.vc2.delegate = self; 58 | self.vc2.title = @"View Controller 2"; 59 | [self.nav pushViewController:self.vc2 animated:YES navigationBarHidden:NO toolbarHidden:NO push:^{ 60 | NSLog(@"VC1 pushed VC2"); 61 | } pop:^{ 62 | NSLog(@"VC2 popped"); 63 | self.vc2 = nil; 64 | }]; 65 | } 66 | 67 | - (void)showVC3 68 | { 69 | self.vc3 = [[MRViewControllerThree alloc] init]; 70 | self.vc3.delegate = self; 71 | self.vc3.title = @"View Controller 3"; 72 | [self.nav pushViewController:self.vc3 animated:YES navigationBarHidden:NO toolbarHidden:YES push:^{ 73 | NSLog(@"VC2 pushed VC3"); 74 | } pop:^{ 75 | NSLog(@"VC3 popped"); 76 | self.vc3 = nil; 77 | }]; 78 | } 79 | 80 | - (void)showVC4 81 | { 82 | self.vc4 = [[MRViewControllerFour alloc] init]; 83 | self.vc4.delegate = self; 84 | self.vc4.title = @"View Controller 4"; 85 | [self.nav pushViewController:self.vc4 animated:YES navigationBarHidden:NO toolbarHidden:NO push:^{ 86 | NSLog(@"VC3 pushed VC4"); 87 | } pop:^{ 88 | NSLog(@"VC4 popped"); 89 | self.vc4 = nil; 90 | }]; 91 | } 92 | 93 | - (void)popToRoot 94 | { 95 | [self.nav popToRootViewControllerAnimated:YES]; 96 | self.vc1 = nil; 97 | self.vc2 = nil; 98 | self.vc3 = nil; 99 | self.vc4 = nil; 100 | } 101 | 102 | - (void)popToVC2 103 | { 104 | [self.nav popToViewController:self.vc2 animated:YES]; 105 | self.vc3 = nil; 106 | self.vc4 = nil; 107 | } 108 | 109 | - (void)popToVC3 110 | { 111 | [self.nav popToViewController:self.vc3 animated:YES]; 112 | self.vc4 = nil; 113 | } 114 | 115 | @end 116 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/HTDelegateProxy.m: -------------------------------------------------------------------------------- 1 | // 2 | // HTDelegateProxy.m 3 | // HotelTonight 4 | // 5 | // Created by Jacob Jennings on 10/21/12. 6 | // Copyright (c) 2012 Hotel Tonight. All rights reserved. 7 | // 8 | /* 9 | Copyright (c) 2012 Hotel Tonight 10 | 11 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 16 | */ 17 | 18 | #import "HTDelegateProxy.h" 19 | 20 | @implementation HTDelegateProxy 21 | 22 | @synthesize delegates = _delegates; 23 | 24 | - (id)initWithDelegates:(NSArray *)delegates 25 | { 26 | [self setDelegates:delegates]; 27 | return self; 28 | } 29 | 30 | - (id)init 31 | { 32 | return self; 33 | } 34 | 35 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)selector 36 | { 37 | NSMethodSignature *signature; 38 | for (NSValue *nonRetainedValue in _delegates) 39 | { 40 | id delegate = [nonRetainedValue nonretainedObjectValue]; 41 | signature = [[delegate class] instanceMethodSignatureForSelector:selector]; 42 | if (signature) 43 | { 44 | break; 45 | } 46 | } 47 | return signature; 48 | } 49 | 50 | - (void)forwardInvocation:(NSInvocation *)invocation 51 | { 52 | NSString *returnType = [NSString stringWithCString:invocation.methodSignature.methodReturnType encoding:NSUTF8StringEncoding]; 53 | BOOL voidReturnType = [returnType isEqualToString:@"v"]; 54 | 55 | for (NSValue *nonRetainedValue in _delegates) 56 | { 57 | id delegate = [nonRetainedValue nonretainedObjectValue]; 58 | if ([delegate respondsToSelector:invocation.selector]) 59 | { 60 | [invocation invokeWithTarget:delegate]; 61 | if (!voidReturnType) 62 | { 63 | return; 64 | } 65 | } 66 | } 67 | } 68 | 69 | - (BOOL)respondsToSelector:(SEL)aSelector 70 | { 71 | for (NSValue *nonRetainedValue in _delegates) 72 | { 73 | id delegate = [nonRetainedValue nonretainedObjectValue]; 74 | if ([delegate respondsToSelector:aSelector]) 75 | { 76 | if ([delegate isKindOfClass:[UITextField class]] 77 | && [[UITextField class] instancesRespondToSelector:aSelector]) 78 | { 79 | continue; 80 | } 81 | return YES; 82 | } 83 | } 84 | return NO; 85 | } 86 | 87 | #pragma mark - Properties 88 | 89 | - (NSArray *)delegates 90 | { 91 | NSMutableArray *delegatesBuilder = [NSMutableArray arrayWithCapacity:[_delegates count]]; 92 | for (NSValue *delegateValue in _delegates) 93 | { 94 | [delegatesBuilder addObject:[delegateValue nonretainedObjectValue]]; 95 | } 96 | return [NSArray arrayWithArray:delegatesBuilder]; 97 | } 98 | 99 | - (void)setDelegates:(NSArray *)delegates 100 | { 101 | NSMutableArray *delegatesUnretainedBuilder = [NSMutableArray arrayWithCapacity:[delegates count]]; 102 | for (id delegate in delegates) 103 | { 104 | [delegatesUnretainedBuilder addObject:[NSValue valueWithNonretainedObject:delegate]]; 105 | } 106 | _delegates = [NSArray arrayWithArray:delegatesUnretainedBuilder]; 107 | } 108 | 109 | @end 110 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRViewControllerFour.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 24 | 34 | 44 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController/MRNavigationController/MRNavigationController.m: -------------------------------------------------------------------------------- 1 | // 2 | // MRNavigationController.m 3 | // MRNavigationController 4 | // 5 | // Created by Martin Rybak on 9/3/13. 6 | // Copyright (c) 2013 Martin Rybak. All rights reserved. 7 | // 8 | 9 | #import "MRNavigationController.h" 10 | #import "MRViewController.h" 11 | #import "HTDelegateProxy.h" 12 | #import "MRStack.h" 13 | 14 | @interface MRNavigationController () 15 | 16 | @property (strong, nonatomic) MRStack* controllers; 17 | @property (strong, nonatomic) MRViewController* pushedController; 18 | @property (strong, nonatomic) HTDelegateProxy* delegateProxy; 19 | 20 | @end 21 | 22 | @implementation MRNavigationController 23 | 24 | #pragma mark - UINavigationController 25 | 26 | - (id)initWithRootViewController:(UIViewController*)rootViewController 27 | { 28 | return [self initWithRootViewController:rootViewController navigationBarHidden:NO toolbarHidden:YES]; 29 | } 30 | 31 | - (void)pushViewController:(UIViewController*)viewController animated:(BOOL)animated 32 | { 33 | [self savePushController:viewController navigationBarHidden:NO toolbarHidden:YES push:nil pop:nil]; 34 | [super pushViewController:viewController animated:animated]; 35 | } 36 | 37 | #pragma mark - Public 38 | 39 | - (void)setDelegate:(id)delegate 40 | { 41 | self.delegateProxy = [[HTDelegateProxy alloc] initWithDelegates:@[ self, delegate ]]; 42 | super.delegate = (id)self.delegateProxy; 43 | } 44 | 45 | - (id)initWithRootViewController:(UIViewController*)rootViewController navigationBarHidden:(BOOL)navigationBarHidden toolbarHidden:(BOOL)toolbarHidden 46 | { 47 | if (self = [super initWithRootViewController:rootViewController]) 48 | { 49 | self.delegateProxy = [[HTDelegateProxy alloc] initWithDelegates:@[ self ]]; 50 | super.delegate = (id)self.delegateProxy; 51 | self.controllers = [[MRStack alloc] init]; 52 | [self savePushController:rootViewController navigationBarHidden:navigationBarHidden toolbarHidden:toolbarHidden push:nil pop:nil]; 53 | } 54 | return self; 55 | } 56 | 57 | - (void)pushViewController:(UIViewController*)viewController animated:(BOOL)animated navigationBarHidden:(BOOL)navigationBarHidden toolbarHidden:(BOOL)toolbarHidden push:(void(^)(void))onPush pop:(void(^)(void))onPop 58 | { 59 | [self savePushController:viewController navigationBarHidden:navigationBarHidden toolbarHidden:toolbarHidden push:onPush pop:onPop]; 60 | [super pushViewController:viewController animated:animated]; 61 | } 62 | 63 | #pragma mark - UINavigationControllerDelegate 64 | 65 | - (void)navigationController:(UINavigationController*)navigationController willShowViewController:(UIViewController*)viewController animated:(BOOL)animated 66 | { 67 | //This is a push that just started 68 | if (viewController == self.pushedController.controller) 69 | { 70 | //Show or hide the navigation contoller's navigation bar and tool bar according to the pushed controller's preferences 71 | [self setNavigationBarHidden:self.pushedController.navigationBarHidden toolbarHidden:self.pushedController.toolbarHidden animated:animated]; 72 | } 73 | //This is a pop that just started 74 | else 75 | { 76 | //Get the top controller 77 | MRViewController* topController = [self.controllers pop]; 78 | 79 | //Execute its pop handler 80 | if (topController.onPop) 81 | topController.onPop(); 82 | 83 | //If this a multi-level pop, remove the popped controllers from our internal stack 84 | while (((MRViewController*)[self.controllers peek]).controller != viewController) 85 | [self.controllers pop]; 86 | 87 | //Show or hide the navigation contoller's navigation bar and tool bar according to the new top controller's preferences 88 | topController = [self.controllers peek]; 89 | [self setNavigationBarHidden:topController.navigationBarHidden toolbarHidden:topController.toolbarHidden animated:animated]; 90 | } 91 | } 92 | 93 | - (void)navigationController:(UINavigationController*)navigationController didShowViewController:(UIViewController*)viewController animated:(BOOL)animated 94 | { 95 | //This is a push that just completed 96 | if (viewController == self.pushedController.controller) 97 | { 98 | //Execute its completion handler 99 | if (self.pushedController.onPush) 100 | self.pushedController.onPush(); 101 | 102 | //Reset the temp variable 103 | self.pushedController = nil; 104 | } 105 | } 106 | 107 | #pragma mark - Private 108 | 109 | - (void)savePushController:(UIViewController*)viewController navigationBarHidden:(BOOL)navigationBarHidden toolbarHidden:(BOOL)toolbarHidden push:(void(^)(void))onPush pop:(void(^)(void))onPop 110 | { 111 | self.pushedController = [[MRViewController alloc] init]; 112 | self.pushedController.controller = viewController; 113 | self.pushedController.navigationBarHidden = navigationBarHidden; 114 | self.pushedController.toolbarHidden = toolbarHidden; 115 | self.pushedController.onPush = onPush; 116 | self.pushedController.onPop = onPop; 117 | [self.controllers push:self.pushedController]; 118 | } 119 | 120 | - (void)setNavigationBarHidden:(BOOL)navigationBarHidden toolbarHidden:(BOOL)toolbarHidden animated:(BOOL)animated 121 | { 122 | [super setNavigationBarHidden:navigationBarHidden animated:animated]; 123 | [super setToolbarHidden:toolbarHidden animated:animated]; 124 | } 125 | 126 | @end 127 | -------------------------------------------------------------------------------- /MRNavigationController/MRNavigationController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 5B06AA1A1841191A0024E5AA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B06AA191841191A0024E5AA /* Foundation.framework */; }; 11 | 5B06AA1C1841191A0024E5AA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B06AA1B1841191A0024E5AA /* CoreGraphics.framework */; }; 12 | 5B06AA1E1841191A0024E5AA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B06AA1D1841191A0024E5AA /* UIKit.framework */; }; 13 | 5B06AA241841191A0024E5AA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5B06AA221841191A0024E5AA /* InfoPlist.strings */; }; 14 | 5B06AA261841191A0024E5AA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B06AA251841191A0024E5AA /* main.m */; }; 15 | 5B06AA2A1841191A0024E5AA /* MRAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B06AA291841191A0024E5AA /* MRAppDelegate.m */; }; 16 | 5B06AA2C1841191A0024E5AA /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5B06AA2B1841191A0024E5AA /* Images.xcassets */; }; 17 | 5B06AA331841191A0024E5AA /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B06AA321841191A0024E5AA /* XCTest.framework */; }; 18 | 5B06AA341841191A0024E5AA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B06AA191841191A0024E5AA /* Foundation.framework */; }; 19 | 5B06AA351841191A0024E5AA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B06AA1D1841191A0024E5AA /* UIKit.framework */; }; 20 | 5B06AA3D1841191A0024E5AA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5B06AA3B1841191A0024E5AA /* InfoPlist.strings */; }; 21 | 5B06AA3F1841191A0024E5AA /* MRNavigationControllerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B06AA3E1841191A0024E5AA /* MRNavigationControllerTests.m */; }; 22 | 5B06AA4B1841194B0024E5AA /* MRViewControllerOne.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B06AA491841194B0024E5AA /* MRViewControllerOne.m */; }; 23 | 5B06AA4C1841194B0024E5AA /* MRViewControllerOne.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5B06AA4A1841194B0024E5AA /* MRViewControllerOne.xib */; }; 24 | 5B06AA541841198A0024E5AA /* MRViewControllerTwo.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B06AA521841198A0024E5AA /* MRViewControllerTwo.m */; }; 25 | 5B06AA551841198A0024E5AA /* MRViewControllerTwo.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5B06AA531841198A0024E5AA /* MRViewControllerTwo.xib */; }; 26 | 5B06AA59184119970024E5AA /* MRViewControllerThree.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B06AA57184119970024E5AA /* MRViewControllerThree.m */; }; 27 | 5B06AA5A184119970024E5AA /* MRViewControllerThree.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5B06AA58184119970024E5AA /* MRViewControllerThree.xib */; }; 28 | 5B06AA641841292B0024E5AA /* MRViewControllerFour.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B06AA621841292B0024E5AA /* MRViewControllerFour.m */; }; 29 | 5B06AA651841292B0024E5AA /* MRViewControllerFour.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5B06AA631841292B0024E5AA /* MRViewControllerFour.xib */; }; 30 | 5B358771188F3458007C8343 /* HTDelegateProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B358770188F3458007C8343 /* HTDelegateProxy.m */; }; 31 | 5BCC868918426B6400C1948C /* MRNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5BCC868418426B6400C1948C /* MRNavigationController.m */; }; 32 | 5BCC868A18426B6400C1948C /* MRStack.m in Sources */ = {isa = PBXBuildFile; fileRef = 5BCC868618426B6400C1948C /* MRStack.m */; }; 33 | 5BCC868B18426B6400C1948C /* MRViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5BCC868818426B6400C1948C /* MRViewController.m */; }; 34 | /* End PBXBuildFile section */ 35 | 36 | /* Begin PBXContainerItemProxy section */ 37 | 5B06AA361841191A0024E5AA /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = 5B06AA0E1841191A0024E5AA /* Project object */; 40 | proxyType = 1; 41 | remoteGlobalIDString = 5B06AA151841191A0024E5AA; 42 | remoteInfo = MRNavigationController; 43 | }; 44 | /* End PBXContainerItemProxy section */ 45 | 46 | /* Begin PBXFileReference section */ 47 | 5B06AA161841191A0024E5AA /* MRNavigationController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MRNavigationController.app; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 5B06AA191841191A0024E5AA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 49 | 5B06AA1B1841191A0024E5AA /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 50 | 5B06AA1D1841191A0024E5AA /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 51 | 5B06AA211841191A0024E5AA /* MRNavigationController-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MRNavigationController-Info.plist"; sourceTree = ""; }; 52 | 5B06AA231841191A0024E5AA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 53 | 5B06AA251841191A0024E5AA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 54 | 5B06AA271841191A0024E5AA /* MRNavigationController-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MRNavigationController-Prefix.pch"; sourceTree = ""; }; 55 | 5B06AA281841191A0024E5AA /* MRAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MRAppDelegate.h; sourceTree = ""; }; 56 | 5B06AA291841191A0024E5AA /* MRAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MRAppDelegate.m; sourceTree = ""; }; 57 | 5B06AA2B1841191A0024E5AA /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 58 | 5B06AA311841191A0024E5AA /* MRNavigationControllerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MRNavigationControllerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | 5B06AA321841191A0024E5AA /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 60 | 5B06AA3A1841191A0024E5AA /* MRNavigationControllerTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MRNavigationControllerTests-Info.plist"; sourceTree = ""; }; 61 | 5B06AA3C1841191A0024E5AA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 62 | 5B06AA3E1841191A0024E5AA /* MRNavigationControllerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MRNavigationControllerTests.m; sourceTree = ""; }; 63 | 5B06AA481841194B0024E5AA /* MRViewControllerOne.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MRViewControllerOne.h; sourceTree = ""; }; 64 | 5B06AA491841194B0024E5AA /* MRViewControllerOne.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MRViewControllerOne.m; sourceTree = ""; }; 65 | 5B06AA4A1841194B0024E5AA /* MRViewControllerOne.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MRViewControllerOne.xib; sourceTree = ""; }; 66 | 5B06AA511841198A0024E5AA /* MRViewControllerTwo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MRViewControllerTwo.h; sourceTree = ""; }; 67 | 5B06AA521841198A0024E5AA /* MRViewControllerTwo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MRViewControllerTwo.m; sourceTree = ""; }; 68 | 5B06AA531841198A0024E5AA /* MRViewControllerTwo.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MRViewControllerTwo.xib; sourceTree = ""; }; 69 | 5B06AA56184119970024E5AA /* MRViewControllerThree.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MRViewControllerThree.h; sourceTree = ""; }; 70 | 5B06AA57184119970024E5AA /* MRViewControllerThree.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MRViewControllerThree.m; sourceTree = ""; }; 71 | 5B06AA58184119970024E5AA /* MRViewControllerThree.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MRViewControllerThree.xib; sourceTree = ""; }; 72 | 5B06AA611841292B0024E5AA /* MRViewControllerFour.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MRViewControllerFour.h; sourceTree = ""; }; 73 | 5B06AA621841292B0024E5AA /* MRViewControllerFour.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MRViewControllerFour.m; sourceTree = ""; }; 74 | 5B06AA631841292B0024E5AA /* MRViewControllerFour.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MRViewControllerFour.xib; sourceTree = ""; }; 75 | 5B35876F188F3458007C8343 /* HTDelegateProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTDelegateProxy.h; sourceTree = ""; }; 76 | 5B358770188F3458007C8343 /* HTDelegateProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HTDelegateProxy.m; sourceTree = ""; }; 77 | 5BCC868318426B6400C1948C /* MRNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MRNavigationController.h; sourceTree = ""; }; 78 | 5BCC868418426B6400C1948C /* MRNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MRNavigationController.m; sourceTree = ""; }; 79 | 5BCC868518426B6400C1948C /* MRStack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MRStack.h; sourceTree = ""; }; 80 | 5BCC868618426B6400C1948C /* MRStack.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MRStack.m; sourceTree = ""; }; 81 | 5BCC868718426B6400C1948C /* MRViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MRViewController.h; sourceTree = ""; }; 82 | 5BCC868818426B6400C1948C /* MRViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MRViewController.m; sourceTree = ""; }; 83 | /* End PBXFileReference section */ 84 | 85 | /* Begin PBXFrameworksBuildPhase section */ 86 | 5B06AA131841191A0024E5AA /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | 5B06AA1C1841191A0024E5AA /* CoreGraphics.framework in Frameworks */, 91 | 5B06AA1E1841191A0024E5AA /* UIKit.framework in Frameworks */, 92 | 5B06AA1A1841191A0024E5AA /* Foundation.framework in Frameworks */, 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | 5B06AA2E1841191A0024E5AA /* Frameworks */ = { 97 | isa = PBXFrameworksBuildPhase; 98 | buildActionMask = 2147483647; 99 | files = ( 100 | 5B06AA331841191A0024E5AA /* XCTest.framework in Frameworks */, 101 | 5B06AA351841191A0024E5AA /* UIKit.framework in Frameworks */, 102 | 5B06AA341841191A0024E5AA /* Foundation.framework in Frameworks */, 103 | ); 104 | runOnlyForDeploymentPostprocessing = 0; 105 | }; 106 | /* End PBXFrameworksBuildPhase section */ 107 | 108 | /* Begin PBXGroup section */ 109 | 5B06AA0D1841191A0024E5AA = { 110 | isa = PBXGroup; 111 | children = ( 112 | 5B06AA1F1841191A0024E5AA /* MRNavigationController */, 113 | 5B06AA381841191A0024E5AA /* MRNavigationControllerTests */, 114 | 5B06AA181841191A0024E5AA /* Frameworks */, 115 | 5B06AA171841191A0024E5AA /* Products */, 116 | ); 117 | sourceTree = ""; 118 | }; 119 | 5B06AA171841191A0024E5AA /* Products */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 5B06AA161841191A0024E5AA /* MRNavigationController.app */, 123 | 5B06AA311841191A0024E5AA /* MRNavigationControllerTests.xctest */, 124 | ); 125 | name = Products; 126 | sourceTree = ""; 127 | }; 128 | 5B06AA181841191A0024E5AA /* Frameworks */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 5B06AA191841191A0024E5AA /* Foundation.framework */, 132 | 5B06AA1B1841191A0024E5AA /* CoreGraphics.framework */, 133 | 5B06AA1D1841191A0024E5AA /* UIKit.framework */, 134 | 5B06AA321841191A0024E5AA /* XCTest.framework */, 135 | ); 136 | name = Frameworks; 137 | sourceTree = ""; 138 | }; 139 | 5B06AA1F1841191A0024E5AA /* MRNavigationController */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 5B35876E188F342D007C8343 /* HTDelegateProxy */, 143 | 5BCC868218426B0D00C1948C /* MRNavigationController */, 144 | 5B06AA4E184119570024E5AA /* View */, 145 | 5B06AA4F1841195B0024E5AA /* Controller */, 146 | 5B06AA281841191A0024E5AA /* MRAppDelegate.h */, 147 | 5B06AA291841191A0024E5AA /* MRAppDelegate.m */, 148 | 5B06AA2B1841191A0024E5AA /* Images.xcassets */, 149 | 5B06AA201841191A0024E5AA /* Supporting Files */, 150 | ); 151 | path = MRNavigationController; 152 | sourceTree = ""; 153 | }; 154 | 5B06AA201841191A0024E5AA /* Supporting Files */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 5B06AA211841191A0024E5AA /* MRNavigationController-Info.plist */, 158 | 5B06AA221841191A0024E5AA /* InfoPlist.strings */, 159 | 5B06AA251841191A0024E5AA /* main.m */, 160 | 5B06AA271841191A0024E5AA /* MRNavigationController-Prefix.pch */, 161 | ); 162 | name = "Supporting Files"; 163 | sourceTree = ""; 164 | }; 165 | 5B06AA381841191A0024E5AA /* MRNavigationControllerTests */ = { 166 | isa = PBXGroup; 167 | children = ( 168 | 5B06AA3E1841191A0024E5AA /* MRNavigationControllerTests.m */, 169 | 5B06AA391841191A0024E5AA /* Supporting Files */, 170 | ); 171 | path = MRNavigationControllerTests; 172 | sourceTree = ""; 173 | }; 174 | 5B06AA391841191A0024E5AA /* Supporting Files */ = { 175 | isa = PBXGroup; 176 | children = ( 177 | 5B06AA3A1841191A0024E5AA /* MRNavigationControllerTests-Info.plist */, 178 | 5B06AA3B1841191A0024E5AA /* InfoPlist.strings */, 179 | ); 180 | name = "Supporting Files"; 181 | sourceTree = ""; 182 | }; 183 | 5B06AA4E184119570024E5AA /* View */ = { 184 | isa = PBXGroup; 185 | children = ( 186 | 5B06AA4A1841194B0024E5AA /* MRViewControllerOne.xib */, 187 | 5B06AA531841198A0024E5AA /* MRViewControllerTwo.xib */, 188 | 5B06AA58184119970024E5AA /* MRViewControllerThree.xib */, 189 | 5B06AA631841292B0024E5AA /* MRViewControllerFour.xib */, 190 | ); 191 | name = View; 192 | sourceTree = ""; 193 | }; 194 | 5B06AA4F1841195B0024E5AA /* Controller */ = { 195 | isa = PBXGroup; 196 | children = ( 197 | 5B06AA481841194B0024E5AA /* MRViewControllerOne.h */, 198 | 5B06AA491841194B0024E5AA /* MRViewControllerOne.m */, 199 | 5B06AA511841198A0024E5AA /* MRViewControllerTwo.h */, 200 | 5B06AA521841198A0024E5AA /* MRViewControllerTwo.m */, 201 | 5B06AA56184119970024E5AA /* MRViewControllerThree.h */, 202 | 5B06AA57184119970024E5AA /* MRViewControllerThree.m */, 203 | 5B06AA611841292B0024E5AA /* MRViewControllerFour.h */, 204 | 5B06AA621841292B0024E5AA /* MRViewControllerFour.m */, 205 | ); 206 | name = Controller; 207 | sourceTree = ""; 208 | }; 209 | 5B35876E188F342D007C8343 /* HTDelegateProxy */ = { 210 | isa = PBXGroup; 211 | children = ( 212 | 5B35876F188F3458007C8343 /* HTDelegateProxy.h */, 213 | 5B358770188F3458007C8343 /* HTDelegateProxy.m */, 214 | ); 215 | name = HTDelegateProxy; 216 | sourceTree = ""; 217 | }; 218 | 5BCC868218426B0D00C1948C /* MRNavigationController */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 5BCC868518426B6400C1948C /* MRStack.h */, 222 | 5BCC868618426B6400C1948C /* MRStack.m */, 223 | 5BCC868718426B6400C1948C /* MRViewController.h */, 224 | 5BCC868818426B6400C1948C /* MRViewController.m */, 225 | 5BCC868318426B6400C1948C /* MRNavigationController.h */, 226 | 5BCC868418426B6400C1948C /* MRNavigationController.m */, 227 | ); 228 | path = MRNavigationController; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXGroup section */ 232 | 233 | /* Begin PBXNativeTarget section */ 234 | 5B06AA151841191A0024E5AA /* MRNavigationController */ = { 235 | isa = PBXNativeTarget; 236 | buildConfigurationList = 5B06AA421841191A0024E5AA /* Build configuration list for PBXNativeTarget "MRNavigationController" */; 237 | buildPhases = ( 238 | 5B06AA121841191A0024E5AA /* Sources */, 239 | 5B06AA131841191A0024E5AA /* Frameworks */, 240 | 5B06AA141841191A0024E5AA /* Resources */, 241 | ); 242 | buildRules = ( 243 | ); 244 | dependencies = ( 245 | ); 246 | name = MRNavigationController; 247 | productName = MRNavigationController; 248 | productReference = 5B06AA161841191A0024E5AA /* MRNavigationController.app */; 249 | productType = "com.apple.product-type.application"; 250 | }; 251 | 5B06AA301841191A0024E5AA /* MRNavigationControllerTests */ = { 252 | isa = PBXNativeTarget; 253 | buildConfigurationList = 5B06AA451841191A0024E5AA /* Build configuration list for PBXNativeTarget "MRNavigationControllerTests" */; 254 | buildPhases = ( 255 | 5B06AA2D1841191A0024E5AA /* Sources */, 256 | 5B06AA2E1841191A0024E5AA /* Frameworks */, 257 | 5B06AA2F1841191A0024E5AA /* Resources */, 258 | ); 259 | buildRules = ( 260 | ); 261 | dependencies = ( 262 | 5B06AA371841191A0024E5AA /* PBXTargetDependency */, 263 | ); 264 | name = MRNavigationControllerTests; 265 | productName = MRNavigationControllerTests; 266 | productReference = 5B06AA311841191A0024E5AA /* MRNavigationControllerTests.xctest */; 267 | productType = "com.apple.product-type.bundle.unit-test"; 268 | }; 269 | /* End PBXNativeTarget section */ 270 | 271 | /* Begin PBXProject section */ 272 | 5B06AA0E1841191A0024E5AA /* Project object */ = { 273 | isa = PBXProject; 274 | attributes = { 275 | CLASSPREFIX = MR; 276 | LastUpgradeCheck = 0500; 277 | ORGANIZATIONNAME = "Martin Rybak"; 278 | TargetAttributes = { 279 | 5B06AA301841191A0024E5AA = { 280 | TestTargetID = 5B06AA151841191A0024E5AA; 281 | }; 282 | }; 283 | }; 284 | buildConfigurationList = 5B06AA111841191A0024E5AA /* Build configuration list for PBXProject "MRNavigationController" */; 285 | compatibilityVersion = "Xcode 3.2"; 286 | developmentRegion = English; 287 | hasScannedForEncodings = 0; 288 | knownRegions = ( 289 | en, 290 | ); 291 | mainGroup = 5B06AA0D1841191A0024E5AA; 292 | productRefGroup = 5B06AA171841191A0024E5AA /* Products */; 293 | projectDirPath = ""; 294 | projectRoot = ""; 295 | targets = ( 296 | 5B06AA151841191A0024E5AA /* MRNavigationController */, 297 | 5B06AA301841191A0024E5AA /* MRNavigationControllerTests */, 298 | ); 299 | }; 300 | /* End PBXProject section */ 301 | 302 | /* Begin PBXResourcesBuildPhase section */ 303 | 5B06AA141841191A0024E5AA /* Resources */ = { 304 | isa = PBXResourcesBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | 5B06AA5A184119970024E5AA /* MRViewControllerThree.xib in Resources */, 308 | 5B06AA551841198A0024E5AA /* MRViewControllerTwo.xib in Resources */, 309 | 5B06AA4C1841194B0024E5AA /* MRViewControllerOne.xib in Resources */, 310 | 5B06AA241841191A0024E5AA /* InfoPlist.strings in Resources */, 311 | 5B06AA2C1841191A0024E5AA /* Images.xcassets in Resources */, 312 | 5B06AA651841292B0024E5AA /* MRViewControllerFour.xib in Resources */, 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | 5B06AA2F1841191A0024E5AA /* Resources */ = { 317 | isa = PBXResourcesBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | 5B06AA3D1841191A0024E5AA /* InfoPlist.strings in Resources */, 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | }; 324 | /* End PBXResourcesBuildPhase section */ 325 | 326 | /* Begin PBXSourcesBuildPhase section */ 327 | 5B06AA121841191A0024E5AA /* Sources */ = { 328 | isa = PBXSourcesBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | 5B06AA541841198A0024E5AA /* MRViewControllerTwo.m in Sources */, 332 | 5BCC868B18426B6400C1948C /* MRViewController.m in Sources */, 333 | 5BCC868A18426B6400C1948C /* MRStack.m in Sources */, 334 | 5B06AA641841292B0024E5AA /* MRViewControllerFour.m in Sources */, 335 | 5B06AA59184119970024E5AA /* MRViewControllerThree.m in Sources */, 336 | 5B06AA261841191A0024E5AA /* main.m in Sources */, 337 | 5B06AA2A1841191A0024E5AA /* MRAppDelegate.m in Sources */, 338 | 5B358771188F3458007C8343 /* HTDelegateProxy.m in Sources */, 339 | 5BCC868918426B6400C1948C /* MRNavigationController.m in Sources */, 340 | 5B06AA4B1841194B0024E5AA /* MRViewControllerOne.m in Sources */, 341 | ); 342 | runOnlyForDeploymentPostprocessing = 0; 343 | }; 344 | 5B06AA2D1841191A0024E5AA /* Sources */ = { 345 | isa = PBXSourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 5B06AA3F1841191A0024E5AA /* MRNavigationControllerTests.m in Sources */, 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | }; 352 | /* End PBXSourcesBuildPhase section */ 353 | 354 | /* Begin PBXTargetDependency section */ 355 | 5B06AA371841191A0024E5AA /* PBXTargetDependency */ = { 356 | isa = PBXTargetDependency; 357 | target = 5B06AA151841191A0024E5AA /* MRNavigationController */; 358 | targetProxy = 5B06AA361841191A0024E5AA /* PBXContainerItemProxy */; 359 | }; 360 | /* End PBXTargetDependency section */ 361 | 362 | /* Begin PBXVariantGroup section */ 363 | 5B06AA221841191A0024E5AA /* InfoPlist.strings */ = { 364 | isa = PBXVariantGroup; 365 | children = ( 366 | 5B06AA231841191A0024E5AA /* en */, 367 | ); 368 | name = InfoPlist.strings; 369 | sourceTree = ""; 370 | }; 371 | 5B06AA3B1841191A0024E5AA /* InfoPlist.strings */ = { 372 | isa = PBXVariantGroup; 373 | children = ( 374 | 5B06AA3C1841191A0024E5AA /* en */, 375 | ); 376 | name = InfoPlist.strings; 377 | sourceTree = ""; 378 | }; 379 | /* End PBXVariantGroup section */ 380 | 381 | /* Begin XCBuildConfiguration section */ 382 | 5B06AA401841191A0024E5AA /* Debug */ = { 383 | isa = XCBuildConfiguration; 384 | buildSettings = { 385 | ALWAYS_SEARCH_USER_PATHS = NO; 386 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 387 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 388 | CLANG_CXX_LIBRARY = "libc++"; 389 | CLANG_ENABLE_MODULES = YES; 390 | CLANG_ENABLE_OBJC_ARC = YES; 391 | CLANG_WARN_BOOL_CONVERSION = YES; 392 | CLANG_WARN_CONSTANT_CONVERSION = YES; 393 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 394 | CLANG_WARN_EMPTY_BODY = YES; 395 | CLANG_WARN_ENUM_CONVERSION = YES; 396 | CLANG_WARN_INT_CONVERSION = YES; 397 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 398 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 399 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 400 | COPY_PHASE_STRIP = NO; 401 | GCC_C_LANGUAGE_STANDARD = gnu99; 402 | GCC_DYNAMIC_NO_PIC = NO; 403 | GCC_OPTIMIZATION_LEVEL = 0; 404 | GCC_PREPROCESSOR_DEFINITIONS = ( 405 | "DEBUG=1", 406 | "$(inherited)", 407 | ); 408 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 409 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 410 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 411 | GCC_WARN_UNDECLARED_SELECTOR = YES; 412 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 413 | GCC_WARN_UNUSED_FUNCTION = YES; 414 | GCC_WARN_UNUSED_VARIABLE = YES; 415 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 416 | ONLY_ACTIVE_ARCH = YES; 417 | SDKROOT = iphoneos; 418 | }; 419 | name = Debug; 420 | }; 421 | 5B06AA411841191A0024E5AA /* Release */ = { 422 | isa = XCBuildConfiguration; 423 | buildSettings = { 424 | ALWAYS_SEARCH_USER_PATHS = NO; 425 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 426 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 427 | CLANG_CXX_LIBRARY = "libc++"; 428 | CLANG_ENABLE_MODULES = YES; 429 | CLANG_ENABLE_OBJC_ARC = YES; 430 | CLANG_WARN_BOOL_CONVERSION = YES; 431 | CLANG_WARN_CONSTANT_CONVERSION = YES; 432 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 433 | CLANG_WARN_EMPTY_BODY = YES; 434 | CLANG_WARN_ENUM_CONVERSION = YES; 435 | CLANG_WARN_INT_CONVERSION = YES; 436 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 437 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 438 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 439 | COPY_PHASE_STRIP = YES; 440 | ENABLE_NS_ASSERTIONS = NO; 441 | GCC_C_LANGUAGE_STANDARD = gnu99; 442 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 443 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 444 | GCC_WARN_UNDECLARED_SELECTOR = YES; 445 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 446 | GCC_WARN_UNUSED_FUNCTION = YES; 447 | GCC_WARN_UNUSED_VARIABLE = YES; 448 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 449 | SDKROOT = iphoneos; 450 | VALIDATE_PRODUCT = YES; 451 | }; 452 | name = Release; 453 | }; 454 | 5B06AA431841191A0024E5AA /* Debug */ = { 455 | isa = XCBuildConfiguration; 456 | buildSettings = { 457 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 458 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 459 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 460 | GCC_PREFIX_HEADER = "MRNavigationController/MRNavigationController-Prefix.pch"; 461 | INFOPLIST_FILE = "MRNavigationController/MRNavigationController-Info.plist"; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | WRAPPER_EXTENSION = app; 464 | }; 465 | name = Debug; 466 | }; 467 | 5B06AA441841191A0024E5AA /* Release */ = { 468 | isa = XCBuildConfiguration; 469 | buildSettings = { 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 472 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 473 | GCC_PREFIX_HEADER = "MRNavigationController/MRNavigationController-Prefix.pch"; 474 | INFOPLIST_FILE = "MRNavigationController/MRNavigationController-Info.plist"; 475 | PRODUCT_NAME = "$(TARGET_NAME)"; 476 | WRAPPER_EXTENSION = app; 477 | }; 478 | name = Release; 479 | }; 480 | 5B06AA461841191A0024E5AA /* Debug */ = { 481 | isa = XCBuildConfiguration; 482 | buildSettings = { 483 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 484 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MRNavigationController.app/MRNavigationController"; 485 | FRAMEWORK_SEARCH_PATHS = ( 486 | "$(SDKROOT)/Developer/Library/Frameworks", 487 | "$(inherited)", 488 | "$(DEVELOPER_FRAMEWORKS_DIR)", 489 | ); 490 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 491 | GCC_PREFIX_HEADER = "MRNavigationController/MRNavigationController-Prefix.pch"; 492 | GCC_PREPROCESSOR_DEFINITIONS = ( 493 | "DEBUG=1", 494 | "$(inherited)", 495 | ); 496 | INFOPLIST_FILE = "MRNavigationControllerTests/MRNavigationControllerTests-Info.plist"; 497 | PRODUCT_NAME = "$(TARGET_NAME)"; 498 | TEST_HOST = "$(BUNDLE_LOADER)"; 499 | WRAPPER_EXTENSION = xctest; 500 | }; 501 | name = Debug; 502 | }; 503 | 5B06AA471841191A0024E5AA /* Release */ = { 504 | isa = XCBuildConfiguration; 505 | buildSettings = { 506 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 507 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MRNavigationController.app/MRNavigationController"; 508 | FRAMEWORK_SEARCH_PATHS = ( 509 | "$(SDKROOT)/Developer/Library/Frameworks", 510 | "$(inherited)", 511 | "$(DEVELOPER_FRAMEWORKS_DIR)", 512 | ); 513 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 514 | GCC_PREFIX_HEADER = "MRNavigationController/MRNavigationController-Prefix.pch"; 515 | INFOPLIST_FILE = "MRNavigationControllerTests/MRNavigationControllerTests-Info.plist"; 516 | PRODUCT_NAME = "$(TARGET_NAME)"; 517 | TEST_HOST = "$(BUNDLE_LOADER)"; 518 | WRAPPER_EXTENSION = xctest; 519 | }; 520 | name = Release; 521 | }; 522 | /* End XCBuildConfiguration section */ 523 | 524 | /* Begin XCConfigurationList section */ 525 | 5B06AA111841191A0024E5AA /* Build configuration list for PBXProject "MRNavigationController" */ = { 526 | isa = XCConfigurationList; 527 | buildConfigurations = ( 528 | 5B06AA401841191A0024E5AA /* Debug */, 529 | 5B06AA411841191A0024E5AA /* Release */, 530 | ); 531 | defaultConfigurationIsVisible = 0; 532 | defaultConfigurationName = Release; 533 | }; 534 | 5B06AA421841191A0024E5AA /* Build configuration list for PBXNativeTarget "MRNavigationController" */ = { 535 | isa = XCConfigurationList; 536 | buildConfigurations = ( 537 | 5B06AA431841191A0024E5AA /* Debug */, 538 | 5B06AA441841191A0024E5AA /* Release */, 539 | ); 540 | defaultConfigurationIsVisible = 0; 541 | defaultConfigurationName = Release; 542 | }; 543 | 5B06AA451841191A0024E5AA /* Build configuration list for PBXNativeTarget "MRNavigationControllerTests" */ = { 544 | isa = XCConfigurationList; 545 | buildConfigurations = ( 546 | 5B06AA461841191A0024E5AA /* Debug */, 547 | 5B06AA471841191A0024E5AA /* Release */, 548 | ); 549 | defaultConfigurationIsVisible = 0; 550 | defaultConfigurationName = Release; 551 | }; 552 | /* End XCConfigurationList section */ 553 | }; 554 | rootObject = 5B06AA0E1841191A0024E5AA /* Project object */; 555 | } 556 | --------------------------------------------------------------------------------