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
1
vote
1 answer

iOS: Cannot get view to display with Navigation Controller

I'm trying to display a controller loaded from a NIB in my navigation controller (iOS 4/Xcode 4), but it is not working. Interface Builder doesn't allow me to choose any of my nibs; when I try to manually type one I get this error: warning:…
gonzobrains
  • 7,856
  • 14
  • 81
  • 132
1
vote
1 answer

How to animate RecyclerView item to fragment by scaling with Motion Layout

I'm trying to recreate the same motion as exemplified here: https://material.io/develop/android/theming/motion Specifically the example 2 under MaterialContainerTransform The detailed explanation suggests an example that transitions from…
1
vote
1 answer

hidesBackButton is not working, even though in viewDidLoad

I have seen similar questions, but those questions are all very old. I'm trying to hide the 'back' button in my ViewController. Now, it looks like this: https://www.dropbox.com/s/ipmbqgxji574j06/Screenshot%202020-07-21%2020.25.17.png?dl=0 My code…
1
vote
1 answer

Android Navigation Drawer Template Fails to Work Unless it is navigated by tab and cursor keys on Emulator AS4.0

Android Studio 4. New Project Navigation Drawer Activity. Add name etc and then build. Send to Nexus 6P API 28 Emulation, Pixel 3a API29 Emulation. Also to Samsung SM-J530Y Android 9 and Nokia 7Plus Android 10. All instances allow the drawer to be…
1
vote
1 answer

cannot resolve findNavController()

I am trying Navigation Component but I am stuck at this method where IDE shows an error on this method. here's the code where IDE shows error: import com.google.android.material.bottomnavigation.BottomNavigationView; public class MainActivity…
1
vote
3 answers

MonoTouch PopToViewController

Does anyone have an example for NavigationController.PopToViewContoller(); using MonoTouch/Xamarin?
1
vote
0 answers

Drawer with navigation controller back button

I have one activity and some fragments and try to use navigation controller. I choose menu item, fragment changed. But when I press back button only drawer opens. Here is my code: public class MainActivity extends AppCompatActivity implements…
skatty
  • 11
  • 1
1
vote
1 answer

Remove a ViewController from navigationStack and add a new instance of it

I have a SongNamesViewController with navigationController embedded. When a song is chosen from a list I open PlaySongViewController and add to the navigationController using following function: func openPlaySongViewController() { let…
Katlock
  • 1,200
  • 1
  • 17
  • 41
1
vote
0 answers

View's sizes (width / height) are changed

I have a problem with the view's frame. In the first ViewController inside NavigationBar, I change programmatically orientation of VC. When I push the SecondVC, the SecondVC has a width/height changed, like the width is height and height is the…
Daveloper
  • 606
  • 5
  • 12
1
vote
1 answer

How to set title of navigation item after open another view controller using with present modally - Swift

I have two view controllers in my application. Root view controller has some components and one of them is a button. That button provides to open another view controller using with present function. Second view controller(SelectTimeViewController)…
1
vote
1 answer

viewDidAppear not being called after pushViewController

I am writing an app that pulls information from a database, displays in a table, and allows the user to get details by selecting an item from the table. Whenever the table updates, the values in the list are correct, but the table displays the old…
1
vote
3 answers

'NSObject' may not respond to -navigationController

Hi there I currently I have a warning on a line of code where I am trying to push a new view onto the screen. Outline // my NSObject receives a code=1 from my server I have set up. Everything works fine the code comes through which then initializes…
tinhead
  • 385
  • 2
  • 10
  • 29
1
vote
1 answer

How to add a border to swift navigationBar after removing it

I use: self.navigationController?.navigationBar.shadowImage = UIImage() to remove the border of a navigationBar earlier in my app but now I'm not sure to add the border back on a later screen.
1
vote
1 answer

How to keep the last opened fragment with navigation component

I have a problem I am using the new navigation controller from Android Jetpack. I have 3 items in my bottom navigation menu, and the first item has 5 fragments one after another. When I click to the second item in bottom navigation, and return to my…
1
vote
2 answers

How to used navigation controller and tab bar controller in appdelegate file

I am facing issue of displaying navigation controller and tab bar controller together either one is displayed depending on the position of adding subview in applicationlaunch method. - (BOOL)application:(UIApplication *)application…
Harshal
  • 201
  • 1
  • 4
  • 16