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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:02:31+00:00 2026-06-01T10:02:31+00:00

Two UITableViewCell related questions: In my custom UITableViewCell I loop through an array (of

  • 0

Two UITableViewCell related questions:

  1. In my custom UITableViewCell I loop through an array (of which I do not know how many objects it holds) and add a UILabel displaying some text for each object in that array.

This means I have to adjust the height of the cell so that these labels fit in. How can I do this?

  1. When going into edit mode, I have the cells indent, however I do not want this. I have tried the following:

cell.shouldIndentWhileEditing = NO;

and

-(BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath
{
    return NO;
}

Both sadly failed, I have I no idea why. How could I remedy this?

  • 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-01T10:02:32+00:00Added an answer on June 1, 2026 at 10:02 am
    1. You can specify the height for every row with the delegate method [UITableViewDelegate tableView:heightForRowAtIndexPath:].
      Just change what the method returns and the reload your table.

    2. This method actually has nothing to do with the indendation of cell content:

      Asks the delegate whether the background of the specified row should be indented while the table view is in editing mode.

    You can try to set indentationWidth but I never managed to make it work.
    Fortunately, it’s easy to change everything you want in [UITableView layoutSubviews] method.
    Example:

    - (void)layoutSubviews {
        [super layoutSubviews];
        self.contentView.frame = self.bounds;
    }

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

Sidebar

Related Questions

I have a custom cell which has two UILabel objects. //AppEventCell.h #import <UIKit/UIKit.h> @interface
I have a custom UITableViewCell created through code (not Interface Builder). I have sub-views
I have a custom a UITableViewCell , it has two sections.(section contain one custom
I have a custom view class which is a subclass of UITableViewCell. I have
I have a custom UITableViewCell with two labels ( UILabel ). The table cells
I add two UILabels to a UITableViewCell and then name and number labels to
I want two custom (i.e. subclassed) UIViews in a subclassed UITableViewCell as shown in
I have implemented a custom UITableViewCell which includes a UITextView that auto-resizes as the
I'm subclassing UITableViewCell and adding two subviews (image, UILabel). When the row is touched.
Two questions, really: Is there a standard/convention regarding the placement on configuration files? 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.