calling a method after each 60 seconds in iPhone

后端 未结 6 1799
我在风中等你
我在风中等你 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:38

    Swift 3:

    Timer.scheduledTimer(withTimeInterval: 60, repeats: true, block: { (timer) in 
    print("That took a minute")
    })
    

提交回复
热议问题