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

  • Home
  • SEARCH
  • 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 9248693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:00:04+00:00 2026-06-18T10:00:04+00:00

I have a UITableView with some cells that will have a disclosure indicator (UITableViewCellAccessoryDisclosureIndicator)

  • 0

I have a UITableView with some cells that will have a disclosure indicator (UITableViewCellAccessoryDisclosureIndicator) and some which will not (UITableViewCellAccessoryNone). I’m setting this in the cellForRowAtIndexPath method, based on my data values for the table rows. My problem is that I have some right-aligned labels in the cells that should all line up regardless of whether the indicator is displayed or not, and I’m finding that the indicator arrow pushes my labels out of align, as if it has a fixed margin. Is there any way to prevent this happening, without having to programatically reposition my UILabels? My UITableView is designed in Interface Builder with prototype cells if that makes any difference. My app is targetting iOS 5.1.

enter image description here

  • 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-18T10:00:07+00:00Added an answer on June 18, 2026 at 10:00 am

    Adding a UITableViewCellAccessoryDisclosureIndicator will shrink the space allotted for your cell’s contentView.

    You either have to create your own disclosure indicator as an image subview or you need to fix the constraints on the label(s) with the numbers.

    Or instead of using the cell’s textLabel for the numbers and then right align it, you could setup up own UILabel which you add to the cell’s contentView. For the UILabel subview you make sure it does not extend beyond the cell’s width as if it had a disclosure indicator. You can set the background colour of your UILabel to red or something which will help you align the labels correctly.

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

Sidebar

Related Questions

I need some help. I have a UITableView that has cells that hold the
I have a UITableView that has some cells and I add a UITextField to
I have a UITableView that contains several cells and some of them (the ones
I have a UITableView with some cells in it that have people's names. When
I have a UITableView that displays some data that is read in at runtime
I have a UITableView set up with some custom cells. I've turned on cell
I have a UITableView in which of course I use some UITableViewCells. Now some
In my Universal App I have a long UITableView with custom cells..and for some
I have a UITableView that when scrolled to far bounces bag. This also means
I have a app that will populate a UITableView after the user takes a

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.