I am trying to populate an UIImageView with image data taken from a webservice. Below is what I am trying to do and it does not populate the image at all. The UIImageView is b
I was able to use a method as follows
- (UIImage *)decodeBase64ToImage:(NSString *)strEncodeData {
NSData *data = [[NSData alloc]initWithBase64EncodedString:strEncodeData options:NSDataBase64DecodingIgnoreUnknownCharacters];
return [UIImage imageWithData:data];
}
And pass it my base64 string from the webservice call like this:
UIImage *image = [self decodeBase64ToImage:imageData];
[Photo setImage:image];