Skip to content

Instantly share code, notes, and snippets.

@jwhitehorn
Last active Dec 20, 2015
Embed
What would you like to do?
@implementation NSArray (Access)
- (id) firstObject{
if([self count] > 0){
return [self objectAtIndex:0];
}
return nil;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment