SafeObject icon indicating copy to clipboard operation
SafeObject copied to clipboard

IOS崩溃异常的处理,防止数组越界,字典空值处理

Results 3 SafeObject issues
Sort by recently updated
recently updated
newest added

NSString *key = nil dict[key] = @"test" 无法防护

添加容易出现崩溃的分类 NSAttributedString 和 NSMutableAttributeString

UILabel *label = [UILabel new]; NSDictionary *dataDic = @{ @"123":@"123", @"1232":@"1233", @"1233":@"1243", @"123e":@"123d", @"12345": label.text, @"1asd":@"123", @"dfg":@"1233", }; MYLog(@"-----%@",dataDic) 打印结果如下: -----{ 123 = 123; 1232 = 1233; 1233 = 1243;...