Accessing Object in NSArray

/ Published in: Objective C
Save to your folder(s)

Copy this code and paste it in your HTML
  1. NSArray *numbers;
  2. NSString *string;
  4. numbers = [NSArray arrayWithObjects: @"One", @"Two", @"Three",
  5. nil];
  6. string = [numbers objectAtIndex: 2]; // @"Three"

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.