居然只有这么大
闭关修行中......
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
關於cell的行高,有4種方式可以設定:1、使用rowHeight屬性:2、使用代理方法:3、使用self-sizing#🎜 #4、使用程式碼計算
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
雷雷關於cell的行高,有4種方式可以設定:
具體實現可以參考下這篇博客,專門介紹cell行高的設定。 http://www.hcios.com/archives/4641、使用rowHeight屬性:
2、使用代理方法:
3、使用self-sizing#🎜 #4、使用程式碼計算