nstimer 定时器穿参数
来源:互联网 发布:网络策划经理招聘 编辑:程序博客网 时间:2024/06/08 19:30
for (GoldView *vcin viewGoldCollection)
{
[NSTimerscheduledTimerWithTimeInterval:2target:selfselector:@selector(animateTimer:)userInfo:vc repeats:NO];
}
-(void)animateTimer:(NSTimer *)timer
{
[selfperformSelectorOnMainThread:@selector(setShowGoldView:)withObject:(GoldView*)timer.userInfowaitUntilDone:NO];
//Not sure if this is required, since the timer does not repeat
[timer invalidate];
}
-(void)setShowGoldView:(GoldView*)vc
{
[vc setStyle:rand()%3 ];
[vc AddStartEffect:rand()%3];
}
- nstimer 定时器穿参数
- iOS定时器NStimer使用中传递参数
- NSTimer 定时器
- NSTimer 定时器
- NSTimer 定时器
- NSTimer定时器
- NSTimer定时器
- 定时器NSTimer
- 定时器-NSTimer
- NSTimer-定时器
- NSTimer/定时器
- NSTimer定时器
- NSTimer定时器
- NSTimer定时器
- NSTimer 定时器
- objective-c NSTimer 定时器
- NSTimer 定时器 IOS
- 有关定时器NSTimer使用
- Vs2008 创建BizTalk项目失败
- java.util
- 基础正则表达式字符
- IT情书
- 面向对象软件开发的后期调优系列之一 : 用好计时器
- nstimer 定时器穿参数
- POJ 动态规划题目列表
- 设计一个计算生日是星期几的程序
- android 配置属性
- qsort实现原理与应用 指向函数的指针
- vnc
- [模拟Spring]java读取xml文件,并实例化
- 关于 PDFBox 解析器
- 每日一练1.1(Lucene)