dimanche 25 janvier 2015

add image to UIButton asynchronously

I have the following situation



UIImage *btnImage = [UIImage imageNamed:@"image.png"];
[btnTwo setImage:btnImage forState:UIControlStateNormal];


But for some reason it seems to be causing some delay in my code, so I want to execute these two lines asynchronously. How might I do that?




Aucun commentaire:

Enregistrer un commentaire