So I have an array with some objects (NSString, NSNumber, etc.) and I want to loop through it using a for loop. I thought I'd use the id for the type.
NSArray *myArray = [[NSArray alloc] initWithObjects:@"one string",@"another", @3, nil];
for (id *something in myArray) {
....
}
What's wrong with the for loop above? Why can't I use id and what would be the appropriate "type" to use.
I am a begginer in iOS dev.