我很好奇你能不能为iphone sdk循环一个NSThread。我了解到,我可以使用NSThreads在后台运行操作,而不是使用从主UI运行的NSTimers。我的大多数NSTimers都有"repeats:“表示”是“,因此我需要知道NSThreads是否可以循环。
谢谢凯文
发布于 2010-06-16 19:54:22
- (void) loop {
while (!finished) { … };
}
- (void) startThreadedLoop {
finished = NO;
[self performSelectorInBackground:@selector(loop)];
}https://stackoverflow.com/questions/3052888
复制相似问题