Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是IOS开发的新手。我有一个播放音频的方法,该方法在循环内。所以我想延迟该方法并检查播放音频是否完成。
代码看起来像这样
for (int i=0; i<arrcount; i++) { [self performSelector:@selector(partsbuttonclicked:) withObject:[pArr objectAtIndex:0] afterDelay:0]; [pArr removeObjectAtIndex:0]; }