Ios TableViewCell可以有不同的高度吗?
作为表格的一部分,Ios TableViewCell可以有不同的高度吗?,ios,Ios,作为表格的一部分,TableViewCell是否可以具有不同的高度 如果是这样,如何做到这一点?使用UITableViewDelegate方法: - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 使用UITableViewDelegate方法: - (CGFloat)tableView:(UITableView *)tableView heightForR
TableViewCell
是否可以具有不同的高度
如果是这样,如何做到这一点?使用
UITableViewDelegate
方法:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
使用
UITableViewDelegate
方法:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
是,您必须为tableview数据源委托重写以下函数:
- (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
是,您必须为tableview数据源委托重写以下函数:
- (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath