Skip to content

Instantly share code, notes, and snippets.

@vietbuiminh
Created July 29, 2015 15:45
Show Gist options
  • Save vietbuiminh/30a3c1e744bea24b9ac1 to your computer and use it in GitHub Desktop.
Save vietbuiminh/30a3c1e744bea24b9ac1 to your computer and use it in GitHub Desktop.
Try Objective c "Hello World"
//Try-Objective-C-by-Viet.
//|......................|
//"This is the hello world Objective C"
@interface Hello : NSObject
//the void to say
- (void) say;
@end
//The implementation to work the hello world object
@implementation Hello
//the void..
- (void) say {
NSLog(@"Hello, World!");
}
@end
int main(int argc, char *argv[])
{
@autoreleasepool {;
[[Hello new] say];
}
return 0;
}
//Thank to look this code
//This is just the small foundation
//|................................|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment