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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:20:52+00:00 2026-06-01T16:20:52+00:00

This seems like such a simple task, yet I am unable to find a

  • 0

This seems like such a simple task, yet I am unable to find a good answer.

I have a view where I will have up to 4 buttons 1 will take up the entire width, and the other 3 will layoud on a seperate row, and will show any number of the 3 depending on state.

The one that shows up and will be fully across the view is no problem, the 3 below it however are a problem. Not that I can’t make them appear, but that not all 3 of them may always will be shown, so, this row may show as few as 1 button, or as many as 3 buttons, and depending on the number of buttons visible each button should take up the width of the view divided by the number of buttons.

Now I know I can explcitely calculate out the size of each button for each of the cases before adding and this would work, but this seems abjectly silly, is there no way to tell iOS to simply size them dynamically based on how many there are? IE here’s a row of buttons divide them up appropriately and lay them out beside each other.?

I want to believe somewhere this sort of thing exists, but so far I’m just not seeing it. Anyone know an answer beside code it explicitely? I would like to think IB would support resizing parts of a view based on show or hidden elements etc, but it doesn’t seem so.

  • 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-01T16:20:54+00:00Added an answer on June 1, 2026 at 4:20 pm

    Not on iOS SDK, but this is the kind of controller people will eventually code up. Try doing a your own view controller, or look for one on github or cocoacontrols, I’m sure you’ll find something like this.

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

Sidebar

Related Questions

This seems like such a simple question. I have several Edit boxes on my
This seems like such a simple task, but I'm having a hard time finding
This seems like such a simple question, but I have been trying for an
Why does Java not have a file copy method? This seems like such an
This seems like it should be really simple, but I'm unable to figure this
This seems like such a simple requirement, that I feel like I am missing
I'm a little embarrassed to ask this. It seems like such a simple thing.
This seems like a simple task or a repeat, but bear with me-- I've
This seems like such a simple question, but I'm having such difficulty with it.
This seems like such a simple thing but I just can't get it 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.