dimanche 1 février 2015

Checking if UIImageView is animating

i am currently working on an application that allows the user to select a profile image.


I am able to select the image and display it on the iPhone screen. I want to make sure that the user has selected an image before saving all his information. I have have done some research around and have found that isAnimating() function can be used to check that the UIImageView is actually "animating"/"displaying" the user's image. Unfortunately, when I do the check



if profileImage.isAnimating() == true{

self.user.save()
self.performSegueWithIdentifier("moveToMainScreen", sender: self)
} else {
println("please select an image")
println(profileImage.isAnimating())
}


Even if profileImage is displaying ... isAnimating() always returns false. :(


I'm not sure if there is something faulty with this function or if we have to do something else.


Any help will be really appreciated. :(




Aucun commentaire:

Enregistrer un commentaire