NSMutableArray *array =[NSMutableArray array]; for (int i= 1; i<=100; i++) { [array addObject:@(i)]; } NSLog(@"array = %@",array);