
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
24 lines
321 B
Objective-C
24 lines
321 B
Objective-C
//
|
|
// NSArray+Safe.m
|
|
// YUMI
|
|
//
|
|
// Created by YUMI on 2022/11/11.
|
|
//
|
|
|
|
#import "NSArray+Safe.h"
|
|
|
|
@implementation NSArray (Safe)
|
|
|
|
-(id)xpSafeObjectAtIndex:(NSUInteger)index{
|
|
if ([self isKindOfClass:[NSArray class]]){
|
|
if (self.count){
|
|
if (self.count>index){
|
|
return self[index];
|
|
}
|
|
}
|
|
}
|
|
return nil;
|
|
}
|
|
|
|
@end
|