gpt4 book ai didi

ios - NSTimer 数组??返回超出范围

转载 作者:行者123 更新时间:2023-11-28 13:02:09 25 4
gpt4 key购买 nike

var multiTimer: [NSTimer] = []

我试过用

multiTimer[indexPath.row] = NSTimer.scheduledTimerWithTimeInterval(1,
target: self, selector: "TargetFire:", userInfo: nil, repeats: true)

它返回超出范围的数组...

最佳答案

您必须将 NSTimer 附加到 multiTimer

multiTimer.append(NSTimer.scheduledTimerWithTimeInterval(1,
target: self, selector: "TargetFire:", userInfo: nil, repeats: true))

关于ios - NSTimer 数组??返回超出范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33624959/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com