uinavigationcontroller

Prevent UITabBar to hide when pushed

送分小仙女□ 提交于 2019-12-20 05:45:35
问题 First let me tell about my app scenario. UINavigationController {relationship} UIViewControllerMain {push} UITabController {push} UIViewControllerOne . Here problem is tab bar hides in UIViewControllerOne . How can i make it visible? 回答1: self.tabBarController.tabBar.hidden = NO; 来源: https://stackoverflow.com/questions/12244816/prevent-uitabbar-to-hide-when-pushed

UITabBarController's 'More' navigation controller disappears under UINavigationController

梦想与她 提交于 2019-12-20 05:40:58
问题 I am using a UITabBarController as well as a UINavigationController on my app. In my UITabBarController I am using more than 5 items so I automatically get the 'More' item. I've managed to add a saving procedure so the order of those items will be kept in case somebody changes the order etc. With 'More' active I get the More navigation controller with the 'Edit' item positioned under my UINavigationController. Both navigation controller are visible. When I click on 'Edit though the More

Swift renaming the back navigation item

故事扮演 提交于 2019-12-20 05:25:09
问题 I'm trying to edit the tile of the back item in the navigation controller. I have this scene, Navigation Controller -> Table View Controller -> TableViewController . In the second TableViewController I want to rename the the back item from " xxxx " to " Back ". Is there a way to do via the StoryBoard , or should I do it programmatically ? This is what I've tried but it does not work: let backItem = UIBarButtonItem() backItem.title = "Back" navigationItem.backBarButtonItem? = backItem or

iPhone one title for all view controllers

最后都变了- 提交于 2019-12-20 05:15:17
问题 I have an app with tab bar controller (with 4 views controller) and it contains a navigation controller. All of this was create programmatically. My question: Is there a way how to set one navigation bar title for all view controllers ? For example: When i switch tabs, title is the same. Ideal solution for me is set title in app delegate file. Thanks a lot 回答1: If you know that there will be exactly 4 views controller, just do self.title = @"your title"; If you want to change "your title"

Detect backward/pop navigation in destination view controller viewWillAppear [duplicate]

余生长醉 提交于 2019-12-20 04:39:08
问题 This question already has an answer here : Detect when view controller appears from pop (1 answer) Closed 11 months ago . There are a number of well known solutions for detecting when a view controller is in the process of disappearing off the screen in the process of a backwards navigation, managed by a UINavigationController (i.e. when a view controller is being popped off the navigation stack). In other words detecting a backwards navigation within the source view controller. In contrast,

iPhone: Move UINavigationBar down?

旧城冷巷雨未停 提交于 2019-12-20 04:27:16
问题 I'm trying to position the navigation bar below the top of the screen. I've tried the following in viewWillAppear : self.navigationController.view.frame = CGRectMake(0.0, 54.0, 320.0, 426.0); self.navigationController.navigationBar.frame = CGRectMake(0.0, 0.0, 320.0, 44.0); The problem is it only seems to work the very first time the view is displayed. If you go to another tab, and back, the navigation bar is at the top of the screen. This also happens when the iPhone is rotated. Should I be

iOS7: How to add a fixed Search Bar like Contacts on iOS7?

懵懂的女人 提交于 2019-12-19 23:22:39
问题 After I search a lot of questions and answers, no good result. So I have to ask it here: I want to add a Search Bar below the navigation bar. This search bar should be fixed. Just like contacts on iOS7 below. Can any one help me to figure it out? 回答1: You have a view controller. It has a main view. Inside that main view is a search bar (UISearchBar) and, below that, a table view (UITableView). Your view controller is embedded in a navigation controller (UINavigationController).

Confusion about initWithNavigationBarClass - how to use (new instanceType method)

与世无争的帅哥 提交于 2019-12-19 19:14:47
问题 This works great: UINavigationController *nc = [[UINavigationController alloc] initWithNavigationBarClass:[GTScrollNavigationBar class] toolbarClass:[UIToolbar class]]; nc.viewControllers = @[firstPage]; self.window.rootViewController = nc; but this does not work: UINavigationController *nc = [[UINavigationController alloc] initWithNavigationBarClass:[GTScrollNavigationBar class] toolbarClass:[UIToolbar class]]; self.window.rootViewController = nc; self.window.rootViewController

Confusion about initWithNavigationBarClass - how to use (new instanceType method)

試著忘記壹切 提交于 2019-12-19 19:13:29
问题 This works great: UINavigationController *nc = [[UINavigationController alloc] initWithNavigationBarClass:[GTScrollNavigationBar class] toolbarClass:[UIToolbar class]]; nc.viewControllers = @[firstPage]; self.window.rootViewController = nc; but this does not work: UINavigationController *nc = [[UINavigationController alloc] initWithNavigationBarClass:[GTScrollNavigationBar class] toolbarClass:[UIToolbar class]]; self.window.rootViewController = nc; self.window.rootViewController

How to show back button on the RootViewController of the UINavigationController?

梦想的初衷 提交于 2019-12-19 12:51:45
问题 Here is my code. I want to put a back button on the opening rootviewController. - (void)selectSurah:(id)sender { SurahTableViewController * surahTableViewController = [[SurahTableViewController alloc] initWithNibName:@"SurahTableViewController" bundle:nil]; surahTableViewController.navigationItem.title=@"Surah"; surahTableViewController.navigationItem.backBarButtonItem.title=@"Back"; UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController