Questions tagged [uinavigationcontroller]

The UINavigationController class implements a specialized iOS view controller that manages the navigation of hierarchical content.

This class is not intended for subclassing. Instead, you use instances of it as-is in situations where you want your application’s user interface to reflect the hierarchical nature of your content. This navigation interface makes it possible to present your data efficiently and also makes it easier for the user to navigate that content.

The screens presented by a navigation interface typically mimic the hierarchical organization of your data. At each level of the hierarchy, you provide an appropriate screen (managed by a custom view controller) to display the content at that level.

Sample of use

References:

UINavigationController Class Reference

11391 questions
3
votes
1 answer

Is it possible to hide the Nav Bar on a UISplitViewController?

I have a very simple app that I want to use a UISplitViewController in. It's so simple that I don't want the NavigationBar visible in portrait because there is no navigation in the left pane. (I do want to show it in portrait for the Popover to…
Rog
  • 17,070
  • 9
  • 50
  • 73
3
votes
1 answer

Navigation Controller Toolbar Size & Location - iOS Swift

Hello I am currently working on an application in Swift 3. I am having problems in a table view controller which is embedded in a navigation controller. I am currently displaying the navigationController toolbar. However on the initial table view…
Jerland2
  • 1,096
  • 11
  • 28
3
votes
2 answers

Testing pushViewController in Swift

I´ve tried to setup a router for navigating to the right Viewcontroller. When I call this in the simulator, it does work fine. BUT: When I try to test the outcome of this transition via the topViewController or presentedViewController property of…
Maggy
  • 331
  • 4
  • 15
3
votes
1 answer

UITabbarController + UINavigationController, detail view with UIToolbar instead of tab bar

In my Main Window IB file I have a TabBarController and the first controller is a Navigation Controller. When I push my detail view (after pressing a cell in a table view) I want to push my detail view and display a tool bar instead of the tab bar.…
Erik
  • 5,791
  • 5
  • 30
  • 45
3
votes
2 answers

Difference between viewControllers and childViewControlle for UINavigationController

fileprivate func test() { guard let w = self.view.window else { print("no window") return } guard let rootvc = w.rootViewController as? UINavigationController else { print("no rootvc") …
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
3
votes
2 answers

Error when using unwind segue with UISearchController

I have a Navigation Controller with a UITableViewController. When a user selects a cell on the TableViewController, it pushes to a new View Controller with a Table View inside. The user then selects a cell and the data gets passed back via an unwind…
3
votes
2 answers

Add search bar under the navigation title

Here is my code: [self.navigationController.navigationBar setFrame:CGRectMake(0, 0, 500, 800)]; self.navigationItem.title = @"locations"; [self.navigationController.navigationBar setFrame:CGRectMake(0, 0,…
ios
  • 77
  • 2
  • 9
3
votes
1 answer

Navigation Bar + presentModalViewController

I have a navigation bar based application, and at one specific point in the app I have a button on the nav bar that should present a new view using a flip transition (essentially taking a user from a tableview to a map view). I'm currently using …
minimalpop
  • 6,997
  • 13
  • 68
  • 80
3
votes
2 answers

Show a UINavigationBar back button without pushing a view controller

In the iPad's Photos app, when you tap an album the stack of pictures expands to fill the screen - you're in the same view, it's just rearranged the grid a little. But at the top, a left-arrow-style Back button appears, as if pushViewController had…
3
votes
2 answers

Wrong Toolbar position - iOS

I have a Collection View Controller inside a Navigation Controller with a Toolbar, the problem is that my Toolbar is floating. It looks like this: And the Storyboard (I've added the Toolbar checking "Show Toolbar" in Navigation Controller…
alessionossa
  • 923
  • 2
  • 15
  • 41
3
votes
1 answer

Edit Button on Navigation Controller does not enter edit mode

I have a UIToolbar with an edit bar button on it. This is defined as self.toolbarItems = [NSArray arrayWithObjects:self.editButtonItem,nil]; The edit bar item shows up, and but when i tap it, nothing happens, it does not change to Done and none of…
joec
  • 3,533
  • 10
  • 60
  • 89
3
votes
1 answer

Navigation bar color is not under status bar

I am trying to make a transparent navigation bar, but when I set it to transparent It looks like this... : I want it to look like this but transparent and blurred like in the App Store but with background color. The problem is that the background…
Phyber
  • 1,368
  • 11
  • 25
3
votes
1 answer

UITabBarController is slow in responding to touches

I have a UIViewController that contains a UITabBarController with three tabs (each tab being a UINavigationController). The problem that I am having is that in the simulator and the device, going from one tab to another takes a few seconds. I do not…
3
votes
1 answer

Stuck! can only pass data for presentviewcontroller, not pushviewcontroller

let chatController = ChatLogController() chatController.user = user let nav: UINavigationController = UINavigationController(rootViewController: chatController) self.presentViewController(nav, animated: true, completion: nil) The…
slimboy
  • 1,633
  • 2
  • 22
  • 45
3
votes
2 answers

Contents of UIPopover change to random orientation when Modal View is visible and iPad rotated

I have a UITableView within a navigation controller shown within a popover. When you press a bar button from within the popover (on a detail view), it shows a modal view. If you rotate the iPad with the popover visible and the modal view on top of…
W Dyson
  • 4,604
  • 4
  • 40
  • 68