草庐IT

UIViewAnimationOptionsAllowUserIn

全部标签

ios - animateWithDuration 和 UIViewAnimationOptionsAllowUserInteraction

我正在制作一个简单的应用程序,其中包含一个在屏幕上移动的按钮,我希望用户能够在它移动时点击它。我有这个:funcbonus(){UIView.animateWithDuration(14,delay:0.1,options:UIViewAnimationOptionsAllowUserInteraction,animations:{self.bonusbutton.center=CGPointMake(self.bonusbutton.center.x+1000,self.bonusbutton.center.y)},completion:nil)}这给我“useofunresolve