Created
March 16, 2014 05:04
-
-
Save wnoguchi/9578791 to your computer and use it in GitHub Desktop.
Objective-C sample.
This file contains 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
#import <Foundation/Foundation.h> | |
#import "MyTestClass.h" | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
// insert code here... | |
NSLog(@"Hello, World!"); | |
NSLog(@"こんにちはー!!"); | |
// MyTestClass *obj = [MyTestClass alloc]; | |
// obj = [obj init]; | |
MyTestClass *obj = [[MyTestClass alloc] init]; | |
[obj setMessage:@"Hello, and GoodBye."]; | |
[obj printMessage]; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment