How can I delay a method call for 1 second?

前端 未结 11 1372
别跟我提以往
别跟我提以往 2020-11-30 18:19

Is there an easy way delay a method call for 1 second?

I have a UIImageView that reacts on a touch event. When the touch is detected, some animations ha

11条回答
  •  温柔的废话
    2020-11-30 19:01

    Use in Swift 3

    perform(, with: , afterDelay: