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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:46:38+00:00 2026-06-01T08:46:38+00:00

I have 3 objects in a cell. They are UILable with text (at left),

  • 0

I have 3 objects in a cell. They are UILable with text (at left), another UILable with text (at right) and a UIButton (at right most). Like:

[[label1_____][label2][button]]

Now how to rearrange these objects after rotating if i want just label1 to stretch and label2 with the button should stay with their original size and right aligned? Like

[[label1__________________][label2][button]]

Is there any align options to align button and label2 right (one by one) and label1 left to make only label1.autoresizingMask = UIViewAutoresizingFlexibleWidth?
I’m trying to do it (fill the cell with subviews) programmatically and I use

[cell.contentView addSubview:subview]

For my left label i did:

 label1.autoresizingMask = UIViewAutoresizingFlexibleWidth;

But after rotating from portrait to landscape I get no changes and it looks like:

[[label1_____][label2][button]___________]

Is there any other UIView with property like UIBarButtonSystemItemFlexibleSpace?

  • 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-01T08:46:39+00:00Added an answer on June 1, 2026 at 8:46 am

    In xib , using Interface Builder , use the Autoresizing property for lable and button , the red line’s / Arrow’s for autoresize when change orientation. so set top and rignt line only for second label2 and button.

    otherwise , programatically ,
    – change the co-ordinate in willAutorotate/shouldAutorotate delegate.

    better way ,..using xib.

    thanks
    Dipak C.

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

Sidebar

Related Questions

I have objects with location data stored in Core Data, I would like to
I have objects in a tree structure, I would like to aggregate status information
I have a UITableViewCell. The textLabel.text is set to some value. To the cell's
I have seen similar posts like this However, they don't seem to answer my
I have a cell editor that contains a little button that can be double
We have objects that we want to represent in stacks (think of stacking items
I have objects with many variables that I declare and explain in the comments.
I have objects that has a DateTime property, how can i query for the
I have objects which create other child objects within their constructors, passing 'this' so
I have beans which have Objects which can contain different types. Now when I

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.