iPhone: UIImageView not showing images

Posted by George on Stack Overflow See other posts from Stack Overflow or by George
Published on 2010-04-06T11:30:00Z Indexed on 2010/04/06 11:33 UTC
Read the original article Hit count: 323

Filed under:
|
|
|

Hello,

I've got UIImageView drawn in my nib-file and it's connected to a imageView iboutlet. I can load single pictures which will show up very nicely, but when it comes to drawing many images separately as like an animation, images won't show. I've got drawImage() function which takes NSData-objects(image data) and draws it to a screen(imageView).

Main function has got for loop which loops 300 times as quickly as it can and each time it calls that drawImage function and passes different image data to it. Sometimes when I execute this code, last picture from that "animation" shows up, sometimes not at all. Maybe I need to schedule enough time for imageView so that the image can be shown?

Hope someone has some clues. Thanks in advance!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode