ios - uitableviewcell row height不生效
阿神
阿神 2017-04-17 17:35:49
0
2
393

居然只有这么大

阿神
阿神

闭关修行中......

Antworte allen(2)
洪涛

func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {

return 146
}
巴扎黑

关于cell的行高,有4种方式可以设置:
1、使用rowHeight属性:
2、使用代理方法:
3、使用self-sizing
4、使用代码计算

具体实现可以参考下这篇博客,专门介绍cell行高的设置。http://www.hcios.com/archives/464

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage