iOS开发--UITableView在iPad横屏时两边有很大的空白,解决方法。
ios,ipad,留白,cell空白,tableVie空白2016-11-10
注:这个情况在iPhone中是没有的。
代码如下:
if ([[UIDevice currentDevice].systemVersion floatValue] >= 9.0)
{
self.tableView.cellLayoutMarginsFollowReadableWidth = NO;// 9.0以上才有这个属性,针对ipad。
}