NSArray(FWSafeType)
@interface NSArray<__covariant ObjectType> (FWSafeType)
/**
安全获取对象
@param index 索引
@return 对象
*/
- (nullable ObjectType)fw_objectAtIndex:(NSInteger)index NS_REFINED_FOR_SWIFT;
/**
安全获取子数组
@param range 范围
@return 对象数组
*/
- (nullable NSArray<ObjectType> *)fw_subarrayWithRange:(NSRange)range NS_REFINED_FOR_SWIFT;
@end
Undocumented
-
安全获取对象
Declaration
Objective-C
- (nullable ObjectType)fw_objectAtIndex:(NSInteger)index;
Parameters
index
索引
Return Value
对象
-
安全获取子数组
Declaration
Objective-C
- (nullable NSArray<ObjectType> *)fw_subarrayWithRange:(NSRange)range;
Parameters
range
范围
Return Value
对象数组