I am trying to set my TableView Cell inset to UIEdgeInsetsZero but it has zero effect on my table view.
I am getting this issue with new iOS 8 Betas. Beta 5 seems to have this issue as well. Is this a legit issue, or am I doing something wrong?
self.tableView.separatorInset = UIEdgeInsetsZero
This seems to be an issue in the iOS8 betas:
Workaround:
Set the layoutMargins property of the cells and the UITableView to UIEdgeInsetsZero.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
[...]
cell.layoutMargins = UIEdgeInsetsZero;
return cell;
}
- (void) viewDidLayoutSubviews {
[super viewDidLayoutSubviews];
[...]
self.myTableView.layoutMargins = UIEdgeInsetsZero;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With