Guest User

Untitled

a guest
Jan 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. NSArray* nsArray = [NSArray arrayWithObjects:[NSNumber numberWithInt:1],
  2. [NSNumber numberWithInt:2],
  3. nil];
  4. int cArray[2];
  5.  
  6. // Fill C-array with ints
  7. int count = [nsArray count];
  8.  
  9. for (int i = 0; i < count; ++i) {
  10. cArray[i] = [[nsArray objectAtIndex:i] intValue];
  11. }
Add Comment
Please, Sign In to add comment