Programming Fundamentals/Introduction/Objective-C: Difference between revisions

From Wikiversity
Jump to navigation Jump to search
Content deleted Content added
Creating
(No difference)

Revision as of 19:10, 30 October 2016

hello.m

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[])
{
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
        NSLog (@"Hello world!");
        [pool drain];
        return 0;
}

Try It

See Also