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

How to pop the previous view controller from a navigation stack?

I use the navigation controller to push from view to view, but I don't pop any of the views that I push. So as I load a view I would like to pop the previous one from the stack. Code for pushing views: var identities = [String]() identities = ["A",…
3
votes
3 answers

Swift 3: popToViewController not working

In my app I have three table view controllers and then potentially many UIViewControllers each of which has to lead back to the first table view controller if the user presses back at any point. I don't want the user to have to back through…
Filipe
  • 137
  • 3
  • 12
3
votes
1 answer

UINavigationController with custom vertical button bar

I need to implement a navigation based app with a custom made button bar that stays on the vertical size of the screen, similar to Reeder iPad app (see Reeder screenshot). What is the best way to achieve that result? I thought about adding the bar…
Fabio Cionini
  • 767
  • 6
  • 15
3
votes
2 answers

Swift Navigation Controller swipe to go back anywhere

I have a view controller with an embedded Navigation Controller and I want the presented controller to be able to swipe anywhere to return back to the root controller. How is this possible is it by using SwipeGesture or Extending the navigation…
Fuad Adetoro
  • 137
  • 1
  • 9
3
votes
2 answers

UISearchController don't push viewcontroller on front but below UISearchController

The behaviour different between automatic presentation UISearchController and present the search controller myself. @implementation MyViewComtroller // click search barbutton on right of navigationBar - (void)searchAction:(id)sender { …
3
votes
3 answers

Swift: Accessing current navigation controller from a UICollectionViewCell

I have a UICollectionViewCell class "ProductCell"; I am trying to access the current navigation controller in order to update a barbuttonicon. I have tried the following code as this is what I use in my other UIViewControllers: let nav =…
3
votes
1 answer

Nested UIViewController needs to push onto root UINavigationController

I have an application with a UINavigationController that contains a root UIViewController subclass (PagingViewController) which manages and acts as the delegate for a horizontally paging UIScrollView. On each of the pages of this UIScrollView, there…
3
votes
2 answers

Where should I "save" changes in my iPhone view to 'create new' of an object?

I have a view that creates a new core data managed object, and fills in all the required properties and also allows optional ones. I originally had a "Done" button on the top left, and when that was pressed, I validated the object then saved and…
Alex Gosselin
  • 2,942
  • 21
  • 37
3
votes
1 answer

SubTitle for Navigation Bar

Does anybody know how to get a SubTitle bar in the navigation bar, like the NYTimes does (where they say Latest News). This is clearly part of the navigation bar since it stays still. Here is what it looks like at the NYTimes (but a whole lot of…
Allen
  • 722
  • 4
  • 13
  • 31
3
votes
2 answers

Best way to keep a view persistent behind all views in Navigation Controller

and thanks in advance. I am looking for advice on how to layout the view controllers in my app, where I still have a persistent background along with a few background animations This is how it is set up currently: AppDelegate makes a navigations…
rich.e
  • 3,660
  • 4
  • 28
  • 44
3
votes
3 answers

Popping to root navigation controller - Swift 3

I have multiple navigation controllers. They are placed like this hierarchy : (A)SWRevealViewController (B)Navigation Controller(sw_front) (C)HomeViewController (root view controller) (D)TabBarController --> …
Dia
  • 237
  • 7
  • 17
3
votes
1 answer

Missing back button in nested detail view (UISplitViewController)

I am trying to have nested view controllers for detail view controller of a UISplitViewController. To make things simple, I leave the master view as it is; the detail view has a button inside it, 'Go further', which segues to the second view…
Maysam
  • 7,246
  • 13
  • 68
  • 106
3
votes
2 answers

How to present different view controllers from appdelegate in ios

Actually I am having navigationcontroller as root controller it is embed in main.storyboard,i am having two screens one screen login and another one home as per login credentials i need to skip login screen and i need to show home screen.From…
skyshine
  • 2,767
  • 7
  • 44
  • 84
3
votes
1 answer

Default navigation bar height ios

In one of my controller i use custom toolbar, i want to get height of default toolbar (navigation bar) in ios. I used macro #define NAVBAR_HEIGHT self.navigationController.navigationBar.frame.size.height. However, when controller is not embed in…
Evgeniy Kleban
  • 6,794
  • 13
  • 54
  • 107
3
votes
0 answers

Xamarin Forms, best way to navigate from AppDelegate to a screen in forms?

When I receive a push notification with Custom Data, based on the data available in it, I need to make a call to navigate the user to a certain screen in Xamarin Forms. public void DidReceiveNotificationResponse(UNUserNotificationCenter center,…