NIKETA SETH
NIKETA SETH

Reputation: 39

how we can get the grouped UITableview style for ios 7 as similar to ios 6

I am updating my app which will support both ios 6 and ios 7 ,now the problem is that I need a similar grouped style of tableview for ios 7 as of ios 6.I dont know that how to do this?

Upvotes: 0

Views: 2939

Answers (1)

Anil
Anil

Reputation: 2438

Achieving this is done by subclassing UITableViewCell and overriding its -setFrame: method like this:

- (void)setFrame:(CGRect)frame {
    frame.origin.x += inset;
    frame.size.width -= 2 * inset;
    [super setFrame:frame];
}

Refer this link

Upvotes: 4

Related Questions