I am using this code [cell setIndentationLevel:7];
with normal UITableViewCell
but it display too difference between iOS 6 and iOS 7.
iOS 6 and ealier
iOS 7
How can i fix iOS 7's error?
Thank you
I am using this code [cell setIndentationLevel:7];
with normal UITableViewCell
but it display too difference between iOS 6 and iOS 7.
iOS 6 and ealier
iOS 7
How can i fix iOS 7's error?
Thank you
Similar questions UITableViewCell imageView padding and ios7 uitableviewcell image left offset offer solution over subclassing. In iOS7 UIImageView sticks to left edge and you need to reposition it manually.
In your case position is based on indentation level:
- (void)layoutSubviews
{
[super layoutSubviews];
CGRect frame = self.imageView.frame;
frame.origin.x = self.indentationLevel*self.indentationWidth;
self.imageView.frame = frame;
}