码迷,mamicode.com
首页 > 移动开发 > 详细

iOS开发延时操作

时间:2015-01-12 20:56:40      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:

1.最直接的方法performSelector:withObject:afterDelay: 这种方法的缺点:每次要为延时写一个方法

   [self performSelector:@selector(chooseJump) withObject:nil afterDelay:1.5f];

实现chooseJump方法,延时1.5s在做完chooseJump方法后 

 

iOS开发延时操作

标签:

原文地址:http://www.cnblogs.com/HHB17/p/4219571.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!