objective c - iOS 6 custom grouped UITableViewCell incorrect size -


i have created uitableviewcell subclass contains uitextfield. when add cell grouped table view in ios 6 cell gets extended table view edges.

the name field extended company , season fields in same tableview yet correct size

here code custom cell.

#import "activitynameeditcell.h"  @implementation activitynameeditcell  - (id)initwithstyle:(uitableviewcellstyle)style reuseidentifier:(nsstring *)reuseidentifier {     self = [super initwithstyle:style reuseidentifier:reuseidentifier];     if (self) {         self.textfield = [[uitextfield alloc] init];          [self addsubview:self.textfield];     }     return self; }  - (void)setselected:(bool)selected animated:(bool)animated {     [super setselected:selected animated:animated];      // configure view selected state }  - (void)layoutsubviews {     self.textfield.frame = cgrectmake(self.contentview.frame.origin.x + 10, 0, self.frame.size.width - self.contentview.frame.origin.x - 10, self.frame.size.height); }  @end 

this same cell class lays out correctly in ios 7

is there glaringly obvious i've done wrong? how can fix cell in ios 6?

i forgot call [super layoutsubviews] in layoutsubviews implementation. derp...

enter image description here


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -