开发者

Multiple rowHeight values in UITableView?

开发者 https://www.devze.com 2023-01-19 03:57 出处:网络
Can I make each cell a different heig开发者_StackOverflow中文版ht in a UITableView? How so?- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

Can I make each cell a different heig开发者_StackOverflow中文版ht in a UITableView? How so?


- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 


Yes you can. Just implement -tableView:heightForRowAtIndexPath: for your table view delegate, and return different heights for those cells.

0

精彩评论

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