【发布时间】:2014-09-20 20:45:31
【问题描述】:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier =@"imageCell";
UITableViewCell *cell =[tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
NSData *imageData =UIImagePNGRepresentation([UIImage imageNamed:@"inbox.png"]);
PFObject *almacen = [_browserImagenes objectAtIndex:indexPath.row];
PFFile *archivo = almacen [@"image"];
[archivo getDataInBackgroundWithBlock:^(NSData *data, NSError *error) {
if (!error) {
UIImage *image = [UIImage imageWithData:imageData];
}
}];
return cell;
}
【问题讨论】:
-
这里要什么,请解释清楚。你想异步加载图片吗?
-
是的。我的图像存储在 Parse.com
-
那么你想在tableview中显示这些图像吗?
-
是的。问题是我什么也看不见
-
你使用了 'imagenArchivo',它返回的图片 url 是什么?
标签: ios iphone xcode uitableview parse-platform