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
0
votes
1 answer

pushViewController not work in swift 3

I add button to view by this code: btnMarkerInfo.setImage(imgInfo, for: .normal) btnMarkerInfo.setTitleColor(UIColor.white, for: .normal) btnMarkerInfo.frame = CGRect(x: w, y: UIScreen.main.bounds.height-70-56, width: 56, height:…
Hajitsu
  • 764
  • 17
  • 49
0
votes
0 answers

Xamarin Forms iOS. Change Back Button

I am trying to use the sample code mentioned at https://developer.xamarin.com/recipes/ios/content_controls/navigation_controller/change_the_back_button/ to properly customize the back button in my Xamarin Forms project (I am using Master Detail…
giani.sim
  • 257
  • 2
  • 16
0
votes
0 answers

The Title of my ViewController is outside the Navigation bar for some reason

The below image shows the top of my viewController and interestingly the title "Example" is moved outside of the Navigation Controller area (darker blue). The light blue area (where the text is now) should not be there, instead the image should be…
kangarooChris
  • 718
  • 1
  • 10
  • 21
0
votes
2 answers

How to make a TabBar button loading always the first view of a NavigationController

How can I force a TabBar button to load always the first view of a NavigationController? I don't want to load the last in time loaded view but always come back to the first view of that NavigationController scheme. Thank You very much!
Gianluca
  • 2,379
  • 3
  • 25
  • 41
0
votes
1 answer

how can i add a search bar?

i am new to xcode and have searched tutorials, but most just offer how to use their code and make it search, i already have an app and want to implement a search bar in it. I was wondering is someone could point me in the right direction? Here is…
0
votes
2 answers

Dismiss View Controller from Modal

I've a MainTabBarController with multiple controllers. In my FirstTabViewController (embed in UINavigationController) I pushed to another View Controller, like: navigationController?.pushViewController(secondViewController, animated: true). In this…
Idnext
  • 11
  • 1
0
votes
2 answers

NavigationController / TableView memory leak in Iphone

Recently I have finished my first Iphone app and it works grate.... except for when i did a intense session using instruments to find leaks after awhile with no leaks, all of a sudden get about 1.3Kb worth. In the stack trace they all point to the…
0
votes
0 answers

I want the two Navigationbar of controller show different colors when Interaction

when i use NavigationController gesture to push or pop controller, I want to the two Navigationbar of controller show different colors. but i found The two pages will share one Navigationbar. How to solve this problem?
0
votes
1 answer

InstantiateViewController resulting a nil causing it to crash

What I'm trying to do: I am trying to press a + button on the top right side of the navigation bar, push the app to a new view (using navigationController.pushViewController), get some user input text from the new view, then return back to the…
0
votes
1 answer

navigationBar backButton title present but arrow missing on instantiated viewController

I am pushing from a viewController to another instance of the same viewController using the following code. The viewController is the top view of the navigation stack in the storyboard: let storyboard = UIStoryboard(name: "Main", bundle: nil) if…
alionthego
  • 8,508
  • 9
  • 52
  • 125
0
votes
1 answer

reset previous navigation controller in tab bar application

I have a tab bar application with a navigation controller and view controllers inside it. This is how it's laid out. Tab Bar 1 - Navigation Controller -- Root View Controller -- Other view controller Tab Bar 2 - Navigation Controller -- Root View…
0
votes
1 answer

problem customising navigationController.navigationBar.barStyle

i read thru the whole forum maybe im doing something wrong any help would be great tabController = [[UITabBarController alloc] init]; tabController.delegate = self; [tabController setViewControllers: [NSArray arrayWithObjects: …
geckus
  • 1
  • 4
0
votes
1 answer

Remove all navigationControllers from stack and create a new navigation flow setting new window - best practices

It may be a newbie question - I have a flow which I create in app delegate setting the first window a NavigationController as below: let window = UIWindow(frame: UIScreen.main.bounds) let root = SplashViewController(nibName: "SplashViewController",…
Gehlen
  • 160
  • 1
  • 15
0
votes
2 answers

Navigation Controller back button not showing when using a second storyboard

I have 2 storyboards. in Main.storyboard I have a view controller with a button. When the button is clicked I load the second storyboard Second.storyboard. This is the code I use to load the Second.storyboard DispatchQueue.main.async { let…
0
votes
1 answer

IPhone Navigation Controllers - Best practise for reusing views

Hi I use Navigation controllers a lot in my app but my apps starting to suffer from views calling the same views over and over and pushing them on the nav controller stack rather than reusing existing views on the stack. For instance I have a map…
brian.clear
  • 5,277
  • 2
  • 41
  • 62