2017-05-05 108 views
0

我在桌面视图控制器中使用sdwebimage,我从url获取照片,在数组中存储网址并在表视图单元格中显示图像视图,所以如何动态设置图像大小取决于图像大小tableviewcell在objective-c?中。在桌面视图单元格中设置图像大小

回答

0

阅读关于这两个委托方法的表视图和覆盖根据您的要求。

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

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

https://github.com/jurezove/dynamic-uitableviewcells/tree/master

相关问题