图片的数据类型问题 URL
data type issue with image URL
我确定这很容易解决,但我似乎无法解决...
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.
我的错误是"incompatible pointer types sending UIImage to parameter type NSString.."
UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:group[PF_GROUP_LOGO]]]];
cell.imageView.image = [UIImage imageNamed:image];
cell.imageView.image = image;
cell.imageView.image = 图片;
我确定这很容易解决,但我似乎无法解决...
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.
我的错误是"incompatible pointer types sending UIImage to parameter type NSString.."
UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:group[PF_GROUP_LOGO]]]];
cell.imageView.image = [UIImage imageNamed:image];
cell.imageView.image = image;
cell.imageView.image = 图片;