Tim
Tim

Reputation: 13258

UITableViewCell -> Style: UITableViewCellStyleValue2 -> change indent

I use the UITableViewCellStyleValue2, so I have text on the left and on the right side. It looks like in the iPhone address book, see screenshot here: http://files.zimbra.com/blog/wp-content/uploads/2008/06/screenshot-2008-06-10-022326-0700-1.png

But how can I change the indent, so the text on the left side will have more space? Is this possible or do I need to create a customized cell?

Best Regards.

Upvotes: 2

Views: 2613

Answers (1)

Cristian Radu
Cristian Radu

Reputation: 8412

There is no property to do that. You'd have to manually modify the frames for both labels.

See this answer for more info: How to change the size of the labels on a UITableViewCellStyleValue2 cell? (UITableView iPhone)

Upvotes: 4

Related Questions