简体   繁体   中英

IOS: AutoLayout UITableView -> UITableViewCell not showing correct size

Basically i am trying to figure out why the cell does not go all the way to the end base on the device width. On iPhone6 it still show 320 in width instead of 375. Here http://1drv.ms/1E7Nrqp is a sample project i created.

Thanks, Hoay

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {

         self = [[[NSBundle mainBundle] loadNibNamed:@"TableViewCell" owner:self options:nil] lastObject];


    }
    return self;
}

In TableViewCell.m write the above code

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM