If the UI asks you "How big is this picture?" "And how should you answer?"
In order not to allow the image to be deformed or blurred due to stretching or compression, please tell the image of the image of the proportion, as for the resolution of the picture, not necessarily too strict, but the minimum requirement is to make the largest screen does not appear the situation described above, the other to the following methods to deal with it.
Again, picture proportions must be accurate!
The following are the common sizes of iOS phones:
Photo Excerpt from here
Next is the method of processing:
-(UIImage *) Imagewithimagesimple: (UIImage *) image scaledtosize: ( cgsize) newsize{ uigraphicsbeginimagecontext (newSize); [Image Drawinrect:cgrectmake (0 ,0 , Newsize.width, Newsize.height)]; * NewImage = uigraphicsgetimagefromcurrentimagecontext (); Uigraphicsendimagecontext (); return newimage;}
IOS resize picture, tell your UI, don't ask me size! I want the biggest.