开发者

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 UIImageViews in a UIScrollView and handle the memory usage yourself.

If you must use a web view, maybe you could use smaller images.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