All Questions

Filter by
Sorted by
Tagged with
327 votes
15 answers
191k views

How to hide 'Back' button on navigation bar on iPhone?

I added a navigation control to switch between views in my app. But some of the views shouldn't have 'Back' (the previous title) button. Any ideas about how to hide the back button?
Chilly Zhong's user avatar
  • 16.8k
192 votes
21 answers
221k views

How to add a right button to a UINavigationController?

I am trying to add a refresh button to the top bar of a navigation controller with no success. Here is the header: @interface PropertyViewController : UINavigationController { } Here is how I am ...
Artilheiro's user avatar
  • 4,005
181 votes
29 answers
170k views

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 action on the custom button. The odd thing is when assigning it though the ...
Parrots's user avatar
  • 26.7k
165 votes
14 answers
90k views

How to hide the "back" button in UINavigationController?

Do you know how to hide the 'back' button in a UINavigationController? Also, how to show it back, but I guess that's very similar to hiding it... Just like the mail application does on the iPhone ...
Zoran Simic's user avatar
  • 10.3k
163 votes
11 answers
222k views

Navigation bar show/hide

I have an app with a navigation bar consisting of 2 bar buttons. I would like to hide and show this navigation bar when a user double taps the screen. Initially, the navigation bar should be hidden. ...
Shishir.bobby's user avatar
150 votes
16 answers
101k views

UINavigationController "back button" custom text?

The "back button" of a UINavigationController by default shows the title of the last view in the stack. Is there a way to have custom text in the back button instead?
Ali Shafai's user avatar
  • 5,161
142 votes
9 answers
148k views

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 want to access ...
bobobobo's user avatar
  • 66.1k
120 votes
10 answers
45k views

SplitView like Facebook app on iPhone

I want to create an iPhone app that uses a navigation scene similar to the one pictured in the link Please note I do not want this to only work for iPad, I want it to work for iPhone exactly as ...
Matt's user avatar
  • 2,930
115 votes
16 answers
164k views

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 on the click of a button in the 5th viewcontroller. Is it possible to do this? If ...
Jean Paul's user avatar
  • 2,419
98 votes
18 answers
64k views

How do I pop two views at once from a navigation controller?

I want to pop to the third view on the navigation stack back to the first view. I know how to pop one view at once: [self.navigationController popViewControllerAnimated:YES]; But how do I do two at ...
Adam Waite's user avatar
  • 19.2k
89 votes
13 answers
148k views

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 change the title of my Navigation Bar. On another question on this site somebody recommended ...
Arthur Skirvin's user avatar
84 votes
16 answers
81k views

How can I pop a view from a UINavigationController and replace it with another in one operation?

I have an application where I need to remove one view from the stack of a UINavigationController and replace it with another. The situation is that the first view creates an editable item and then ...
Matt Brandt's user avatar
68 votes
20 answers
54k views

iPhone UINavigation Issue - nested push animation can result in corrupted navigation bar

I keep getting the following errors: 2011-04-02 14:55:23.350 AppName[42430:207] nested push animation can result in corrupted navigation bar 2011-04-02 14:55:23.352 AppName[42430:207] nested push ...
joshholat's user avatar
  • 3,381
66 votes
15 answers
50k views

Prevent a UISearchDisplayController from hiding the navigation bar

Whenever a user begins editing a UISearchDisplayController's search bar, the search controller becomes active and hides the view's navigation bar while presenting the search table view. Is it possible ...
hadronzoo's user avatar
  • 1,696
64 votes
7 answers
52k views

Change the navigation bar's font

The question is plain easy and simple, the answer unfortunately not. How can you change the font of the text in the UINavigationBar?
Joetjah's user avatar
  • 6,282
60 votes
6 answers
35k views

How to press "Back" button in UINavigationController programmatically

I have a UIViewController called FriendsViewController inside a UINavigationController. And a second UIViewController called FriendsDetailedViewController. When navigating from the first view ...
Timur Mustafaev's user avatar
58 votes
4 answers
38k views

self.title sets navigationController and tabBarItem's title? Why?

I do this in a UIViewController for one of my tabs: self.title = @"Welcome"; However, it's overwriting whatever I have for the tabBarItem. I have tried: self.tabBarItem.title = @"Home"; and [self....
runmad's user avatar
  • 14.9k
57 votes
8 answers
27k views

Selected UItableViewCell staying blue when selected

When I push a view after a user has selected a UITableView row, the row gets a blue highlight, and then the new view appears. That's fine. But when I go 'back' the row is still highlighted in blue. ...
cannyboy's user avatar
  • 24.3k
55 votes
6 answers
71k views

Custom Animation for Pushing a UIViewController

