a guest Jun 16th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- NSArray *array;
- [array objectAtIndex:0]; // <- Will throw an error
- RecordingLocation* closest;
- //find the closest recording location
- for (...)
- //try to find the closest object...
- //suppose we don't find anything so closest is never set.
- if (closest!=nil)
- NSLog(@"Closest: %f,%f",closest.x,closest.y);
- NSArray *arr = [NSArray arrayWithObjects:@"@dog","@cat",nil];
RAW Paste Data