一定時間後にタイムアウトしたい NSThread があります。
[NSThread detachNewThreadSelector:@selector(someFuntion) toTarget:self withObject:nil];
- (void) someFunction {
//Some calculation that might take a long time.
//if it takes more then 10 seconds i want it to end and display a error message
}
これについてあなたが提供できる助けは大歓迎です。
ありがとう、
Zen_silence