ios捕获异常

@try 
Statements 
@catch (NSException *ex) { 
        UIAlertView *alert = [[UIAlertView alloc] 
                                     initWithTitle:[ex name] 
                                     message:[ex reason] 
                                     delegate:self 
                                     cancelButtonTitle:@"OK" 
                                     otherButtonTitles: nil]; 
                                     [alert show]; 
posted @   GreyWolf  阅读(132)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示