uinavigationcontroller

How to keep navigation bar from disappearing with MSMessagesViewController -> UIContainerView -> UINavigationController -> UITableViewController?

倖福魔咒の 提交于 2019-12-24 05:49:58
问题 I am trying to put a navigation controller with a table view controller within an iMessage app (iOS 10). This seems to work when I put the UINavigationController within an UIContainerView within the MSMessagesViewController . However, this breaks when in expanded view. The UINavigationBar that the controller has disappears. How can I remedy this, or am I taking the wrong approach? 回答1: Let me start with the assumption that you used view.addSubview to add your UITableViewController to the

How to push additional view controllers onto NavigationController but keep the TabBar?

纵然是瞬间 提交于 2019-12-24 04:44:27
问题 I have an app that starts with a basic view controller at the root of my navigation controller - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.navController.viewControllers = [NSArray arrayWithObject:[self getHomeViewController]]; [[self getWindow] addSubview:self.navController.view]; [[self getWindow] makeKeyAndVisible]; return YES; } Once a navigation item is selected I push a tab bar controller w/ a few view controllers. -

Prompting an UIAlertView to user before navigating back to the previous controller in a UINavigationController stack

跟風遠走 提交于 2019-12-24 04:28:10
问题 I'm trying to prompt a UIAlertView before navigating to the previous controller and preventing navigation if the user decides to stay on the same View Controller. Using CCTBackButtonActionHelper, the UIALertView can be easily generated but the only problem I'm facing is that it changes the color of the back button to gray just like any disabled UIBarButton control when clicked. However, clicking anywhere on the navigation bar restores its original color. So how could i prevent changing its

UINavigationController Back button title always show “Back”

泪湿孤枕 提交于 2019-12-24 03:55:11
问题 I am developing an IOS application. I am using navigation controller. If I push to next page then back button title not shown previous page title in IOS 7. Back button title always "Back" in IOS 7. I set all pages titles in viewWillAppear , viewDidload like below. But it is not working. self.navigationItem.title=@"Previous Page Title"; self.title = @"Previous Page Title"; What can I set back button title with previous page title in IOS 7 Thanx 回答1: If the title is large, back button shows

Add buttons to UINavigationController subclass

大兔子大兔子 提交于 2019-12-24 03:04:00
问题 I'm trying to create reusable subclass of UINavigationController . So here's my code : @interface MainNavigationController : UINavigationController ... - (void)viewDidLoad { [super viewDidLoad]; self.navigationBar.barTintColor = primaryOrange; self.navigationBar.tintColor = white; self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"search"] style:UIBarButtonItemStylePlain target:self action:nil]; self.navigationItem.rightBarButtonItem = [

Problems accessing rootviewController of navcontroller iphone

梦想的初衷 提交于 2019-12-24 03:00:56
问题 Im working off the seismic xml iphone example. In that example there is simply the application delegate which has a rootViewController of type UITableViewController. I wanted to modify it slightly so that I would have a navigationController and use its rootViewController as the table view. My root view controller class for my navigation controller is named "firstLevelViewController" In the sample code it says [rootViewController.tableView reloadData]; I want to say [navController

UIView animation continues to run after a new view controller is pushed onto the stack

天大地大妈咪最大 提交于 2019-12-24 02:52:43
问题 Solved. Ridiculously embarrassing. I wasn't using an instance variable, I declared it outside of curly braces in the implementation. Really struggling. I have a view controller that manages an animated countdown timer. The animation is using recursive UIView animation and a simple int ivar that gets decremented. Something like the following (this is a simplified snippet): - (void) animate { [UIView animateWithDuration:0.75f delay:0.25f options:UIViewAnimationCurveEaseInOut animations:^{ aView

interactivePopGestureRecognizer causes the UITabBarController disables interaction

余生长醉 提交于 2019-12-24 02:42:29
问题 I have a UITabBarController with three tab bar items. The tab bar items has view controllers of the type UINavigationController . Each navigation controller has UIViewController as the top view controller. Each view controller on the top of the navigation controller stack has its own flow. When the user swipes at the edge of the screen to trigger interactivePopGestureRecognizer , and upon the popping out the view controller from the stack, the tab bar items becomes not interact-able. Any idea

interactivePopGestureRecognizer causes the UITabBarController disables interaction

爱⌒轻易说出口 提交于 2019-12-24 02:42:27
问题 I have a UITabBarController with three tab bar items. The tab bar items has view controllers of the type UINavigationController . Each navigation controller has UIViewController as the top view controller. Each view controller on the top of the navigation controller stack has its own flow. When the user swipes at the edge of the screen to trigger interactivePopGestureRecognizer , and upon the popping out the view controller from the stack, the tab bar items becomes not interact-able. Any idea

Go back to previous view controller with help of swipe back (to the left)

人盡茶涼 提交于 2019-12-24 01:44:57
问题 I have 2 view controllers. 1: Login page(Main View Controller) 2: Sign Up page .Lets assume that I want to go back from Sign Up page to Login page . How to solve this problem(with Navigation Controller), I am new in swift and iOS . Here is my code in AppDelegate.swift. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { self.window = UIWindow(frame: UIScreen.mainScreen().bounds) self.window?.backgroundColor = UIColor