I have a tableview that displays people with an imageview and label. When a person is inserted into the table it can pull from contacts and the images look fine. When a pers
Swap out the UIImagePNGRepresentation
and use UIImageJPEGRepresentation
instead. PNGs aren't saved with orientation information automatically. Unless you are doing a photo specific app where photo quality has to be perfect, JPGs are fine.
The UIImageJPEGRepresentation
will ask for the image data but also a CGFloat
to set the compression quality. It's from 0.0 to 1.0 (best).
Good Luck!