iOS7后separatorInset 增加了一个 layoutMargins 接口,
顶格:
cell.separatorInset = UIEdgeInsetsZero;
cell.layoutMargins = UIEdgeInsetsZero;
cell.preservesSuperviewLayoutMargins = NO;
隐藏:
cell.separatorInset =UIEdgeInsetsMake(0, 0, 0, 横屏宽度);
cell.layoutMargins =UIEdgeInsetsMake(0, 0, 0, 横屏宽度);
cell.preservesSuperviewLayoutMargins = NO;
网友评论