【问题标题】:how to handle try catch in iphone application? [duplicate]如何处理 iPhone 应用程序中的 try catch? [复制]
【发布时间】:2011-11-01 05:26:50
【问题描述】:

我搜索了我最好的水平来处理 iphone 应用程序中的@try @catch。但是,我找不到使用 google 的 @try 和 @catch 语句的确切解决方案/示例。你能帮我在我的代码中实现@try 和@catch 吗?请帮忙。提前致谢。

【问题讨论】:

    标签: iphone try-catch


    【解决方案1】:
    @try {
        crashy code
    } @catch (NSException *e) {
        no crash for me
    } @finally {
        happens whether the code was successful or not
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-10
      • 2012-11-25
      相关资源
      最近更新 更多