try{}catch
结构对于 C++、Java 和相关语言.iOS SDK 中有没有类似的功能?
The try{}catch
construct is common to C++, Java & related languages. In the iOS SDK is there and any functionality like this?
@try {
// Try something
}
@catch (NSException * e) {
NSLog(@"Exception: %@", e);
}
@finally {
// Added to show finally works as well
}
这篇关于尝试&赶上 iPhone?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!