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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:37:09+00:00 2026-06-13T01:37:09+00:00

iOS, how to make a custom uibarbuttonitem with no-border, no-span with each other? like

  • 0

iOS, how to make a custom uibarbuttonitem with no-border, no-span with each other?

like this picture?

enter image description here

I do not know how to name this style. all these buttons are on the UIToolBar component.

thank you very much.

  • 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-13T01:37:12+00:00Added an answer on June 13, 2026 at 1:37 am

    As per my understanding it’s better to use segment-controller in such cases, But if you don’t wanna use it you can apply the image to your bar buttons in following way.

    UIImage *image=[[UIImage imageNamed:@"barbuttonimage.png"] stretchableImageWithLeftCapWidth:50 topCapHeight:10];
    // Specify width & height as per your need..
    
    CGRect frameimg = CGRectMake(0, 0, image.size.width,image.size.height);
    
    UIButton *someButton = [[UIButton alloc] initWithFrame:frameimg];
    
    [someButton setBackgroundImage:image forState:UIControlStateNormal];
    
    [someButton addTarget:self action:@selector(myBarbuttonEvent)
             forControlEvents:UIControlEventTouchUpInside];
    
     UIBarButtonItem *myBarbutton =[[UIBarButtonItem alloc] initWithCustomView:someButton];
        self.navigationItem.leftBarButtonItem=mailbutton;
    
    [someButton release];
    

    Hope this helps you. Thanks.

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

Sidebar

Related Questions

I have a Titanium Mobile project for iOS devices and would like to make
I make a very little framework for Android and iOS. Its for adding Custom
is it possible to make custom gestures in iOS such as a zigzag, or
I want to make custom calendar view in iOS.I can swipe the calendar monthly
If I create my own custom Application for iOS (XCode/Objective-C), can I make it
I'm developing an iOS 4 application. I'm using a custom uibutton to make an
I'm trying to make an iOS-style toggle switch in HTML/CSS/JavaScript. It's at the point
I'm trying to create a push-on-push-off-like button with custom images in Xcode4 for iOS.
How can I make a custom view in iOS which appears above the existing
I need to make photo app like photo app in ios. I need to

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.