【发布时间】:2016-05-26 23:38:24
【问题描述】:
我用来获取图像的方法是:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath object:(PFObject *)object {
cell.mainImage.file = (PFFile *)object[@"image"];
[cell.mainImage loadInBackground];
}
行高设置为:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 501.0f;
}
我也想完美地填充图像,就像 instagram 一样。我不希望图像的顶部和底部都有条。
【问题讨论】:
-
是的,我看到了,我再试一次。
-
我的解决方案在这里你可以看看stackoverflow.com/questions/37235605/…
标签: ios objective-c uitableview dynamic