崩溃报错libc++abi.dylib: terminating with uncaught exception of type NSException怎么查看
·
@try{
[[NSUserDefaults standardUserDefaults] setObject:dic forKey:@"abc"];
}
@catch(NSException *exception) {
NSLog(@"exception:%@", exception);
}
@finally {
[[NSUserDefaults standardUserDefaults] setObject:dic forKey:@"abc"];
}
@catch(NSException *exception) {
NSLog(@"exception:%@", exception);
}
@finally {
}
如果dic中有值为null的情况就会崩溃
exception:Attempt to insert non-property list object {
avatar = "<null>";
} for key @"abc"
更多推荐

所有评论(0)