iOS NSMutableArray添加NSInteger元素

NSMutableArray *array = [[NSMutableArray alloc] init];

NSInteger num = 7;

NSNumber *number = [NSNumber numberWithInt:num];

[array addObject:number];

NSLog(@"Array %@",array);

posted @ 2016-07-02 14:58  柳仙慧子  阅读(2963)  评论(0编辑  收藏  举报