calling a method after each 60 seconds in iPhone

后端 未结 6 1796
我在风中等你
我在风中等你 2020-12-08 07:04

I have created an GKSession and as its object is created, it starts search for availability of devices, as

 - (void)session:(GKSession *)session peer:(NSStri         


        
6条回答
  •  攒了一身酷
    2020-12-08 07:41

    Once you set NSTimer to scheduleWithTimeInterval it calls it immediately. You can use

      [self performSelector:@selector(doSomething) withObject:nil afterDelay:60.0f];
    

提交回复
热议问题