Posted By

magickaito on 03/28/11


Tagged

objectivec


Versions (?)

Accessing Object in NSArray


 / Published in: Objective C
 

  1. NSArray *numbers;
  2. NSString *string;
  3.  
  4. numbers = [NSArray arrayWithObjects: @"One", @"Two", @"Three",
  5. nil];
  6. string = [numbers objectAtIndex: 2]; // @"Three"

Report this snippet  

You need to login to post a comment.