首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

ios捕获错误

2012-06-29 
ios捕获异常@try?{? Statements? }? @catch (NSException *ex) {? ????????UIAlertView *alert [[UIAler

ios捕获异常

@try?{? Statements? }? @catch (NSException *ex) {? ????????UIAlertView *alert = [[UIAlertView alloc]? ?????????????????????????????????????initWithTitle:[ex name]? ?????????????????????????????????????message:[ex reason]? ?????????????????????????????????????delegate:self??????????????????????????????????????cancelButtonTitle:@"OK"??????????????????????????????????????otherButtonTitles: nil];? ?????????????????????????????????????[alert show];? }?

热点排行