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
3 answers

How to add a NavigationItem to a programmatically created UINavigationController

I am using this code to programmatically add an UINavigationController to an existing UIViewController: self.window = UIWindow(frame: UIScreen.mainScreen().bounds) let nav1 = UINavigationController() let mainView = ReminderController(nibName: nil,…
3
votes
1 answer

How do I make a navigation bar stay visible with UISearchController?

So I have a navigation controller hooked up to a view controller. That obviously provides the default navigation bar. Below that, I have another navigation bar with two buttons. In code I am manually adding the search bar that the UISearchController…
3
votes
1 answer

Present Modal View in Detail View in UISplitViewController

I want to make a behavior like contacts app in iPad with landscape mode. I'm expecting that a Modal shows in a Detail view when I click upper right add button. but now if I click upper right add button, the Modal shows in all screen. what method…
user2526811
  • 1,233
  • 4
  • 20
  • 54
3
votes
1 answer

Navigation bar in UIPageViewController bug

I have vertical UIPageViewController with scroll transition mode. Bottom view controller have navigation controller without showing top bar. Top view controller have another navigation controller, but with showing top bar. When I scroll to top VC…
3
votes
1 answer

Making custom toolbar appear over tab bar in all tabs like Spotify app - iOS

I would like to make a toolbar (or possibly just a view) appear above the tab bar in all tabs, like in the Spotify app. Ideally, this would be the same toolbar/view accessible by all tabs, so if it changes in one place, I don't have to change it for…
3
votes
4 answers

How to reset navigationviewcontroller ios swift

I am having app with Slider where I have provided drop down to switch between users. As soon as app user switch to other user I want to reset entire navigation flow and start it from 1st screen. For e.g Screen A -> Screen B -> Screen C -> Screen D…
Scorpion
  • 6,831
  • 16
  • 75
  • 123
3
votes
1 answer

status bar and Navigation bar problem after dismissed modal view

the apps launched the mailcomposer modal view (MFMailComposeViewController) when the Contact Us button is pressed. but once the modal view is loaded, the status bar is hidden automatically. I setStatusBarHidden Status to NO after modal view…
3
votes
2 answers

Why setting the barItems is not working?

I have a UIViewController, and I embed it into a UINavigationController. I want to show one item in the toolbar (and by toolbar, I mean this: This is my code in viewDidLoad method self.navigationController?.toolbarHidden =…
sarah
  • 1,201
  • 1
  • 9
  • 29
3
votes
1 answer

View pushed down after status bar hides?

I have a UIViewController with no status bar, and it launches a second UIViewController that has a status bar. If the extended status bar is active, both views show correctly, but when I exit the second view and go back to the first, I see a 20pt…
Cbas
  • 6,003
  • 11
  • 56
  • 87
3
votes
2 answers

UIToolBar position to top of UINavigationController

How to move the UIToolBar to top (stick to the UINavigationBar)? I m struggle with this thing for a long time and I've try some stuff like: Custom UIToolBar that conforms to UIToolbarDelegate and (UIBarPosition)positionForBar:(id…
gran33
  • 12,421
  • 9
  • 48
  • 76
3
votes
3 answers

How to the get UIViewController which presented a UINavigationController

I have NAVIGATIONController A -> ViewController A -> ViewController B | | (modal) | …
Kalzem
  • 7,320
  • 6
  • 54
  • 79
3
votes
2 answers

UITabBarController UINavigationController

I combine tabbarcontroller with navigationcontroller. I set navigationitem title by using, self.tabBarController?.navigationItem.title = "first" for first page self.tabBarController?.navigationItem.title = "second" for second page,and the title…
3
votes
2 answers

Create Navigation Controller inside view

I have ViewController mainVC - it consist of two parts - navigation view and wrapper view. When user press one of the buttons in NavigationView - one of my ViewControllers - for example vc is loaded inside WrapperView. …
moonvader
  • 19,761
  • 18
  • 67
  • 116
3
votes
1 answer

Unexpected background image showing on transition when visual effect view is on top of it

I am working on my iOS app, and been trying to figure this out for the past couple of days now and no resources I could find available. I have an image covering my entire view controller and on top of it, a visual effect view with blur. All things…
phage04
  • 321
  • 1
  • 12
3
votes
1 answer

Default Time Interval for setNavigationBarHidden(Bool, Bool) Animation

What is the default time interval for Swift animations like the setNavigationBarHidden(Bool, animated: Bool) and setToolbarHidden(Bool, animated: Bool) methods of the UINavigationController class? I would like to know so that my animations match the…
rolling_codes
  • 15,174
  • 22
  • 76
  • 112