Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9265511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:05:09+00:00 2026-06-18T14:05:09+00:00

I am newbie for iPhone application. What I have is as below. UIBarButtonItem *flipButton

  • 0

I am newbie for iPhone application.

What I have is as below.

UIBarButtonItem *flipButton = [[UIBarButtonItem alloc] 
                           initWithTitle:@"Flip"                                            
                           style:UIBarButtonItemStyleBordered 
                           target:self 
                           action:@selector(flipView)];

self.navigationItem.leftBarButtonItem = flipButton;
[flipButton release];

BUT, problem is button design. It is just square button.

How can I make this button to same as Back button?

Any idea/ suggestion would be appreciated.


I was trying with

self.navigationItem.leftBarButtonItem.title = @"Back";
self.navigationController.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(goBackToSAMA:)] autorelease];

but its working working. Not working means, goBackToSAMA is not getting invoked and button text is also not coming to Back.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:05:10+00:00Added an answer on June 18, 2026 at 2:05 pm

    As far as I know, ther is only one way how to display the standard back button. You have to push UINavigationItem in UINavigationBar. Or better: there need to be navigation item to be popped.


    IMPORTANT: This will not work nice with UINavigationController‘s bar, so use your own!

    UINavigationItem *firstItem = [[UINavigationItem alloc] initWithTitle:@"Go Back"];
    UINavigationItem *secondItem = [[UINavigationItem alloc] initWithTitle:@"Something"];
    
    navigationBar.items = @[ firstItem, secondItem ];
    

    This code will display “Something” as a title and to the left, there will be back button saying “Go Back”. By default it shows the title of previous item, but you can customize it:

    firstItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Another Title" 
                                                                   style:UIBarButtonItemStyleBordered
                                                                  target:nil
                                                                selector:nil];
    

    Note that the target and selector are nil. You can not customize the action of back button like this, because it is special. You will need to implement protocol UINavigationBarDelegate and this method:

    – (BOOL)navigationBar:(UINavigationBar *)bar shouldPopItem:(UINavigationItem *)item {
        [self doYourActionHere];
        return NO; // Returning YES, would trigger pop animation.
    }
    

    Or just use custom background image…
    system back button background

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am newbie for iPhone application. Below is what I have... When I enter
I am newbie for iPhone application. I have followed this tutorial for login from
I am newbie for iPhone application. I have followed this tutorial for login from
Hi i'm a newbie to iphone application development.. present i'm working on Picasa web
I am newbie for iPhone application. I want to add TextArea. I know how
I'm a relative newbie on iPhone app development but have successfully created a tab
I'm a newbie doing Objective-C, coming from Flex/Actionscript development. I have an iPhone app
I'm a newbie to iPhone development. I have a table view with multiple sections
I am a newbie in iPhone development, doing my first app. I have some
I am a newbie to iPhone development and have some basic questions to ask

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.