animating button Allowuserinteraction not working

后端 未结 2 859
独厮守ぢ
独厮守ぢ 2021-01-18 01:01

I have a UIbutton created in code in an NSObject class which controls a game in a UIViewController class. The button works fine throughout most of the game, but at a certain

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-18 01:19

    Swift 3 Xcode 8:

    AllowUserAction is now deprecated to allowUserAction.... go figure

    func nextButtonWink() {
    UIView.animateWithDuration(1.5, delay: 0, options: [.allowUserInteraction,
        animations: { 
    

提交回复
热议问题