adjustmentBestSongBpmHeartRate
全部标签 我想每1.1秒调用一次方法funcadjustmentBestSongBpmHeartRate()。我使用了Timer,但它不起作用。我已经阅读了文档并找到了很多示例代码,它仍然有效!我错过了什么吗?timer=Timer.scheduledTimer(timeInterval:1.1,target:self,selector:#selector(self.adjustmentBestSongBpmHeartRate),userInfo:nil,repeats:false)timer.fire()funcadjustmentBestSongBpmHeartRate(){print("f
我想每1.1秒调用一次方法funcadjustmentBestSongBpmHeartRate()。我使用了Timer,但它不起作用。我已经阅读了文档并找到了很多示例代码,它仍然有效!我错过了什么吗?timer=Timer.scheduledTimer(timeInterval:1.1,target:self,selector:#selector(self.adjustmentBestSongBpmHeartRate),userInfo:nil,repeats:false)timer.fire()funcadjustmentBestSongBpmHeartRate(){print("f