uinavigationcontroller

Resizing behavior of UIPopoverController differs between iOS 7.0 and iOS 7.1

百般思念 提交于 2020-01-01 16:56:06
问题 I have a UIPopoverController that contains a UITableViewController within a UINavigationController. Whenever a cell in this table view is pressed, I push yet another UITableViewController to my navigation Controller. I want to set the height of my second table view (let's say to 200) and adjust the size of the popover accordingly. I therefore first set the table view frame in viewDidAppear:(BOOL)animated and then call setPopoverContentSize:(CGSize)size animated:(BOOL)animated . Both heights

Dismissing a navigation view controller

て烟熏妆下的殇ゞ 提交于 2020-01-01 11:45:53
问题 I am currently working on a game for the iOS platform. The game's initial view controller is a login screen, and once the player logs in, he gets to a loading screen, and then a navigation view controller containing a table view with a list of current games. The storyboard's relevant view relations look like this: [login screen] --modalsegue-> [loading screen] --modalsegue-> [navigation controller] --relationship-> [tableview (with logout button)] I want to make a logout button at the bottom

UITabBarItem.title vs. UINavigationController.title

↘锁芯ラ 提交于 2020-01-01 10:45:53
问题 I allocated a UITabBarItem with a title (initWithTitle) and connected it to a UINavigationController. I found out that if the navigation controller's root view controller has its own title, then that title permanently replaces the title specified on the tab bar item. For example, if the tab bar items' title is set to ONE and the navigation controller's root view controller's title is set to TWO, the tab bar item always shows TWO, not ONE. The only way to have the tab bar item show ONE is to

How to prevent Large Title from Collapsing

吃可爱长大的小学妹 提交于 2020-01-01 09:14:06
问题 The question is simple, how can I prevent a Large Title Navigation Bar from collapse when a scrollview scrolls down? My navigation must have a large navigation bar at all times... so when a scrollview scroll, the navigation bar shouldn't collapse up, it should stay the same size, how can I do that? This is how I set the largeTitle preferences override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) self.navigationItem.hidesBackButton = true presenter

UIRefreshControl bug when entering foreground

随声附和 提交于 2020-01-01 08:04:29
问题 I've noticed a little bug (but really annoying) when I use UIRefreshControl in my View Controller. When the application returns from the background the UIRefreshControl is already loaded and it looks like this: As you can see I use a custom navigation controller which hides like in the Facebook app ( AMScrollingNavBar ). When I reload data in UITableView everything comes back to normal and this bug shows only after returning from the background. This is the code which I use to initialize

UIRefreshControl bug when entering foreground

故事扮演 提交于 2020-01-01 08:04:09
问题 I've noticed a little bug (but really annoying) when I use UIRefreshControl in my View Controller. When the application returns from the background the UIRefreshControl is already loaded and it looks like this: As you can see I use a custom navigation controller which hides like in the Facebook app ( AMScrollingNavBar ). When I reload data in UITableView everything comes back to normal and this bug shows only after returning from the background. This is the code which I use to initialize

iOS Status Bar changing color to match navigation bar on its own

佐手、 提交于 2020-01-01 07:20:21
问题 I have a UINavigationController in my AppDelegate with a RootViewController that has a UITableView. On startup, the status bar changes its color to the color of the navigation bar. When I colored my navigation bar to orange, this is what the status bar is looking like: It seems that my navigation bar is shifted to the top a little bit. It appears that the navigation controller does not recognize the status bar. How can I fix this issue? The only thing I have in my app is an AppDelegate and an

Why is this over-releasing? UINavigationController / UITableview

别来无恙 提交于 2020-01-01 04:53:06
问题 I'm pushing a view controller onto my navigation controller's stack from within my TableViewController's didSelectRowAtIndexPath method as so: MyViewController *myViewController = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil]; MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate]; MyObject *myO = (MyObject *)[appDelegate.myOs objectAtIndex:indexPath.row]; myViewController.amount = myO.amount; [self.navigationController

UINavigationBar set tintcolor tested in iOS7 not working?

房东的猫 提交于 2020-01-01 01:15:54
问题 I have an app which have a UINavigationBar and I have set the tint color to black like this: self.navigationController.navigationBar.tintColor = [UIColor blackColor];` I have tested it in IOS 6 and it's black. However, it appears as the default navigation bar when I tried the same app in iOS 7. As the title says, is it not working? 回答1: You need to set the barTintColor property. You can specify a custom tint color for the navigation bar background using the Tint (barTintColor) field. The

UIToolbar on each page of UINavigationController

为君一笑 提交于 2019-12-31 21:43:11
问题 I have an application which runs on a UINavigationController. Now I would like to add a UIToolbar element to the bottom of each screen. The Toolbar on the bottom should the be customizable for the ViewController that is currently being displayed. My first idea was to simply add the toolbar to the navigationController view and tag it, in the viewController I thought I would then be able to retrieve the UIToolbar element. I have the following code: In my AppDelegate: // Get instance of Toolbar