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
12
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…
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

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…
10
votes
9 answers

exception: View does not have a navController set

in the fragment which i made it host in the tag fragment in activity when i use navController = Navigation.findNAvController(view) the app crashes by the error: View does not have a navController set. this is nav_graph:
9
votes
7 answers

Android : `androidx.navigation.NavArgs` not found

I fetch this below code from But getting this below error: spend already more the 3 hours but not any success. Please help me to solve this error.
Prashant Jajal
  • 3,469
  • 5
  • 24
  • 38
9
votes
2 answers

IOS7 navigatinBar tintColor change in popover

I developed iPad application. I'm opening some screens in popover with navigation controller. But I did not change navigationcontroller tint color in IOS 7. How can I change this color. thanx UINavigationController *navigationController =…
hiwordls
  • 781
  • 7
  • 17
  • 35
8
votes
6 answers

iPhone: NavigationController NavigationBar Back button text

When I push a new ViewController onto a navigation controller stack the "back" button is the Title of the previous controller. How can I change the text in the back button to "Back" instead of the default name-of-last-controller?
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
6
votes
4 answers

Calling popToRootViewControllerAnimated after dismissModalViewControllerAnimated

I am working application in which i calling presentModalViewController and once finished(calling dismissModalViewControllerAnimated:YES) it should immediately call popToRootViewControllerAnimated. But the issue is…
sathish kumar
  • 1,061
  • 6
  • 16
  • 31
6
votes
2 answers

What's purpose of embedding in Navigation Controller?

I have been recently learning iOS development and a friend tells me that it's good practice to embed views in Navigation Controllers. Is that true and if so why? What does embedding a View Controller in a Navigation Controller change versus just…
Will Hua
  • 1,729
  • 2
  • 23
  • 33
6
votes
7 answers

Disable rotation for View Controller in Navigation Controller

First of all, this isn't a duplicate. I've looked at all of the questions related to this on SO and none of them work for me. Hopefully it's just because I'm new to iOS development but I suspect this isn't possible in my case. I've attached a…
5
votes
2 answers

Change contentSizeForViewInPopover on navigationController push on iOS

I have a UIPopoverController with navigationController and bunch of subviews. The size of the popover is set just before it's shown like this: [self.myPopover setPopoverContentSize:CGSizeMake(320, 500)]; That works fine. The popover is shown with…
Borut Tomazin
  • 8,041
  • 11
  • 78
  • 91
5
votes
1 answer

Can we create multiple navigation controllers in iOS?

I am a little bit confused about navigation controllers. In one navigation controller, a large amount of view controllers are present. I have seen so many examples with one navigation controller. Can we create multiple navigation controllers in iOS…
Prasad G
  • 6,702
  • 7
  • 42
  • 65
5
votes
3 answers

xcode4.2.1 - storyboard - Navigation controller - Title bar color

I am designing an app with storyboard with minimal coding. So, I am designing everything using views and buttons without the need for header files. What is the easiest way to change the default blue title bar color to black with minimal coding?
Jan
  • 747
  • 1
  • 10
  • 29
5
votes
4 answers

Change NavigationBar Title (font and color) in different View Controllers

I was trying to customize the look of the Navigation Bar Title in my app. I had to build a Custom Navigation Controller (not just for this issue), so I thought to override the setTitle function like this - (void)setTitle:(NSString *)title { …
Sr.Richie
  • 5,680
  • 5
  • 38
  • 62
5
votes
2 answers

Large title is initially collapsed after push

I ran into a strange problem: I have a two view controllers - list, and detail. When I push Detail from List, navigation bar is in colapsed mode. To make title appear large, I have to scroll down. ListViewController: ... override func…
Lachtan
  • 4,803
  • 6
  • 28
  • 34
1
2
3
33 34