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.

490 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,301
  • 9
  • 36
  • 48
50
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,839
  • 2
  • 19
  • 23
44
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?
sativa
  • 1,220
  • 1
  • 14
  • 21
32
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…
23
votes
2 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
  • 419
  • 1
  • 4
  • 14
18
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,701
  • 1
  • 14
  • 24
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,597
  • 6
  • 37
  • 64
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,663
  • 9
  • 27
  • 55
15
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
  • 583
  • 1
  • 7
  • 18
14
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
  • 7,547
  • 3
  • 52
  • 79
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
  • 493
  • 3
  • 9
  • 20
11
votes
5 answers

How can I remove a view from navigation controller

I want to call a new view controller and remove the current view controller from the navigation controller stack. For example. I am in view controller A and I call B. Now I have in the stack A , B. Now I want to call C (from B). I want the stack to…
11
votes
5 answers

presentViewController transition animation

In my code I am using presentViewController to call my second viewcontroller [self presentViewController:secondController animated:YES completion:nil]; When I call I need to show left to right animation (like in navigationController) I don't want…
10
votes
5 answers

How to customize the color of the navigation bar in qlpreviewcontroller

Can I customize the color of the navigation bar in the QlPreviewController controller? I have tried following [[UINavigationBar appearanceWhenContainedIn: [QLPreviewController class], nil] setBarTintColor: [UIColor redColor]]; but it does not…
1
2 3
32 33