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
28
votes
11 answers

Push View from Presented View Controller in iOS

In Short : How can I PushViewController from Presented ViewController ? In Brief : I have MainViewController, In which I have one button on click of button, I am presenting a view called LoginViewController. On this page (LoginViewController), I…
28
votes
2 answers

Transitioning between transparent navigation bar to translucent

In Apple's recently released Remote app I noticed the way in which the navigation bar behaves is unique and I haven't been able reproduce it. When popping the Now Playing view controller the navigation bar remains transparent for the Now Playing…
sooper
  • 5,991
  • 6
  • 40
  • 65
28
votes
5 answers

Navigation stack becomes unusable after canceling iOS 7 back swipe gesture

I am running into an issue where my navigation controller becomes unusable after initiating then canceling the new iOS 7 back swipe gesture. Some relevant information: My app has a home page with various activity pages. The home page hides the…
cober
  • 343
  • 4
  • 8
28
votes
2 answers

Add a button next to the back button

in iOS, is it possible to add a button next to the default back button (the one that is automatically created when you use the method pushViewController) I've tried to use the methods setLeftBarButtonItems and setBackBarButtonItem but in vain -…
Arnaud
  • 7,259
  • 10
  • 50
  • 71
28
votes
4 answers

Calling popViewControllerAnimated twice

I've got a UINavigationController with a series of UIViewControllers on it. Under some circumstances, I want to pop back exactly two levels. I thought I could do it by calling popViewControllerAnimated twice in a row, but it turns out that the…
Mike Kale
  • 4,103
  • 3
  • 26
  • 30
27
votes
5 answers

navigationItem.backBarButtonItem not working? Why is the previous menu still showing as the button?

Trying to customize my back button in a drilldown navigation controller. On my one view controller I have an Add button where the code programatically generates a new UIViewController: - (void)add:(id)sender { MyAddViewController *addController…
skålfyfan
  • 4,931
  • 5
  • 41
  • 59
27
votes
3 answers

Canceling interactive UINavigationController pop gesture does not call UINavigationControllerDelegate methods

If you drag the edge of a UIViewController to begin an interactive pop transition within a UINavigationController, the UIViewController underneath the current has viewWillAppear: called, followed by the UINavigationControllerDelegate method…
Dima
  • 23,484
  • 6
  • 56
  • 83
27
votes
3 answers

UICollectionView calling scrollViewDidScroll: when popped from the navigation stack

I have a navigation controller, its root view controller is of type CollectionViewControllerA. Upon selecting an item, I have a fade out and expanding animation followed by a call to push a second view controller of type CollectionVewControllerB…
Allen Zeng
  • 2,635
  • 2
  • 20
  • 31
27
votes
5 answers

Change font of back button on UINavigationController

I'm trying to change the font color of the text on my back button in my UINavigationControllerBar: [[UIBarButtonItem appearance] setTitleColor:[UIColor redColor] forState:UIControlStateNormal]; I get this error: [_UIBarItemAppearance…
26
votes
4 answers

"Unbalanced calls to begin/end appearance transitions" warning when push a view in a modal way in XCode 4 with Storyboard

After some research on the web without success, I come here to ask you the question about my warning. Actually, I have a view V1 with a navigation controller and I want to push a modal view V2 when V1 has finished loading. So I use the…
Vinestro
  • 1,072
  • 1
  • 10
  • 32
26
votes
3 answers

SwiftUI : how to access UINavigationController from NavigationView

I am developing an app using SwiftUI. The app is based around a NavigationView. I am using a third-party framework that provides UIKit components and the framework has not been updated to support SwiftUI yet. One framework method is expecting a…
Sébastien Stormacq
  • 14,301
  • 5
  • 41
  • 64
26
votes
3 answers

iPhone X - Hidden status bar pushes Navigation Bar upwards

I'm testing iPhone X behavior using the Xcode simulator. For some odd reason, if I'm hiding the Status Bar the Navigation Bar pushed upwards causing the title to completely disappear and cutting the left and right buttons. This is happening only on…
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105
26
votes
5 answers

UINavigationController how to set title

I have a Controller/View for a generic list of items, that can be extended for displaying a custom list.. Listing and navigation works fine.. but I can't change the title of UINavigationController. In the generic Controller: - (void)viewDidLoad { …
grilix
  • 5,211
  • 5
  • 33
  • 34
26
votes
6 answers

iOS App Freezes on PushViewController

My navigation controller intermittently will freeze on push. It seems to add the new view controller onto the stack, but the animation never takes place. I also have two other containers that hold view controllers on the screen, and I can interact…
Maxwell
  • 6,532
  • 4
  • 37
  • 55
26
votes
6 answers

View being blocked by UITransitionView after being presented

I have a side navigation controller and present it via a UIButton. When I make this NC the root view controller directly by [self presentviewcontroller: NC animated: YES completion: nil], for some reason the menu side of the NC is blocked by a…