Possible Duplicate:
How do I iterate over an NSArray?
Here is my code (for example):
NSArray *myArray = [NSArray arrayWithObjects:@"Red", @"Blue", @"Green", nil];
I want loop through the array printing each string to the console.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Let’s find the most complex way, shall we?
Of course, you can always just do it like this: