@try {//try里面写可能造成崩溃的代码
NSString *str = [NSNullnull];
NSLog("%zi",str.length);
}
@catch (NSException *exception) {//抓取到crash信息
NSString *msg = [NSStringstringWithFormat:@"name:%@,reason:%@",exception.name,exception.reason];
kMT_alterViewMsg(msg);
}
@finally {//try之后或者catch之后走的方法
return;
}