Tom*_*mmy 3 iphone cocoa-touch
如何每隔x毫秒在视图控制器中执行一个方法?
And*_*ant 7
创建一个计时器,将您的视图和函数作为要调用的参数.或者,您可以将NSInvocation与NSTimer一起使用.
例如
[NSTimer scheduledTimerWithTimeInterval:0.1f target:myView selector:@selector(myMethod) userInfo:nil repeats:YES];
归档时间:
17 年,3 月 前
查看次数:
544 次
最近记录:
13 年,7 月 前