Created
July 12, 2012 07:10
-
-
Save skahack/3096405 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(void) { | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
NSString *str = @"hello"; | |
NSLog(@"%@", [str uppercaseString]); | |
NSLog(@"%@", [str performSelector:@selector(uppercaseString)]); | |
NSLog(@"%@", [str performSelector:NSSelectorFromString(@"uppercaseString")]); | |
[pool release]; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment