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

  • Home
  • SEARCH
  • 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 1062271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:36:03+00:00 2026-05-16T18:36:03+00:00

Trying to get custom Done button in Utility Application Create new project in Xcode

  • 0

Trying to get custom “Done” button in Utility Application

  1. Create new project in Xcode using Utility template
  2. Put image done_button.png in project
  3. Add some code in FlipsideViewController.m in viewDidLoad method. I use this code successfully when change buttons in navigation controllers.

    UIImage *back_image=[UIImage imageNamed:@"done_button.png"];
    UIButton *back_button = [UIButton buttonWithType:UIButtonTypeCustom];
    back_button.bounds = CGRectMake( 0, 0, back_image.size.width, back_image.size.height);    
    [back_button setBackgroundImage:back_image forState:UIControlStateNormal];
    [back_button addTarget:self action:@selector(done) forControlEvents:UIControlEventTouchUpInside];    
    UIBarButtonItem *barButtonItem_back = [[UIBarButtonItem alloc] initWithCustomView:back_button];
    self.navigationItem.leftBarButtonItem = barButtonItem_back;
    self.navigationItem.hidesBackButton=YES;
    [barButtonItem_back release];

  1. I can see standard Done button only, not custom. If I delete this button in xib – I can’t see any buttons at all.

I think I cant get access to items here – self.navigationItem.leftBarButtonItem = barButtonItem_back;

plz help
Serg

  • 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-05-16T18:36:04+00:00Added an answer on May 16, 2026 at 6:36 pm

    Solved!

    1. Add an outlet UINavigationItem *navigItem to FlipsideViewController.h for the UINavigationItem.
    2. Open the FlipsideView.xib and connect the outlet.
    3. Assign button

      navigItem.leftBarButtonItem = barButtonItem_back;

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

Sidebar

Related Questions

Im trying to get a custom menu to show when the menu button is
I am trying to get my Blackberry application to display a custom modal dialog,
I'm trying to add a custom font to my project in Xcode 4.2, but
I'm trying to create a custom, in-house application that is going to access other
What I've done Hello Guys, I'm trying to create a custom ListView layout. I've
I am trying to get the next and prev button on my custom pager.
I'm trying to create a simple theme (using Chameleon and some custom css and
I am trying to get a custom icon onto my JFrame . I have
I'm trying to get a custom handler to work for a specific URL (or
I have been trying to get a custom Value from the Custom Field that

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.