ios app crashes when loading image from html string
in my app in a web view page i am trying to load images from an html string. There are around 27 images. The app is g开发者_运维技巧etting crashed and in the error report it says as memorywarning2. How to overcome this problem....Please help me friends
You're probably loading too many, too large images into memory at one time.
Unless you really need a web view, you could use UIImageView
s in a UIScrollView
and handle the memory usage yourself.
If you must use a web view, maybe you could use smaller images.
精彩评论