i want to print how much memory is occupying by a image when that particular image is loaded. can anyone have idea?
Please help me
Thank You
Lakshmi
i want to print how much memory is occupying by a image when that
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.
UIImageprovides no obvious way of telling the memory of the underlying data. However we could use Core Graphics to give us the estimate. You could probably get an estimate of the memory occupied by an image by doingBut I suggest you don’t base any image management on this. You really don’t know how much memory you will have with you. Try to minimize how many images you’ve loaded into memory. Basically, optimize as necessary.