ViewController.h
@property (strong, nonatomic) NSMutableArray *numbers;
ViewController.m
- (void)viewDidLoad
{
[super viewDidLoad];
for (int counter = 0; counter < 10; counter++) {
[numbers addObject:counter];
}
}
I tried to fill up the array numbers with a for loop counting from 0 - 9 but I don't know how to do so. Any help would be appreciated!