标签: iphone ios4 iphone-sdk-3.0
try{}catch结构对于C ++,Java和&相关语言。在iOS SDK中是否有这样的功能?
try{}catch
答案 0 :(得分:92)
@try { // Try something } @catch (NSException * e) { NSLog(@"Exception: %@", e); } @finally { // Added to show finally works as well }