basicPidTimer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(self.pidsUsage(indexPid:)), userInfo: pidsIndex, repeats: false)
调用方法波纹管但不触发任何帮助?
@objc func pidsUsage(indexPid : Int){
}
参数的类型需要为Timer
。 即
@objc func pidsUsage(timer : Timer) {
}