Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
ios ScheduledTimerWithTimeInterval 的时间量
我想使用 ScheduledTimerWithTimeInterval 来执行一定时间的定期任务 比如说一小时 但我如何在我的代码上实现 这是我的代码 timer NSTimer scheduledTimerWithTimeInterval
ios
NSTimer
如何在iPhone应用程序中每天的特定时间调用一个方法?
我想在我的 iPhone 应用程序中每天的特定时间调用一个方法 我怎样才能实现这个目标 使用 iPhone SDK 和封闭的应用程序并不能做很多事情 您可以让它在特定时间发送本地推送通知 但在用户手动打开您的应用程序之前不会执行您的代码 请
iphone
ios
AppleScript
NSTimer
使用 NSTimer 传递原始参数的正确方法
我正在使用一个调用此方法的基本计时器 void refresh id obj if obj YES doSomething 我想从代码的某些区域以及计时器调用此方法 NSTimer scheduledTimerWithTimeInterva
Objectivec
cocoa
cocoatouch
NSTimer
将正在运行的计数显示计时器添加到 iOS 应用程序中,例如时钟秒表?
我正在使用一个应用程序 该应用程序可以处理设备运动事件并以 5 秒的增量更新界面 我想向应用程序添加一个指示器 以显示应用程序运行的总时间 看起来像秒表的计数器 例如本机 iOS 时钟应用程序 是计算应用程序运行时间并将其显示给用户的合理方
ios
Objectivec
cocoatouch
time
NSTimer
一段时间后 NSTimer 停止在后台触发
嘿 我正在开发一个应用程序 其中我必须每 30 秒调用一次 API 所以我为它创建了 NSTimer 但是当我的应用程序进入后台时 计时器会在 3 4 分钟后停止触发 所以它只能在后台运行 3 4 分钟 但之后就不再运行了 我如何修改我的代
ios
timer
NSTimer
iPhone 开发——performSelector:withObject:afterDelay 还是 NSTimer?
重复方法调用 或消息发送 我猜合适的术语是 x秒 是使用 NSTimer NSTimer 的 ScheduledTimerWithTimeInterval target selector userInfo repeats 还是让该方法在最后
iphone
NSTimer
tailrecursion
repeat
iPhone:如何编写减少倒数计时器的代码?
我想使用显示倒计时器UILabel将从 5 开始并且每秒减少 1 like 5 4 3 2 1 最后当达到 0 时隐藏标签 我尝试使用它进行编码NSTimer scheduledTimerWithTimeInterval但惨败 请帮我 我只
ios4
NSTimer
如何将 NSTimer 与这个简单的 while 循环一起使用?
我有一个正在执行的 void 方法 在某一时刻它会进入一个 while 循环 该循环在请求时直接从加速度计获取值 我浏览了有关 NSTimer 类的文档 但我无法理解在我的情况下如何准确地使用这个对象 e g void play if ac
iphone
Objectivec
ios
NSTimer
停止并重新启动计时器
我想停止这个计时器 然后从停止的地方重新启动它 secondsTimer Timer scheduledTimer timeInterval 1 0 target self selector selector addSeconds user
swift
NSTimer
如何给计时器添加 5 秒
我正在尝试制作一个显示以下时间的计时器 小时 分钟 秒 毫秒 这是我的代码 var timer NSTimer var startTime NSTimeInterval func updateTime var currentTime NSD
ios
swift
NSTimer
nstimeinterval
uint8t
如何在Spritekit中创建计时器?
我已经弄清楚如何在单视图应用程序中制作计时器 但没有弄清楚 Spritekit 当我使用以下代码时 出现 2 个错误 如下所示 谁能帮我解决这个问题吗 谢谢 杰克 计时器 if scorelabel scorelabel SKLabelNo
ios
Objectivec
spritekit
NSTimer
[__NSCFTimer copyWithZone:]:无法识别的选择器发送到实例
var searchDelayer NSTimer func searchBar searchBar UISearchBar textDidChange searchText String searchDelayer invalidate
swift
NSTimer
iOS8
在 UIScrollView 中滚动时动画停止
因此 我试图制作一款游戏 用户必须尽可能快地向下滚动 才能逃脱无限增大的 块 这是我的问题 我使用 UI ScrollView 作为滚动机制 并以普通 UI 视图作为子视图 我设置了每 0 005 秒触发一次 这会增加 块 的高度和滚动视图
ios
Animation
UIScrollView
NSTimer
仅当系统唤醒时触发计时器 (macOS)
我正在开发一个进行网络调用的 mac 应用程序 我正在使用一个Timer每 15 分钟进行一次网络调用以刷新一些数据 我只希望在用户使用系统时触发计时器并进行调用 否则它只是进行不必要的调用 即系统未睡眠时 我该怎么做 我读到关于 mach
swift
MacOS
unix
cocoa
NSTimer
当 iPhone 处于睡眠模式时,iPhone 应用程序延迟 10 -15 分钟
我创建了一个使用 NSTimer 的应用程序 它每秒都会触发一次 我的问题是 如果 Iphone 处于睡眠模式 我会延迟 10 到 15 事件触发前的分钟数 我已经 stackoverflowed 并用谷歌搜索了这个 其原因似乎是手机在某些
iphone
sleep
NSTimer
如何更改 NSTimer 的计时?
我有以下代码 timer NSTimer scheduledTimerWithTimeInterval 0 50 target self selector selector onTimer userInfo nil repeats YES
ios
Objectivec
NSTimer
如何在 iOS 7 中让 NSTimer 在后台运行超过 180 秒?
我已经尝试过 但在 iOS 7 和 Xcode 4 6 2 中工作时间不超过 180 秒 请帮我 UIBackgroundTaskIdentifier bgTask UIBackgroundTaskInvalid UIApplication
ios
timer
NSTimer
快速按下时禁用按钮 90 秒
我有一个显示模态视图的按钮 但我希 望如果用户单击它 他将在 90 秒内无法再次使用它 我怎样才能做到这一点 在按钮的 IBAction 中禁用按钮并设置一个计时器 如下所示 self button enabled false NSTime
Button
time
NSTimer
IOS:停止 NSTimer [重复]
这个问题在这里已经有答案了 可能的重复 NSTimer 不会停止 https stackoverflow com questions 1031554 nstimer doesnt stop 我有这个代码 NSTimer scheduledT
ios
xcode
NSTimer
AVPlayerStatus 与 AVPlayerItemStatus
问题是玩家状态返回AVPlayerStatusReadyToPlay在player currentItem status返回之前整整2秒AVPlayerItemStatusReadyToPlay 有人对为什么会发生这种情况有任何有用的解释吗
iphone
NSTimer
avplayer
nsrunloop
1
2
3
4
5
»