Siva K
Siva K

Reputation: 4968

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 getting crashed and in the error report it says as memorywarning2. How to overcome this problem....Please help me friends

Upvotes: 0

Views: 224

Answers (1)

Morten Fast
Morten Fast

Reputation: 6320

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.

Upvotes: 1

Related Questions