我确定这是一个简单的解决办法,但我似乎无法解决这个问题......
group[PF_GROUP_FEATURED] is just a database reference to a URL. I am trying to get these images to show up in my tableView cells.
我的错误是"不兼容的指针类型将UIImage发送到参数类型NSString .."
UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:group[PF_GROUP_LOGO]]]];
cell.imageView.image = [UIImage imageNamed:image];
答案 0 :(得分:4)
cell.imageView.image = image;
答案 1 :(得分:2)