How much memory alloc an UIImageView 320×480?
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.
Normally a 320×480
UIViewwould consume an additional 320*480*4 bytes for the layer’s buffer, but in OS 3.0UIImageViewwas optimized to use the sourceUIImagedirectly.It has only a small overhead necessary to maintain the high-level
UIViewinterface. To reduce this even further, you can create aCALayerand assign the contents directly: