The while loop is a great way to run a condition as long as a statement remains true. For instance, see code below.
int counter = 0;
while (counter < 500) {
label.text = [NSString stringWithFormat:@"%@",counter];
counter++;
}
Download WWII Trivia game for iPhone
No comments:
Post a Comment