尝试&赶上iPhone? [英] try & catch in iPhone?
本文介绍了尝试&赶上iPhone?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文