Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios TableViewCell可以有不同的高度吗?_Ios - Fatal编程技术网

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