Showing posts with label Array. Show all posts
Showing posts with label Array. Show all posts

Tuesday, December 6, 2011

Array with Integer

Below code loads integer into Array:

    NSMutableArray *array = [[NSMutableArray allocinitWithCapacity:99];
    for (int n = 0; n < 99; n++)
    {
        [array addObject:[NSNumber numberWithInteger:n]];
        NSLog(@"%@", [array objectAtIndex:n]);
    }