开发者

What replacement options are there for heightForRowAtIndexPath in a UITableView?

开发者 https://www.devze.com 2023-01-26 18:13 出处:网络
tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath is deprecated according to the iOS docs.It mentions using rowHeight instead, but that property is for all rows.I want to flow the rows\' heig

tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath is deprecated according to the iOS docs. It mentions using rowHeight instead, but that property is for all rows. I want to flow the rows' height versus the content's (UILabel) varyi开发者_如何学Cng size.

Is several custom cell styes my only other option besides heightForRowAtIndexPath?


http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableViewDelegate_Protocol/Reference/Reference.html

Sorry to tell you that...but it isn't deprecated ;)

EDIT: only thing they are saying is if you have very big tables (1000+ cells) it's better to use rowHeight because of performance issues.

0

精彩评论

暂无评论...
验证码 换一张
取 消