I am trying to make an animation and use the code below. I get "Can't call" animateWithDuration "with a list of arguments like" (FloatLiteralConvertible, delay: FloatLiteralConvertible, options: UIViewAnimationOptions, animations :() โ () โ $ T4, completion: (Bool) โ (Bool) โ $ T5) "Error .
This means that I am using the wrong arguments. I could be wrong. Please help with this. I could not allow it.
var basketTopFrame = CGRect() basketTopFrame = dropPlace.frame var mytimer : NSTimer = NSTimer .scheduledTimerWithTimeInterval(2.0, target: self, selector: "restart", userInfo: nil, repeats: false) UIView.animateWithDuration(1.0, delay: 0.1, options: UIViewAnimationOptions.CurveEaseIn , animations: { var pickPlace = basketTopFrame }, completion: {(finished: Bool) in mytimer })
Thanks in advance.
ios swift uiviewanimation
Riyazul aboobucker
source share