Top "Uinavigationcontroller" questions

The UINavigationController class implements a specialized iOS view controller that manages the navigation of hierarchical content.

Setting action for back button in navigation controller

I'm trying to overwrite the default action of the back button in a navigation controller. I've provided a target an …

ios iphone cocoa-touch uinavigationcontroller uibarbuttonitem
How to disable back swipe gesture in UINavigationController on iOS 7

In iOS 7 Apple added a new default navigation behavior. You can swipe from the left edge of the screen to …

ios objective-c uinavigationcontroller uigesturerecognizer ios7
How to force view controller orientation in iOS 8?

Before iOS 8, we used below code in conjunction with supportedInterfaceOrientations and shouldAutoRotate delegate methods to force app orientation to any …

ios objective-c ios8 uinavigationcontroller autorotate
iPhone: Setting Navigation Bar Title

Hey all. I'm still pretty new to iPhone development, and I'm having a bit of trouble figuring out how to …

iphone objective-c uinavigationcontroller uinavigationbar uinavigationitem
How do I get the RootViewController from a pushed controller?

So, I push a view controller from RootViewController like: [self.navigationController pushViewController:anotherViewController animated:YES] ; BUT, FROM anotherViewController now, I …

ios iphone uinavigationcontroller
How to get root view controller?

I need an instance of root view controller. I tried those approaches: UIViewController *rootViewController = (UIViewController*)[[[UIApplication sharedApplication] keyWindow] rootViewController]; Returns: …

objective-c swift ios5 uiviewcontroller uinavigationcontroller
Removing viewcontrollers from navigation stack

I have a navigation stack, with say 5 UIViewControllers. I want to remove the 3rd and 4th viewcontrollers in the stack …

iphone ios uiviewcontroller uinavigationcontroller
Trying to handle "back" navigation button action in iOS

I need to detect when the user taps the "back" button on the navigation bar, in order to perform some …

ios uinavigationcontroller uinavigationbar selector
How to check if a view controller is presented modally or pushed on a navigation stack?

How can I, in my view controller code, differentiate between: presented modally pushed on navigation stack Both presentingViewController and isMovingToParentViewController …

ios objective-c swift uiviewcontroller uinavigationcontroller
back button callback in navigationController in iOS

I have pushed a view onto the navigation controller and when I press the back button it goes to the …

ios callback uinavigationcontroller uinavigationitem back