//以下代码为每隔1.5秒执行一次autoPlay函数
[NSTimer scheduledTimerWithTimeInterval:1.5 target:self selector:@selector(autoPlay) userInfo:nil repeats:YES];
iPhone/iPad Timer 使用
最新推荐文章于 2020-10-09 13:22:24 发布
//以下代码为每隔1.5秒执行一次autoPlay函数
[NSTimer scheduledTimerWithTimeInterval:1.5 target:self selector:@selector(autoPlay) userInfo:nil repeats:YES];