Questions tagged [navigationcontroller]

A Controller in a MVC (Model View Controller) pattern provides the execution flow of the application. NavigationController is about this flow.

A Controller in a MVC (Model View Controller) pattern provides the execution flow of the application. NagigationController is about this flow in a technology that can apply the MVC pattern.

507 questions
68
votes
20 answers

iPhone UINavigation Issue - nested push animation can result in corrupted navigation bar

I keep getting the following errors: 2011-04-02 14:55:23.350 AppName[42430:207] nested push animation can result in corrupted navigation bar 2011-04-02 14:55:23.352 AppName[42430:207] nested push animation can result in corrupted navigation…
joshholat
  • 3,371
  • 9
  • 39
  • 48
51
votes
7 answers

iOS how to remove back button?

I have an application with a navigation bar that pushes to a login screen view controller and then pushes to a main menu. Is there any way I can remove the back button off the main menu, so the user is unable to go back to the login screen?…
jbearden
  • 1,869
  • 2
  • 19
  • 23
48
votes
9 answers

How to use shared element transitions in Navigation Controller

I would like to add a shared elements transition using the navigation architecture components, when navigating to an other fragment. But I have no idea how. Also in the documentations there is nothing about it. Can someone help me?
33
votes
6 answers

Custom navigation bar

I was crawling Dribble and found the attached design. I was wondering how to do a custom navigation bar like this. I mean how create the navigation bar once and reuse it implicitly for every view controllers. I was thinking about having a kind of…
31
votes
2 answers

iOS storyboard passing data navigationViewController

I have problem with proper passing data between view's but not in standard way. Picture describing my problem: I performSegueWithIdentifier with one of two segue identifiers and then in I want to pass data to ViewController called "Firmy" or…
24
votes
3 answers

Android Unresolved reference: findNavController error

I am using Kotlin and have all references added in my project. // Navigation implementation "android.arch.navigation:navigation-common-ktx:$rootProject.nav_version" implementation…
Amir
  • 1,290
  • 1
  • 13
  • 20
21
votes
2 answers

Consequences of Bad Programming: dismissViewController vs popViewController

I understand the difference between dismissViewControllerAnimated:completion: and popViewControllerAnimated:, as described on Stack Overflow and here: -dismissViewControllerAnimated:completion: method is used to dismiss an UIViewController, which…
Emin Israfil iOS
  • 1,801
  • 1
  • 17
  • 26
20
votes
3 answers

Add fragment on navigation controller instead of replace fragment?

I am using Navigation control (Android Architecture). I used some demo and creating navigation architecture. But the problem is, fragment is getting recalled every time just like: replace fragment when you back from any fragment. So how can I stop…
chari sharma
  • 462
  • 2
  • 16
17
votes
4 answers

Create only one instance of fragment while navigating to destinations(android)

I am using Navigation component. when navigating I want to not create new instance of fragment if it already exists in backstack and pop that already existing in front. …
17
votes
2 answers

Swift: How do I get access to the navigationController in AppDelegate

I have added a NavigationController in the StoryBoard and made it the initial viewController. How do I get access to the NavigationController in the appDelegate. Ctrl-drag from navigationController to AppDelegate does not create an outlet.
RawMean
  • 8,374
  • 6
  • 55
  • 82
16
votes
8 answers

Xcode 4.2 creating navigation based application

I just tried to create navigation based application via xcode 4.2 and all I found in the new window have nothing to do with navigation based application .. I found page based application which is the nearest thing to the navigation based…
Mohamed Emad Hegab
  • 2,665
  • 6
  • 39
  • 64
16
votes
5 answers

My navigation bar's large title is too wide. How to fix that?

I am using navigation controller, and I've set to true its navigation bar's prefersLargeTitle property. Everything works fine, but when the text of my title becomes too big, it doesn't fit in space. Here how it looks: Is it possible to somehow…
Tigran Iskandaryan
  • 1,371
  • 2
  • 14
  • 41
16
votes
4 answers

How to check if navigation controller is pushed or is a root view controller?

I want to check if the view controller i am in is root view controller or is pushed on some navigation controller.
Bhumi Goklani
  • 603
  • 1
  • 8
  • 18
15
votes
3 answers

Accessing a Top Navigation Controller from a Subview Navigation Controller

I have a my views and controllers set up like so. A Tab/Bar controller Within 1. is a root view controller within 2. is a programmatically created navigation controller, that is displayed as a subview in the root view controller. What I am trying…
Matt
  • 2,803
  • 9
  • 33
  • 57
12
votes
3 answers

self.navigationController is null

in my viewcontroller,I have a button,when press the button,entry the navigationController,my code like: -(IBAction)ShangHaiButtonPressed:(id)sender{ marketviewcontroller = [[MarketViewController alloc]initWithNibName:@"MarketViewController"…
Gaojian922188
  • 503
  • 3
  • 9
  • 20
1
2 3
33 34