Loop in objective c

In this article let’s discuss about Loop in objective c. Let’s go through the following methods without any delay 🙂

Method 1:

#import 

int main(int argc, char * argv[]) {
  @autoreleasepool {
    for (int i = 0; i < 5; i++) {
      // Will print 5 times.
      NSLog (@"Iteration #: %i", i);
    }
  }
}

Hope the above methods works for you. Happy Learning and get back to us Anytime.

Realted Posts : Vc_map type number