iphone 延时器,定时器

头文件定义:
NSTimer *timer;



实现文件:
3秒钟后执行loadHtmlView方法
   timer=[NSTimer scheduledTimerWithTimeInterval:3
                                           target:self
                                         selector:@selector(loadHtmlView)
                                         userInfo:nil
                                          repeats:YES];

你可能感兴趣的:(iPhone)