问题描述
|
在我的iPhone中,我要确保在for循环中,连续迭代之间存在一定的延迟。
我怎样才能做到这一点?
解决方法
forloopstart {
[self performSelector:@selector(updateTextLabelWithString:) withObject:@\"sleep 5 worked\" afterDelay:5.0];
}
-(void)updateTextLabelWithString:(NSString *)theString
{
NSLog(@\"theString is : %@ \\n\\n\",theString);
}