Xcode Objective-C | iOS: delay function / NSTimer help?

前端 未结 7 1998
旧巷少年郎
旧巷少年郎 2021-02-01 15:32

So I\'m developing my first iOS application and I need help..

Simple program for now, I have about 9 buttons and when I press the first button, or any button, I just wan

7条回答
  •  借酒劲吻你
    2021-02-01 15:45

    Less code is better code.

    [NSThread sleepForTimeInterval:0.06];
    

    Swift:

    Thread.sleep(forTimeInterval: 0.06)
    

提交回复
热议问题