Ich arbeite an der UIImageView Übergang in Swift. I eine Speicherung von sechs Bildern in einem Array und gibt dieses Array „imageview.animationImages “ und ich versuche, es zu machen als ‚GIF-Animation‘ zu arbeiten die Code, den ich geschrieben habe, ist wie folgt:UIImageView Animation funktioniert nicht
logoImages = NSMutableArray(array: ["backGround4.jpeg","backGround3.jpeg","backGround.jpeg","16.jpeg","23.jpeg","backGround1.jpeg"])
imageview.animationImages = NSArray(array: ["backGround4.jpeg","backGround3.jpeg","backGround.jpeg","16.jpeg","23.jpeg","backGround1.jpeg"]) as? [UIImage]
imageview.animationDuration = 1.5
imageview.animationRepeatCount = 1
imageview.startAnimating()
Es funktioniert nicht. Kann mir bitte jemand sagen, was ist der Fehler, den ich hier mache? Dank im Voraus
Vielen Dank. Es funktioniert gut –