iphone NStimer start in 2 seconds

后端 未结 4 1631
终归单人心
终归单人心 2021-01-01 01:19

I am trying to have a block of code run 2 seconds after I \'start\' it.

I think the NSTimer can do this but can\'t figure it out.

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-01 02:09

    You should be able to set the NSTimeInterval to 2.0 seconds and it should fire after that amount of time. What are you seeing? What is the code you are using to invoke the timer?

提交回复
热议问题