Is your SimpleTableCell a subclass of the UITableViewCell you created? Is this imageView a property of this subclass?
Just to guess:
Each UITableViewCell has a built-in readView property for reading. In the code you posted, you use this property by default, which, I believe, cannot have its frame, it is fixed on the left side of the cell.
Look at the imageView property inside the documentation: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewCell_Class/index.html#//apple_ref/occ/instp/UITableViewCell/imageView
So, if you have a custom cell with its own ImageView, don't forget to also name it imageView , because you can end using the default UITableViewCell property, not your own, which will have all your frame settings, etc.
You must reference your cell with your customClass property and call your property as follows:
- (void)connectionDidFinishLoading:(NSURLConnection *)connection { UIImage *userImage = [UIImage imageWithData:userImageData scale:self.profileImage.frame.size.height/self.profileImage.frame.size.width]; SimpleTableCell *cell = (SimpleTableCell*)[self.myTable cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]; cell.myImageView.image = userImage; }
I don't know if the problem is really related to this, so let me know if this helped or not.
source share