I have created an GKSession and as its object is created, it starts search for availability of devices, as
- (void)session:(GKSession *)session peer:(NSString *)peerID didChangeState:(GKPeerConnectionState)state {
I want to call this method after each 60 seconds, what should I do?
Once you set NSTimer to scheduleWithTimeInterval it calls it immediately. You can use
Swift 3:
Use the following code:
You can use schedular method...
you can call above function by using this...
Use
NSTimer
After each 60.0 second , iOS will call the below function