除了拥有全球开源库中最悲惨的名称之外,ImplicitSignednessKit是为以下人群设计的工具:
[array count]
或indexPath.row
。@interface NSArray (Signedness)
/**
* The number of objects in the array, type-casted to NSInteger.
*
* @return The number of objects in the array.
*/
- (NSInteger)integerCount;
@end
@interface NSIndexPath (Signedness)
/**
* An index number identifying a section, type-casted to unsigned integer. (read-only)
*/
@property (nonatomic, assign, readonly) NSUInteger unsignedSection;
/**
* An index number identifying a row in a section, type-casted to unsigned integer. (read-only)
*/
@property (nonatomic, assign, readonly) NSUInteger unsignedRow;
@end
(c) 2015 - Giovanni Lodi @mokagio