NSArray+Objectwithindex.m 486 Bytes
Newer Older
曹云霄's avatar
曹云霄 committed
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 26 27 28
//
//  NSArray+Objectwithindex.m
//  Lighting
//
//  Created by 曹云霄 on 16/4/28.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "NSArray+Objectwithindex.h"

@implementation NSArray (Objectwithindex)

- (id)objectAtIndex_opple:(NSUInteger)index;

{
    if (index>=self.count) {
        return nil;
    }
    id value = [self objectAtIndex:index];
    
    if (value == [NSNull null]) {
        return nil;
    }
    return value;
}


@end