[iPhone] Invisible Navigation Back button item?

I'm a little perplexed on this one. I've started a project based off the Navigation Controller template in Xcode, which is table based, and I push a view controller onto the stack, it shows up just fine.
The problem is, after this new view is pushed, there's no Back button in the navigation Bar. Well, not visible at least. If I click on the navigation bar on the left side, where the Back button should be, it goes Back! But I can't figure out why it's not showing.
There's a property like self.navigationItem.hidesBackItem or something like that, but setting it to NO had no effects.
Anyone?

Aha!
You nailed it. Problem solved. And I guess that makes sense, the Back button I guess is derived from the title of the previous view (seems to me though it should have some default value like "Back").
Thanks so much
JB

Similar Messages

  • Disable/hide navigation Back button in particular overview page

    Hi All,
    I have to disable/hide navigational 'Back' button on Task overview page. I tried to achive this in WD_HISTORY mehtod but no luck.
    Please suggest me how to do this.
    Thanks,
    Nanaji

    Hi Laxmana,
    I did the same thing as you suggested, by commenting the super class method we can just stop to go to previous page but not all the pages which are stored in back button history.
    My actual requirement is, back button should not be visible to user or should not function anything. User should not use back button to navigate away. user must use 'save and back' or 'save' buttons.
    Thanks,
    Nanaji

  • Row validation with Browser navigation (back button)

    I have created two pages for adding/editing rows in a view object (one for the add/edit page and the other for the DataEditComponent page) as per posting:
    Re: New user's access to views
    Scenario:
    * User fills in only part of the form leaving at least one mandatory field blank.
    * The form is displayed again with the error message as per the JboException (specifically the AttrValException).
    * The user then hits the Back button on the browser to go to some other page that uses a <jbo:RowsetIterate> tag to display the values in some other ViewObject.
    * It seems that validation occurs whenever the current row is changed in the framework. So eventhough a different RowSet is being displayed on the other page, the same execption is thrown.
    How should this incomplete row that is now in the cache be handled when the user navigates to a different page using the back button.
    It is inevitable that the current row will be changed by some other page in the site, so how should "invalid" rows be handled.
    I wouldn't be able to assume that other RowSet iteration logic will not affect the current row.
    Seems like it would be a problem, whether the new row is created on the DataEditComponent page or on the add/edit page itself, after the form is submitted.
    Thoughts?

    I have created two pages for adding/editing rows in a view object (one for the add/edit page and the other for the DataEditComponent page) as per posting:
    Re: New user's access to views
    Scenario:
    * User fills in only part of the form leaving at least one mandatory field blank.
    * The form is displayed again with the error message as per the JboException (specifically the AttrValException).
    * The user then hits the Back button on the browser to go to some other page that uses a <jbo:RowsetIterate> tag to display the values in some other ViewObject.
    * It seems that validation occurs whenever the current row is changed in the framework. So eventhough a different RowSet is being displayed on the other page, the same execption is thrown.
    How should this incomplete row that is now in the cache be handled when the user navigates to a different page using the back button.
    It is inevitable that the current row will be changed by some other page in the site, so how should "invalid" rows be handled.
    I wouldn't be able to assume that other RowSet iteration logic will not affect the current row.
    Seems like it would be a problem, whether the new row is created on the DataEditComponent page or on the add/edit page itself, after the form is submitted.
    Thoughts?

  • Back Button with Anchor Link in Webview?

    I use UIWebView (in a view controller) to display html pages stored locally on the device. This web view is the "leaf" view from a series of table views using a navigation controller that provides the appropriately-labeled "back" buttons to the table hierarchy tree.
    The problem is that in some of these html pages, I have anchor links to a footnotes html page also residing on the device, and then that web page does appear in the web view but I don't know how to go "back" to the previous web page leaf. The navigation bar of course shows a back button that goes back to one of the table views and not to the preceding web page, the origin of the linked web page.
    So, from a UI and programming prospective, how do I change the navigation back button label to say "Back" (instead of the previous table view) and have it when clicked show the previous web page and not the previous table view?
    Is there where I might use UIWebView delegate functions? But how do I get the navigation button to change its functionality?
    Thanks for any help.

    Is there where I might use UIWebView delegate functions? But how do I get the navigation button to change its functionality?
    You can use the delegate functions to intercept each nav request...
    - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
    or you can be told when new data was navigated to:
    - (void)webViewDidFinishLoad:(UIWebView *)webView{
    you can change the Nav bar's left button to be a custom view:
    UIBarButtonItem *leftButton = [[[UIBarButtonItem alloc]
    initWithTitle:NSLocalizedString(@"Back", @"")
    style:UIBarButtonItemStyleBordered
    target:self
    action:@selector(goBack:)] autorelease];
    self.navigationItem.leftBarButtonItem = leftButton;
    You need to provide a function to perform the goBack.
    hope this helps
    michael golden

  • [iPhone] - Add command to a navigation controller back button?

    I have a root navigation controller with a table view going to a normal view controller. The normal view controller plays a sound but I am wanting the sound to stop when the back button is pressed to go back to the root view. Currently, the sound will continue playing until it ends. Where do I put the code to stop the sound when the back button is pressed?
    Thanks!

    You could place it in the UIViewController delegate method - (void) viewWillDisappear:(BOOL)animated.

  • [iphone] Remove back button from navigation bar

    I have an app set up with a navigation controller which is working fine. What I'd like to do is remove the back button when certain views come up. In fact I can't seem to manipulate the back button at all. I tried putting self.navigationItem.backBarButtonItem.title = @"TestTitle"; in the view controller for one of the views in the app, and the title doesn't change. Mainly I would like to remove the back button. Anyone have an idea? This is on beta 6.
    Thanks.
    Message was edited by: Lysandus

    Each view controller that is being managed by your UINavigationController has a property called navigationItem. You should do something like this in the managed viewController:
    self.navigationItem.hidesBackButton = YES;
    hope that helps

  • IPhone: NavigationController Back Button

    The back button on a navigationController is supposed to be automatic, right? I have a table view hierarchy with a navigation controller that has two table views. I can click on a cell in the root view and it does the transition to the next view. However, when I click on the "back" button on the navigationController, the navigationController does a transition and displays the title of the root view, but the table view does not change back to the root view. I checked, and the stack still contains two objects after this half-transition. I can call popViewControllerAnimated myself from the second view, but I didn't think this was necessary. Also, I wouldn't know where to Is there some sort of flag I need to set if I want popViewControllerAnimated to be called automatically?
    Thank You,
    Bridger Maxwell

    I have looked through a few examples which use the UINavigationBar, and I can not find any differences between their code and mine. I even used a lot of code directly from one example. It is quite puzzling.
    Just so I can check, is there a way to prevent the back button from working by catching a message or something? I found
    - (BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPopItem:(UINavigationItem *)item
    in the docs as a method you can implement for a UINavigationBarDelegate protocol, but I can't even set the delegate for the UINavigationBar because I am using a UINavigationBarController, and the docs say I should never access the UINavigationBar inside the UINavigationBarController. I am really quite puzzled on this.
    Thank You,
    Bridger Maxwell

  • [iPhone] Back Button

    Is there a way to get the left pointed button style that back buttons use?
    I'm trying to put a back button on a custom view I created so just setting navigationItem.backBarButtonItem to a UIBarButtonItem doesn't work. It never appears.
    I need to set the button to navigationItem.leftBarButtonItem to make it show up in the navigation controller, but that doesn't give me the back pointing button style.
    Setting navigationItem.hidesBackButton = NO has no affect.
    The navigation controller for this view thinks it is the root navigation controller which is why I'm assuming the backBarButtonItem doesn't work.

    The nav bar uses the back button style when there is more than one nav item on the stack. Try adding a dummy nav item onto the nav bar stack and see if that helps.
    Message was edited by: RickMaddy

  • Where is the back button on iphone 5?

    Hi, new to iphones.
    When I open an app like email, text message,  often I find there is no way to go back one screen other than hitting the home button to end the app.
    Am I missing something here?
    Is there a back button like Safari has but for the phone operating system?
    Thanks

    For Mail and Messages it's in the top left corner and it is usually labeled with the page your going to go back to. There is no back button like Safari in those apps.
    Hope that helps.

  • How to avoid focus issue while navigating via Browser Back button

    Hi
    I'm facing some problem in setting focus on Buttons.
    Please refer application: http://apex.oracle.com/pls/otn/f?p=47869:2
    login credentials:
    Workspace: vsanthanam
    user: vijay
    pswd: apex_demo
    In this application, i have 2 pages.
    Page#2 has Submit button
    Page#3 has Cancel button
    Both buttons are HTML based and can be accessed using access Key ALT + s and ALT + c.
    The problem is:
    When i go back to previous page (pgid#2) of the application using IE Browser's Back Button from pgid#3,
    because of onFocus event set in Submit button, control comes back to pgid#3.
    Is there any possible way to set the focus to other items. so that whenever IE brower back button pressed, application would remain in
    page#2.
    Approaches i took:
    If we use onclick, instead of onfocus then again the problem remains since we have to have onfocus = "this.click();" to incorporate Accesskey features.
    Another way is onKeyup event. if we use onKeyup, we can avoid this browser back issue, but vanishes access key features.
    Any pointers on this would be of great help.
    Many Thanks
    --Vijay
    Please NOTE: I intentionally created two buttons in each page. This is required to have HTML buttons with access key features,
    otherwise application gives some flaws in HTML-accesskey.

    Thanks a ton Andy!
    This is what exactly we require, to change the focus to other items when we move away from page.
    application works perfect now.
    Thank you once again for your handy solutions.
    --Vijay                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Firefox used to have an option on the navigation bar next to the back/forward buttons that showed navigation history - I could go back ten screens w/o hitting the back button ten times. Does the new version have this feature? If so, how do I enable it?

    It was a triangle button that provided a drop-down menu of my most recent navigation history within a site. Very convenient, esp for slide shows if I wanted to return to a slide that was 10-12 slides back.

    Firefox still has this feature, you just click and hold the back button or the forward button, depending on whether you want to go back or forward.

  • Navigation (Back/Forward) buttons not working in Firefox

    I'm tring to put together a Browser Based help guide, and for the most part it's working as intended... except for the navigation buttons within the help guide themselves. By that I mean...
    Those guys. The way I would assume they work is that they provide back/forward navigation between topics as you move through the guide, but they don't seem to be functional. As in, they do nothing, ever. They don't even act clickable.
    (The forward and back buttons provided by my browser do seem to work, but I'd like to get these working, as well.)
    We're testing mostly in Firefox 13; we've also tried IE 9, and the buttons work correctly. Any ideas?
    (output is from RH9, for the record)

    Hi there
    It's odd that these would work fine in IE. To my knowledge, they aren't there to navigate from visited topic to visited topic and back. Unless I'm mistaken, they are there to traverse one or more Browse Sequences that have been defined.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Back button not working after navigation using method navigate_to_account

    Hi,
    I have the following scenario.
    1. From Account Search navigating to one Account (Page 1 to Page 2)
    2. From Account there is a hyperlink with opens another page (Page 2 to Page 3). For this navigation I am using method  cl_crm_uiu_bp_tools=>navigate_to_account
    3. Page is opening successfully but when I am clicking on the BACK button for the first, nothing is happening. On the second click in the BACK button its navigating back to the Search page. (Page 3 to Page 1).
    So the history is not triggering for Account page (Page 2)
    Please help me with this issue.

    Hi Tapas,
    You actually need to explicitly record it using the below statement.
    RAISE EVENT history_trigger .
    Use this starement before calling the outbound plug.
    Please let me know if you still have any issues.
    Regards,
    Jotsaroop Singh

  • Problem with Back button in Top Level Navigation

    Hi all,
    We are facing a minor problem with the Back button in the Top Level Navigation in Portal. This button is present under the Roles and Worksets menu along with the History, Forward, and Add to Portal Favorites links.
    The problem is faced when we have some worksets under a single role. While browsing accross these worksets by randomly clicking on them, we wish to use the Back button as well to go back to the previous workset. But when we use the Back button, the Detailed Navigation panel in the last workset is not retrieved.
    I will explain with the System Administration Role. I open the worksets under this role in the following manner:
    First I open Transport;
    Next I open Portal Display;
    Next I open System Configuration;
    Now I wish to go back to Portal Display workset by clicking on the Back button. But when I do this, although the Portal Display workset opens up, but I cannot see the Detailed Navigation Panel. See the screenshot below:
    http://img399.imageshack.us/my.php?image=backbuttonkg6.jpg
    Please help me in solving this issue.
    Regards,
    Ankur

    I think I have found a resolution, although not very pleasant:
    [Note 950426 - Portal Back button not working correctly|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_ep_pi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393530343236%7d]
    Regards,
    Ankur

  • Custom icon for bar button item on iPhone?

    Hey all,
    I'm trying to set a custom image as a bar button item in my iPhone app and can't figure it out. I don't want the image inside a button, I want the image to be the button itself. If I use initWithCustomView the area isn't clickable anymore (unless I'm missing something).
    Does anyone know how to do this?
    Thanks,
    Mike O.

    I am having the exact same problem, but I cannot figure out the solution. I tried initWithCustomView: with a UIImageView, and then with a UIButton. If I set the UIBarButtonItem's target and action, that method does NOT get called in either scenario, and when i set the UIButton's target and action in the latter scenario, it STILL does not get called. Could you post your working sample code? Here is an example of my code which DOES NOT WORK!
    UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setImage:[UIImage imageNamed:@"NowPlaying.png"] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(nowPlayingButtonClicked) forControlEvents:UIControlEventTouchUpInside];
    nowPlaying = [[UIBarButtonItem alloc] initWithCustomView:button];
    nowPlaying.action = @selector(nowPlayingButtonClicked);
    nowPlaying.target = self;
    Thanks for your help.
    Message was edited by: Ben Sussman

Maybe you are looking for