Learn a new language, our first step in accordance with international practice is often: write a program output: Hello,world.
When learning C language, use the following program to print out "Hello,world":
#include <stdio.h>int main () {printf ("hello,world\n"); return 0;}
The first C language program contains: standard library information, main function, and call library function printf function printout: Hello,world
Similarly, when learning objective-c, the implementation of my first program target is printed out "Hello,world" by this program:
#import <foundation/foundation.h>int Main () {NSLog (@ "Hello,world"); return 0;}
In contrast to the two small programs, their bodies are the same, or the code is the same way of thinking, just different in detail, after compiling, linking, and then running the printout
Hello,world
A good day has begun!
First lesson in school-documenting the path to iOS development