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
30
votes
7 answers

Navigation bar not showing iOS swift

I am having multiple view controller in my application. I want to hide navigationbar in my first view controller. So I use the following code to hide the navigation…
Amsheer
  • 7,046
  • 8
  • 47
  • 81
30
votes
2 answers

How to remove a specific view controller from uinavigationcontroller stack?

I have a uinavigationcontroller. After logged in i want to remove viewcontrollers like RegisterViewController,LoginViewController etc from UInavigationcontroller stack.. I mean i have to remove a particular view controller from stack ? How its…
S.P.
  • 5,427
  • 11
  • 56
  • 83
30
votes
8 answers

Customizing navigationBar in iOS7 - title color not working

I am trying to customize the navigationBar of a navigation controller in iOS7 and the title color is not changing. I am doing the following: [navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:46.0f/256.0f…
Live2Enjoy7
  • 1,075
  • 2
  • 11
  • 22
29
votes
2 answers

iPhone - UIImagePickerControllerDelegate inheritance

I have added a UIImagePickerController to a UIViewController. I have also assigned the UIImagePickerControllerDelegate to that UIViewController. When I execute the following line, myPicker.delegate = self; Xcode gifts me with the following…
29
votes
4 answers

Android UINavigationController-like feature

On the iPhone I use a Navigation Controller to push and pop Views from. Very handy. Is there an equivalent in Android?
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
29
votes
7 answers

How to change the font and text color of the title of UINavigationBar

I want to be change the font of the title to Avenir, and I want to make it white. Here is my code in the viewDidLoad method: UINavigationBar.appearance().titleTextAttributes = [NSFontAttributeName: UIFont(name: "Avenir", size: 20)!] …
Rehaan Advani
  • 945
  • 1
  • 12
  • 24
29
votes
3 answers

Swift – Instantiating a navigation controller without storyboards in App Delegate

I'm rebuilding an app without storyboards and the part of it that I'm having the most trouble with is navigating view-to-view programatically. Few things are written out there which don't use storyboards, so finding an answer for this has been…
Zack Shapiro
  • 6,648
  • 17
  • 83
  • 151
29
votes
1 answer

How do I use UISearchController in iOS 8 where the UISearchBar is in my navigation bar and has scope buttons?

I'm trying to use the new UISearchController from iOS 8, and embed its UISearchBar in my UINavigationBar. That's easily done as follows: searchController = UISearchController(searchResultsController: nil) searchController.searchResultsUpdater =…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
29
votes
1 answer

iOS 8 Navigation Bar Not Accessible in Second ViewController on Storyboard

I am new to iOS development and have not tried this programmatically yet. I would prefer to get this working in a storyboard. I'm following this somewhat outdated tutorial from XCode 4.5 in XCode 6.1 to create a series of views connected by one…
29
votes
7 answers

hide tab bar in view with push

I have a tabBar + NavigationViewController. The Tab bar has collection view with cells(Say view1) and with cells a push seague is implemented to another view(Say view2). In view2 I want to have a navBar but no tab bar. I tried…
29
votes
3 answers

View controller lifecycle when swiping-to-pop from UINavigationController in iOS7

What is the impact of iOS 7's new swipe-to-pop gesture on the view controller lifecycle of UINavigationController?
29
votes
5 answers

Best practices for handling changes to the UINavigationItem of child view controllers in a container controller?

Suppose I have a container controller that accepts an array of UIViewControllers and lays them out so the user can swipe left and right to transition between them. This container controller is wrapped inside a navigation controller and is made the…
Reid Main
  • 3,394
  • 3
  • 25
  • 42
29
votes
2 answers

navigationController.navigationItem vs navigationItem

Just curious, why setting self.navigationItem = ... works, but self.navigationController.navigationItem fails? The same applies for self.toolbarItems vs self.navigationController.toobarItems. When to use…
limboy
  • 3,879
  • 7
  • 37
  • 53
28
votes
7 answers

Large title to small title switch in navigation bar is not smooth iOS 13, sticky

I have a UINavigationController with default value of it's navigationBar.prefersLargeTitles = true . I am switching that to false when I push into a new scene lets call it (DetailsViewController), by changing it into the viewWillDisappear .…
Mohmmad S
  • 5,001
  • 4
  • 18
  • 50
28
votes
5 answers

Change font of UINavigationController title

Can I change the font of my UINavigationController? --> title
Christian 'fuzi' Orgler
  • 1,682
  • 8
  • 27
  • 51