I am working on an app where i have to parse and show data in the app.
I am getting the image data in form of NSData which i am encoding and converting into UIImage so that it can be displayed on UIImageView, but something is going wrong and the image is not being displayed.
Following is the code I have done,
NSData *requestdata = [[[self.resultArray objectAtIndex:indexPath.row] objectForKey:@"profile_image"] dataUsingEncoding:NSUTF8StringEncoding]; // NSLog(@"Data is::%@",requestdata); UIImage* image = [[UIImage alloc] initWithData:requestdata]; [cell.profilePic setImage:image];