Ich habe gerade angefangen zu programmieren und einem Tutorial online zu folgen, konnte ich diese Animation nicht erstellen. Kann mir jemand sagen, warum es sagt:Nil ist nicht kompatibel mit erwartetem Argument Typ UIViewAnimationOptions
Nil ist nicht kompatibel mit dem erwarteten Argumenttyp UIViewAnimationOptions
und wie man es beheben?
view.addSubview(myFirstLabel)
UIView.animateWithDuration(0.5, delay: 0.0, usingSpringWithDamping: 0.0, initialSpringVelocity: 0.0, options: nil, animations: {
self.myFirstLabel.center = CGPoint(x: 100, y:40 + 200)
}, completion: nil)
[UIView transitionWithView: Selbst Dauer: 0.3 Optionen: UIViewAnimationOptionTransitionFlipFromRight Animationen:^Abschluss { // Code, um das Bild von UIButton zu ändern}:^(BOOL beendet) { self.userInteractionEnabled = true; }]; Optionen können nicht null sein – GameLoading