How do I reduce Image quality/size in iPhone objective-c?

前端 未结 3 1796
甜味超标
甜味超标 2020-12-09 05:29

I have an app that lets the user take a picture with his/her iPhone and use it as a background image for the app. I use UIImagePickerController to let the user

3条回答
  •  感情败类
    2020-12-09 06:06

    Use contentOfFile and make sure that all of your images are .png. Apple is optimized for png.

    Oh, use the contentOfFile not the imageName method. Several reasons for that. Images that is brought in memory by ImageName remained in memory even after a [release] is called.

    Dont ask my why. The apple told me so.

    Roydell Clarke

提交回复
热议问题