Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSArray* nsArray = [NSArray arrayWithObjects:[NSNumber numberWithInt:1],
- [NSNumber numberWithInt:2],
- nil];
- int cArray[2];
- // Fill C-array with ints
- int count = [nsArray count];
- for (int i = 0; i < count; ++i) {
- cArray[i] = [[nsArray objectAtIndex:i] intValue];
- }
Add Comment
Please, Sign In to add comment