We learnProgramWe all know that, in any language, we will break into an entry program with inertia! Hello world!
This is also true for iOS! Not much nonsense!
Next I will introduce it to you! The first hello wolrd program in IOS!
First, create a project:
1. Open xcode and select to create a project.
2. Select the created type: Because we demonstrate the program on the iPhone, I want to select iOS and then select single view application-> next
3. Enter the project information, such as the company name of the project name. Continue
4. Select the project storage address: storage path
5. Project Creation successful page:
6. Find the. Xid file in the project file. The name here is viewcontroller. XIB.
7. Create a label control: drag the label directly in the lower right corner to the work zone.
8. Modify the properties of the label control:
9. run the test!
Successful!
The Hello world example is introduced here! In the next example, I will introduce how to add button components!
(Based on this example)