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

need to set target method twice in viewcontroller and navigationcontroller - swift - programmatically

There's a NavigationController which has a ViewController as a rootViewController In this ViewController I declare a panGestureRecogniser like this: guard let thisNavigationController = navigationController as? ProfileNavigationController else {…
0
votes
2 answers

Swift: How to access second view after navigation controller?

I'm really new to swift and currently working on a project for a trivia app. Right now I have it so that after pressing the start button, it pushes aside the current view controller and shows the user a new one (vc), but I'm not sure how/where to…
0
votes
1 answer

Navigation Controller View Handling

I have a navigation view controller that will show the table view of my application, but I can't get it to move to a new view when I tap an entry in the table. How do I link a new view to an element in the parent view?
0
votes
1 answer

NavigationController PushedView Controller dismisses entire NavigationController - swift - Programmatically

I'm presenting a NavigationController modally like this: let profileViewController = ProfileViewController(nibName: nil, bundle: nil) let navigationControllerProfile = UINavigationController(rootViewController: profileViewController) …
0
votes
0 answers

Using Navigation Components the onCreateOptionsMenu method called on Fragment on backstack

I am using Navigation components to move between fragments. I created a Fragment superclass used by all fragments with the following: var hideMenu = false override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { menu.clear() …
0
votes
0 answers

Swift 5/iOS 13 - weird view position behaviour embedded in navigation controller

Hope all is well. Directly to the issue: Environment : Version 11.6 / Swift 5 There is a basic view controller(TestViewController) embedded in UINavigationController. Say that this TestViewController has a button that's moving the self.view up by…
Matthew So
  • 75
  • 1
  • 2
  • 8
0
votes
2 answers

Delay navigationController to pop detailView of UITableView

Im looking for some help regarding to put a save like confirmation if some changes where made to a UITextField and UISegmentedControl. Can I prevent the UINavigationController from pop the view? And then pop based on buttons in a AlertView? I use…
Silversnail
  • 386
  • 1
  • 6
  • 23
0
votes
1 answer

NavigationController pushViewController takes a lot of CPU's usage

I have a navigationController set and whenever I push a new ViewController using navigationController?.pushViewController(registrationViewController, animated: true) The CPU usage of the app goes up to 100% for no reason. I used Time Profiler to…
user13370778
0
votes
1 answer

navigationController!.pushViewController giving Fatal error: Unexpectedly found nil while unwrapping an Optional value:

I am trying to navigate from one Storyboard to another Storyboard. Here is my code - let storyboard = UIStoryboard(name: "Main", bundle: nil) let controller = storyboard.instantiateViewController(withIdentifier: "detail") as!…
GoSSDHosting
  • 89
  • 1
  • 11
0
votes
2 answers

Serializing iPhone Navigation Control Stack

Can we Serialize the iPhone Navigation controller's stack to save the state? Is it allowed by Apple?
PgmFreek
  • 6,374
  • 3
  • 36
  • 47
0
votes
2 answers

How to hide pop up view on previous page when pressing back button on swift

I have this kind of flow page : Setting Page --> Enter Password --> Go to Page X So in setting page, in order to go to page X, I have to enter a password using pop up view. When I'm in page X and i want to go back to previous page, I go to enter…
0
votes
2 answers

How to create Subtitle or Smaller Title under the Large title in Swift

I want to create a a title page that look similarly like on the Health App. It has Large title 'Summary' and a smaller title 'Favorites' I'm able to create the Large title by Prefers Large Title. But how do I create the smaller title like…
Aldo Sugiarto
  • 197
  • 3
  • 20
0
votes
1 answer

Action icon not appear in toolbar

Good Day I'm working on app that use navigation component I setup my toolbar icons but it's didn't appear so I tried to follow these guide here hereto fix the issue but still not appearing here is my fragment code public class myFragment extends…
lolo
  • 83
  • 1
  • 8
0
votes
1 answer

Acces data from a MainFragment from MainActivity

My only activity host onCreateOptionsMenu and onOptionsItemSelected but implementation of UI-Recyclerview is done in MainFragment. From menu i would like to sort the list of Recyclerview. So i need to get the list then manipulate then to post back…
0
votes
2 answers

Navigation after tableview selection

I created something similar to mail app. A tableView (main) which lists database content from API and a search bar on the top. For a search I bring a view (second) to front which have my search response and I put it in another tableview…