RBSafeKit 1.0.0

RBSafeKit 1.0.0

测试已测试
语言语言 Obj-CObjective C
许可 MIT 许可证
发布上次发布2017年3月

baxiang维护。



RBSafeKit 1.0.0

  • 作者:
  • baxiang

nil NULL 空值处理【NSInvalidArgumentException】

1.*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
2.***  setObjectForKey: object cannot be nil (key: key)
3.*** +[NSString stringWithUTF8String:]: NULL cString
4.*** +[NSString stringWithCString:encoding:]: NULL cString
5.*** -[__NSCFConstantString stringByAppendingString:]: nil argument';
6.*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
7.*** - -[__NSDictionaryM removeObjectForKey:]: key cannot be nil'
8.*** -[__NSPlaceholderSet initWithObjects:count:]: attempt to insert nil object from objects[0]'

越界【NSRangeException】

1.*** -[__NSSingleObjectArrayI objectAtIndex:]: index 4 beyond bounds [0 .. 0]
2.***-[NSArray subarrayWithRange:]: range {50, 100} extends beyond bounds [0 .. 2]
3.*** -[__NSArrayM removeObjectsInRange:]: range {50, 10} extends beyond bounds [0 .. 2]
4.*** -[__NSCFConstantString substringFromIndex:]: Index 50 out of bounds; string length 10

安装

RBSafeKit 通过 CocoaPods 提供使用。安装它,只需在 Podfile 中添加以下行

pod "RBSafeKit"

作者:

baxiang, [email protected]

许可:

RBSafeKit 在 MIT 许可证下提供。请参阅 LICENSE 文件以获取更多信息。