此錯誤僅在iPad上進行復制,在iPhone上正常工作。 我有分組的UITableView並在首節最後一個單元有刪除分隔此代碼:細胞從覆蓋層中分離出顏色UIVIew
self.separatorInset = UIEdgeInsetsMake(0,0,0,CGFLOAT_MAX);
和它的外觀良好。
,但如果我添加並刪除其它的UIView到的viewController鑑於以上的tableView:
UIView *coloredView = [[UIView alloc] initWithFrame:self.view.bounds];
coloredView.backgroundColor = [UIColor redColor];
[self.view addSubview: coloredView];
[coloredView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:2];
我的最後一個單元格會是這樣的:
如何我可以用另一種方式修復它或從最後一個單元中刪除分隔符?