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
45
votes
5 answers

Present View Controller in Storyboard with a Navigation Controller - Swift

I am currently showing a viewController in my new storyboard below: var storyboard : UIStoryboard = UIStoryboard(name: AccountStoryboard, bundle: nil) var vc : WelcomeViewController = storyboard.instantiateViewControllerWithIdentifier("WelcomeID")…
Fudgey
  • 3,793
  • 7
  • 32
  • 53
45
votes
7 answers

Navigation bar disappeared from my storyboard items

From one day to another the navigation bar disappeared from my storyboard items in XCode 4.6.2. I can't restore them (cleaning, rebuilding, closing, reopening etc) When running my app on my device or in simulator, everything works ok, the navigation…
Tom
  • 3,899
  • 22
  • 78
  • 137
45
votes
3 answers

how to hide navigationbar when i push from navigation controller?

how to hide top bar in UIViewcontroller when i push from navigation controller using pushViewController ? any help please?
user141302
44
votes
6 answers

How can I go back to the initial view controller in Swift?

So I have a login view, after successful login it goes to the first view of a navigation controller, then the user can go deeper to a settings view and then to a logout view. This logout should take the user back to the login view (which is not part…
matt
  • 2,312
  • 5
  • 34
  • 57
43
votes
3 answers

iPhone - Replacing rootview in navigation controller

I have a project with a NavigationController, that contains into IB the first ViewController to show. That's just the default pattern when creating the project. In that first viewController, I receive some event that I send to the appDelegate, and I…
Oliver
  • 23,072
  • 33
  • 138
  • 230
43
votes
24 answers

How to set a new root view controller

I wonder if its possible to set a new root VC? My app gets init with a uinavigation controller that has a table view to be the root VC. Then from the table view I am running another segue to a login window (present modally) If you then login you end…
user2722667
  • 8,195
  • 14
  • 52
  • 100
43
votes
2 answers

How to set the text of a back button on a UINavigationBar?

Possible Duplicate: How do I change the title of the “back” button on a Navigation Bar The Situation: I have a UIViewController that is governed by a navigation controller. I am able to set the title of the navigation bar covering the…
RexOnRoids
  • 14,002
  • 33
  • 96
  • 136
43
votes
9 answers

Why ARC is not deallocating memory after popViewController

I'm pushing and popping ViewControllers in UINavigationController. I'm tracking the memory consumption of my app. While pushing the new viewController the memory consumption is increasing gradually, but when I'm popping the same ViewController using…
Wali Haider
  • 1,202
  • 1
  • 16
  • 23
42
votes
3 answers

How to add image in UINavigationBar in IPhone app

In my app, i want to add image(logo) in Navigation bar. I am working on XCode 4.2 and iOS 5. I know UINavigationBar, UIToolBar has been changed in iOS 5. So iOS 4.2 UINavigationBar code won't work in iOS 5. I want to support display image in…
42
votes
6 answers

How can I change the font of the back button for my navigation bar?

How can I change the font of the back button for my navigation bar. The back button is either "back" or the title from the previous view controller. I thought this viewDidLoad would…
Kyle Goslan
  • 10,748
  • 7
  • 26
  • 41
42
votes
11 answers

Change UINavigationBar back button title

In my application I want to use 'Back' text as back button title for every viewcontroller. I have read so many posts on stackoverflow but got nothing. I don't want to set leftbarbuttonitem. Can anyone help me on this simple task. Thanks,
S S
  • 646
  • 1
  • 7
  • 16
42
votes
11 answers

How to get the previous viewcontroller that pushed my current view

The home page of my app has UIButtons, btnIncome and btnExpense. Pressing on this buttons pushes IncomeVC and ExpenseVC respectevely,which are two UIViewControllers with UITabBar added via xib. The tabBar have 4 items. Selecting on each tab item…
40
votes
14 answers

On iOS 7, pushing a controller with a toolbar leaves a gap of unusable space if it's ultimately contained within a tab bar controller

In my iOS app, my window's rootViewController is a tab bar controller with the a hierarchy like this: UITabBarController UINavigationController 1 FirstContentController UINavigationController 2 ... UINavigationController 3 ... ... When the…
Bill
  • 44,502
  • 24
  • 122
  • 213
40
votes
3 answers

Add toolbar to UITableViewController

What is the simplest way to add UIToolBar to UITableViewController? I'm depending on edit functionality, so I can't change UITableViewController to UIViewController easily.
39
votes
3 answers

How to go back one view in UINavigationController?

Is there a method to go back one view in the stack on a UINavigationController? Or to a view with a specific title?
Slee
  • 27,498
  • 52
  • 145
  • 243