I am looking for a way to run code X times, using the same piece of code.
Say I wanted to repeat the code:
NSLog(@"repeat");
numberX amount of times:
int numberX;
without having to change any code depending on the value of numberX.
How would this be done? If you need any more explaining, or an explanation of what I am trying to achieve with the code, please comment.
You can use a simple for loop