Questions tagged [uinavigationcontroller]

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

This class is not intended for subclassing. Instead, you use instances of it as-is in situations where you want your application’s user interface to reflect the hierarchical nature of your content. This navigation interface makes it possible to present your data efficiently and also makes it easier for the user to navigate that content.

The screens presented by a navigation interface typically mimic the hierarchical organization of your data. At each level of the hierarchy, you provide an appropriate screen (managed by a custom view controller) to display the content at that level.

Sample of use

References:

UINavigationController Class Reference

11391 questions
39
votes
3 answers

iOS 7, corrupt UINavigationBar when swiping back fast using the default interactivePopGestureRecognizer

I have an issue that I'm stuck on, but I have no idea why it even happens; If I push a detail controller on the stack, and I swipe back very quickly using the default left edge interactivePopGestureRecognizer, my parent/root view controller's…
klcjr89
  • 5,862
  • 10
  • 58
  • 91
38
votes
4 answers

iOS 13 UIBarButtonItem not clickable and overlapping UINavigationBars when using UISearchController

I got a navigation bar containing some UIBarButtonItem buttons and a UISearchBar hooked up like this var searchController: UISearchController! override func viewDidLoad() { super.viewDidLoad() title = "Test" tableView.delegate = self …
heyfrank
  • 5,291
  • 3
  • 32
  • 46
38
votes
11 answers

Push ViewController from Right To Left with UINavigationController

As everyone know the UINavigationController push a ViewController from Left To Right, is there a way to push the View from Right To Left? like the animation for the back button. For now I have this: [self.navigationController…
ludo
  • 1,479
  • 5
  • 25
  • 50
38
votes
10 answers

UINavigationController Interactive Pop Gesture Not Working?

So I have a navigation controller in my built for iOS 7 app. The titleView is visible, as well as the back button and navigation bar its self. For some reason, the interactive pop gesture (swipe from the left edge) isn't working. Nothing happens.…
Aaron Wojnowski
  • 6,352
  • 5
  • 29
  • 46
38
votes
10 answers

Restore pre-iOS7 UINavigationController pushViewController animation

So. Just started transitioning my IOS code to IOS7, and ran into a bit of problem. I've got a UINavigationController, which has child ViewControllers and I'm using pushViewController to display the next views. To create a parallax animation with a…
38
votes
9 answers

Navigate Back to previous view controller

I have a UIView->UICollectionView->UICollectionViewCell. I am trying to navigate back programatically but none of these works. The code did called. I am using StoryBoard. - (void) goBack:(NSNotification *) notification { //…
user1688346
  • 1,846
  • 5
  • 26
  • 48
37
votes
5 answers

How do you use setTitleTextAttributes:forState in UIBarItem?

How do you use setTitleTextAttributes:forState: in UIBarItem in iOS? How do you set the NSDictionary? Can't make it work and documentation isn't very clear about that. From the documentation: setTitleTextAttributes:forState: Sets the title’s text…
37
votes
12 answers

Real time blur effect for Navigation Bar

How to achieve the real time blurring effect for the navigation bar just like the Trailers app in iPhone. i.e As you scroll the contents should get blurred behind the navigation bar. Please help me with some code. Thanks! I want to achieve an effect…
36
votes
6 answers

CALayer - Shadow causes a performance hit?

So I am doing some custom animations on my navigationcontroller and the way it pushes and pops the viewControllers. Everything runs smooth. As soon as I add the following code (In a subclass of UINavigationController), I face a huge performance hit.…
aryaxt
  • 76,198
  • 92
  • 293
  • 442
36
votes
5 answers

How can I change height of Navigation Bar - Swift 3

I'm pretty sure this is not duplicate because I looked at other answers and they all outdated and do not provide exact answer. I have Navigation Controller and several view controllers. I want to make Navigation Bar a bit taller so it would fit…
KirillC
  • 780
  • 2
  • 8
  • 21
36
votes
4 answers

Getting interactivePopGestureRecognizer dismiss callback/event

Is there a clean solution on getting a callback or event on the view controller being dismissed (popped) by an interactivePopGestureRecognizer? To be clear I need some explicit method getting called on the top most controller (and no other) before…
Matic Oblak
  • 16,318
  • 3
  • 24
  • 43
35
votes
5 answers

Prevent automatic popToRootViewController on double-tap of UITabBarController

The default behavior of a UITabBarController is to pop the contained UINavigationController to the root view controller when a particular tab is tapped a second time. I have a particular use case where I'm wanting this to not work automatically, and…
Ecton
  • 10,702
  • 2
  • 35
  • 44
34
votes
14 answers

Dismiss modal view form sheet controller on outside tap

I am presenting a modal view controller as a form sheet and dismissing it when the cancel button, which is a bar button item, is clicked. I need to dismiss it when I tap on outside of that view. Please help me with a reference. Note: my modal view…
jessy
  • 491
  • 3
  • 7
  • 19
34
votes
10 answers

iPhone dev: Creating sliding drawers like Path and Facebook apps

The new Facebook app seem to have done away with the grid-icon layout, with a more interesting custom navigation layout where the bottom-most view shows all the options (like Profile, News Feed, Messages etc for Facebook) and clicking on one of them…
Z S
  • 7,039
  • 12
  • 53
  • 105
34
votes
4 answers

Change color of translucent black UINavigationBar

I stumbled upon this many times, never found a solution. A UINavigationController's navigationBar can be set to black translucent like: self.navigationController.navigationBar.barStyle=UIBarStyleBlackTranslucent; Also, there is a translucent…
marimba
  • 3,116
  • 5
  • 26
  • 29