扫码关注官方订阅号
居然只有这么大
闭关修行中......
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
return 146 }
关于cell的行高,有4种方式可以设置:1、使用rowHeight属性:2、使用代理方法:3、使用self-sizing4、使用代码计算
具体实现可以参考下这篇博客,专门介绍cell行高的设置。http://www.hcios.com/archives/464
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
关于cell的行高,有4种方式可以设置:
1、使用rowHeight属性:
2、使用代理方法:
3、使用self-sizing
4、使用代码计算
具体实现可以参考下这篇博客,专门介绍cell行高的设置。http://www.hcios.com/archives/464