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 7614931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:31:41+00:00 2026-05-31T02:31:41+00:00

I want to disable the border around iPhone SDK’s add button, so it’s just

  • 0

I want to disable the border around iPhone SDK’s add button, so it’s just the “+” button (no black bg):

enter image description here

This seems to be a simple task when it’s located in the toolbar, but not when it’s located in the UINavigationBar. Anyways, if anyone knows how, or if it’s even possible, then please share! Here’s my current code in my RootViewController.m:

self.title = @"Code Master";
addButton = [[UIBarButtonItem alloc]
                initWithBarButtonSystemItem:UIBarButtonSystemItemAdd 
                target:self action:@selector(addButtonClicked:)];
self.navigationItem.rightBarButtonItem = addButton; 

EDIT

@Dee so your code works great, displays exactly what I want! There is another problem now that I’ll explain:

Edit Button: Left side of UINavigationBar
Done Button: Left side of UINavigationBar (hidden); when the Edit button is clicked, it replaces the Edit Button with this “Done” button
Plus Button: Right side of UINavigationBar; hides when in “edit mode“, shows when in “normal mode (when Done button is not visible)“

So basically my problem now is that whenever I click Edit, then Done, the plus button doesn’t return from hiding. I’m using your exact code and it worked with my previous code. I’m pretty sure that it’s because in your code, theres nothing labelling it “addButton”. Here’s the code later on in my main file:

-(void)setEditing:(BOOL)editing animated:(BOOL)animated {
    [super setEditing:editing animated:YES];
    if (editing)
    {
        self.navigationItem.rightBarButtonItem = nil;
    }
    else
    {
          UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
          [button setImage:[UIImage imageNamed:@"Plus.png"] forState:UIControlStateNormal];
          [button addTarget:self action:@selector(addButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
          [button setFrame:CGRectMake(0, 0, 50, 29)];
          UIBarButtonItem *barBtn = [[UIBarButtonItem alloc] initWithCustomView:button];
          self.navigationItem.rightBarButtonItem = barBtn;
          [barBtn release];
    }

    [self.tableView reloadData];
}
  • 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-31T02:31:42+00:00Added an answer on May 31, 2026 at 2:31 am

    Create “+” image and set it to button & give that button to UIBarButtonItem like this:

    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setImage:[UIImage imageNamed:@"Plus.png"] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(addButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
    [button setFrame:CGRectMake(0, 0, 50, 29)];
    UIBarButtonItem *barBtn = [[UIBarButtonItem alloc] initWithCustomView:button];
    [self.navigationItem setRightBarButtonItem:barBtn];
    [barBtn release];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to disable the left bar button when my webview is loading can
Possible Duplicate: Disable browser's back button I have a log in page <div style=border:1px
I want to disable border in a table by selecting a column, i dont
I want to disable the selection of certain rows in a datagridview. It must
I want to disable Javascript once a page has already loaded. Why? Because I
I want to disable users from entering a character into a HTML text input
I want to disable all Foreign key constraints and re-enable them after, is there
I want to disable a particular key press in .NET(both VB.NET & C#.NET).``
I want to disable the stack trace getting generated when an exception is thrown.
I want to disable the navigation on press of UP and Down arrow keys

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.