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

前端 未结 7 2001
旧巷少年郎
旧巷少年郎 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:49

    Try

    NSDate *future = [NSDate dateWithTimeIntervalSinceNow: 0.06 ];
    [NSThread sleepUntilDate:future];
    

提交回复
热议问题