Ste*_*tic 17 xcode uitableview nslayoutconstraint xcode6.3
我将我的Xcode与Swift 1.2一起更新为6.3,然后我进行了转换.
除了表视图的动态行高以外,一切正常.我有3个完全不同的表视图,所以它可能不是影响bug的其他东西.
我将所有表视图设置为:
tableView.rowHeight = UITableViewAutomaticDimension
Run Code Online (Sandbox Code Playgroud)
并且我的所有xib文件都受到了适当的约束.
有任何想法吗?
Ken*_*Ken 54
我只是简单地将UITableViewAutomaticDimension添加到estimaterowforindexpath.您可以在BEAM应用程序(在"人员"类别下)查看它的工作原理.
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
return UITableViewAutomaticDimension;
}
- (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath{
return UITableViewAutomaticDimension;
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
11385 次 |
最近记录: |