iphone - Does UIImageView have a property to indicate setImage has completed and animations are ready? -


just getting started obj-c , ios programming. have code loads , imageview (hidden: yes) uiview -

[bgimageview setimage:[uiimage imagenamed:@"filename.jpg"]; 

the code sets , commits animations on fgimageview , bgimageview. because of images can large, animation new bgimage not render new background image in , instead 'stalls , displays'. note stall not happen during setimage. happens during second animationcommit later in code. because animationcommit forces application wait until animation of imageview done.

what i'm looking sort of 'setimage commit' on uiimageview,

i'd rather display spinner until image loaded, proceed animation, there doesn't appear isloaded property uiimageview class.

is there simple way determine uiimageview done setimage call?

there method in uiimageview - (bool)isanimating, potentially use:

if (![bgimageview isanimating]) {     // continue next image; } 

would suffice or there other animation in progress give false responses?


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -