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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:11:43+00:00 2026-06-17T07:11:43+00:00

Basically, the title says everything. I’m trying to do some customization and i need

  • 0

Basically, the title says everything. I’m trying to do some customization and i need to use less-than-zero width to make buttons be closer to each other.

I’ve learned it from this answer.

I can do it by manually setting every fixed space width, but how can I do it via [appearance] or something to make it default?

Something like this:

// works for every button not only Fixed Space
[UIBarButtonItem appearance] setWidth:-10]; 

!!! OR !!!

How can i set less-than-zero width in XCode? I’m creating everything using Storyboard anyway, it says that’s not a valid value to set.

Any help would be really great.

  • 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-17T07:11:44+00:00Added an answer on June 17, 2026 at 7:11 am

    I normally solve this kind of problem by subclassing the container and overriding layoutSubviews or didLayoutSubviews. This gives you a lot of control of all kind of styling behavior. In this particular case you would determine the widths programmatically and adjust the frames accordingly.

    Make your instance class a subclass of this subclass, and you will have the layout code neatly separated from your implementation.

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

Sidebar

Related Questions

Basically what the title says. I created a new MVC application. I'm trying to
so basically like the title says is there a way to use NSSortDescriptor to
The title pretty much says it all. I'm trying to use jQuery's ability (hoping
Basically the title says everything - why jQuery .animate({opacity:0}) changes the z-index too? Do
Basically what the title says. I know how to make a normal variable into
Basically its what the title says. This is my code. USE Assignment2; GO /*
The title description basically says it all. I'd like to use something that requires
The title basically says it all. I need to determine the Windows Service Pack
As the title says I'm trying to basically added the numbers 0-9 to a
Basically, the title says everything. The numbers are not too big (the maximum for

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.