Tutorial by Examples

This example shows how to use fast enumeration in order to traverse through an NSArray. When you have an array, such as NSArray *collection = @[@"fast", @"enumeration", @"in objc"]; You can use the for ... in syntax to go through each item of the array, automatical...
This example shows how to use fast enumeration in order to traverse through an NSArray. With this way you can also track current object's index while traversing. Suppose you have an array, NSArray *weekDays = @[@"Monday", @"Tuesday", @"Wednesday", @"Thursday&quot...

Page 1 of 1