I want to show a custom animation when pushing a view controller: I would like to achieve something like an "expand" animation, that means the new view expands from a given rectangle, lets say [100,...
Erik's user avatar
  • 12k
54 votes
16 answers
56k views

Can i pop to Specific ViewController?

I am using navigation based application. I push First ViewController to Second ViewController and from Second ViewController to Third ViewController. Now I want to pop from Third ViewController to ...
Ankit Vyas's user avatar
  • 7,517
53 votes
11 answers
48k views

NSGenericException', reason: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController

so I'm making an app with 5 view controllers, the first is embedded in a UINavigationController and the segue between the first 4 view controllers works fine. However introducing a 5th View Controller ...
DouglasBoone's user avatar
51 votes
3 answers
48k views

Showing/hiding navigation bar with smooth animation

I have a navigation based app. The first view (rootcontroller) starts with three large buttons only. No navigationbar. From there, everything else is tableviews and have navigation bars. I'm doing ...
4thSpace's user avatar
  • 44k
50 votes
8 answers
42k views

Meaning of Warning "while a presentation is in progress!"

When I am integarting the Instagram in my project. I am getting a image from UIImagePickerController and after it i want to send it to Instagram But when I am sending image to Instagram by ...
chakshu's user avatar
  • 1,382
45 votes
3 answers
37k views

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?
user avatar
43 votes
2 answers
59k views

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

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 ...
RexOnRoids's user avatar
43 votes
3 answers
29k views

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 ...
Oliver's user avatar
  • 23.3k
42 votes
11 answers
67k views

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 ...
Midas's user avatar
  • 930
42 votes
3 answers
35k views

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 ...
user2136's user avatar
  • 791
40 votes
3 answers
35k views

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.
Farcaller's user avatar
  • 3,070
40 votes
14 answers
20k views

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 .....
Bill's user avatar
  • 45.4k
38 votes
11 answers
25k views

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: [...
ludo's user avatar
  • 1,479
38 votes
5 answers
12k views

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 ...
Matic Oblak's user avatar
  • 16.5k
36 votes
6 answers
20k views

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 ...
aryaxt's user avatar
  • 77k
35 votes
5 answers
11k views

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 ...
Ecton's user avatar
  • 10.7k
34 votes
10 answers
44k views

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, ...
Z S's user avatar
  • 7,177
33 votes
6 answers
27k views

iOS - UINavigationController adding multiple right items?

I have a UINavigationController. I'm trying to add multiple buttons on the right side of my navigationBar. How can I achieve this? What kind of button does it take? UIBarButton or UINavigationItem?
aryaxt's user avatar
  • 77k
33 votes
6 answers
22k views

Custom navigation bar

I was crawling Dribble and found the attached design. I was wondering how to do a custom navigation bar like this. I mean how create the navigation bar once and reuse it implicitly for every view ...
Cyril's user avatar
  • 1,649
32 votes
8 answers
25k views

How to hide parent tabbar when pushing controller in navigationController

I have an application with a tab bar controller and each view contains a navigation controller. My MainWindow looks as follows: Image here http://www.freeimagehosting.net/image.php?7bc867a594.png ...
Yannis's user avatar
  • 6,117
32 votes
11 answers
20k views

Hiding a UINavigationController's UIToolbar during viewWillDisappear:

I've got an iPhone application with a UITableView menu. When a row in the table is selected, the appropriate view controller is pushed onto the application's UINavigationController stack. My issue is ...
Nathan de Vries's user avatar
30 votes
2 answers
36k views

How to remove a specific view controller from uinavigationcontroller stack?

I have a uinavigationcontroller. After logged in i want to remove viewcontrollers like RegisterViewController,LoginViewController etc from UInavigationcontroller stack.. I mean i have to remove a ...
S.P.'s user avatar
  • 5,435
30 votes
8 answers
26k views

Adding same button to all view controllers in UINavigationController

I have a UINavigationController (to use like a wizard page) which I create programmatically and I need to display a "Cancel" button to cancel the process in any UIViewController. Creating the ...
Ozay's user avatar
  • 443
29 votes
2 answers
12k views

iPhone - UIImagePickerControllerDelegate inheritance

I have added a UIImagePickerController to a UIViewController. I have also assigned the UIImagePickerControllerDelegate to that UIViewController. When I execute the following line, myPicker.delegate ...
Duck's user avatar
  • 35.5k
28 votes
4 answers
25k views

Calling popViewControllerAnimated twice

I've got a UINavigationController with a series of UIViewControllers on it. Under some circumstances, I want to pop back exactly two levels. I thought I could do it by calling ...
Mike Kale's user avatar
  • 4,133
27 votes
5 answers
47k views

navigationItem.backBarButtonItem not working? Why is the previous menu still showing as the button?

Trying to customize my back button in a drilldown navigation controller. On my one view controller I have an Add button where the code programatically generates a new UIViewController: - (void)add:(...
skålfyfan's user avatar
  • 5,071
26 votes
8 answers
53k views

How to pop from one view controller to another view controller

Using iOS I Have 15 ViewControllers now I want to pop from one ViewController to another View Controller. I am using this code: SecondViewController *Sec=[SecondViewController alloc]init]; [self....
Rahul Sharma's user avatar
26 votes
4 answers
39k views

"Unbalanced calls to begin/end appearance transitions" warning when push a view in a modal way in XCode 4 with Storyboard

After some research on the web without success, I come here to ask you the question about my warning. Actually, I have a view V1 with a navigation controller and I want to push a modal view V2 when ...
Vinestro's user avatar
  • 1,082
25 votes
6 answers
38k views

UINavigationController popToRootViewController, and then immediately push a new view

I have a tabBarController with two tabs, first of which contains an instance of NavigatorController. The navigatorController is initiated with a custom viewController "peersViewController" that list ...
Ben's user avatar
  • 726
25 votes
1 answer
40k views

Local Declaration "x" hides instance variable xcode warning

I've been have trouble understand this problem. If I change the variable name fifthViewController the error goes away but the view controller doesn't load. Lost. Once again it's probably ...
Michael Robinson's user avatar

1
2 3 4 5
60