萤石云 iOSSDK,移植跨平台相关工程
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
//  NSArray+DDKit.m
//  DDCategory
//
//  Created by DeJohn Dong on 15/4/25.
//  Copyright (c) 2015年 DDKit. All rights reserved.
//
 
#import "NSArray+DDKit.h"
 
@implementation NSArray (DDKit)
 
- (id)dd_objectAtIndex:(NSUInteger)index {
    if (index >= [self count]) {
        return nil;
    }
    
    id value = [self objectAtIndex:index];
    if (value == [NSNull null]) {
        return nil;
    }
    return value;
}
 
@end