iphone - Memory warning level 1 due to UIImage -



iphone - Memory warning level 1 due to UIImage -

i working on 1 component need scale , rotate image. next flow of component

select image photo library -> show image in uiimageview -> scaling -> save image in document.

this works fine image having low resolution.

but 1 time select image high resolution first memory warning level 1. cann't release image, need proceed farther same image.

i come know image unpacked ( width * height * 4 ) if select image of 1800 * 1200 memory consumed 8.6 mb [ checked instrument ] .

can 1 help me come on issue? creates 2 queuestion

can utilize images high resolution ? what 2 uiimageview 2 high resolution images?

thanks,

sagar

you alter order of operations bit.

select image photo library -> scale image -> save scaled image documents directory -> show scaled image in uiimageview.

scaling , saving image takes time, user have bit of wait before see image in uiimageview. displaying activity indicator cancel alternative idea.

i've used technique pretty big images , worked on older devices without incurring memory warnings.

iphone

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -