I’m trying to get the length of a UIImage. Not the width or height of the image, but the size of the data.
I’m trying to get the length of a UIImage . Not the width or
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The underlying data of a
UIImagecan vary, so for the same “image” one can have varying sizes of data. One thing you can do is useUIImagePNGRepresentationorUIImageJPEGRepresentationto get the equivalentNSDataconstructs for either, then check the size of that.