Ios development has accumulated 20161024 million learning experience, and ios20161024
I plan to switch to the position of ios development engineer
I watched the video today and wrote the UI several times.
First, summarize the Xcode8 interface.
Navigator ['n' character v character et al.] navigator, browser
Symbol navigator
This navigator provides a method to quickly locate local identifiers in a project, such as the classes and protocols that make up an application.
Debug ~ Debugging
Breakpoint ~ Breakpoint
Report navigator
Delegate [mongod Mongol mongog mongot; (for v.,) mongod Mongol mongoge mongot] delegate storyboard ['st mongor mongob mongord]
Asset ['postgres' t] valuable persons or things; assets
Launch screen startup screen
I. Introduction to the Xcode8 left-side Interface
1. Project navigator
The AppDelegate application proxy file is the delegate for the system to run the application. It defines many global methods, such as program entry and exit, and device rotation.
The ViewController View Controller can create and manage views and manage the data displayed on the view. It can also monitor changes in the device direction and adjust the View Size to adapt to the screen.
The Main. storyboard provides a clear view of all view controllers and their relationships. The story board is also a powerful tool to adapt to multiple resolution devices.
The Assets. cassets resource folder allows you to manage images conveniently. You do not need to add the suffix of the title when reading images. At the same time, images can be encrypted, compressed, and saved to improve the security of the software.
LaunchScreen. storyboard enable scene storyboards to help you design and adapt the startup pages of programs.
Info. plist each program uses the information property list file to store the project configuration information. For example, the program version number, the icon used for display, and the supported device direction.
Products stores the file packages generated after project compilation in the product directory. You can use the [product> compile] command to generate a compressed package suitable for applications released to the Apple Market.
2. symbol navigator
The hierarchy panel shows the list of classes in the project. Click the right arrow on the left side of the class name to view the methods under the class.
3. Find navigator
In the search navigation panel, you can enter a keyword to search for all files in the project and find the documents with this keyword.
4. Issue navigator
The status panel displays code issues in all documents of the project. Yellow indicates a variety of small problems that do not affect the program running. Red indicates a fatal error and must be fixed before running.
5. Debug navigator
Debug panel-you can view the cpu usage, memory usage, real-time status of Hard Disk reading and storage, and network Request status during application running.
6. Breakpoint navigator
Breakpoint debugging panel
7. Report navigator
When breakpoint debugging is performed in the code area, all breakpoints in the project are listed here. Click the button to view the log panel and record all historical actions of the current project.
8. The added group is not a real folder and does not exist on the hard disk.
9. source-control status
Search for the current file and files in version control status
2. Introduction to the right interface of Xcode8
1. Assistant editor
Click the auxiliary editor button to switch the code area to the left and right areas, so that you can easily compare the code file when writing the code or connect to the control on the story board.
//
// ViewController. m
// Calculator implementation
//
// Created by Jason on 16/10/24.
// Copyright 2016 Jason. All rights reserved.
//
# Import "ViewController. h"
@ Interface ViewController ()
@ Property (weak, nonatomic) IBOutlet UITextField * file1;
@ Property (weak, nonatomic) IBOutlet UITextField * file2;
@ Property (weak, nonatomic) IBOutlet UILabel * dosumvalue;
@ End
@ Implementation ViewController
-(IBAction) dosum {
// Obtain the first value
Int num1 = [self. file1.text intValue];
// Obtain the second value
Int num2 = [self. file2.text intValue];
// Calculation Result
Int sum = num1 + num2;
// Assign a value to the control
Self. dosumvalue. text = [NSString stringWithFormat: @ "% d", sum];
// Method 1: collapse the keyboard
// [Self. file1 resignFirstResponder];
// [Self. file2 resignFirstResponder];
// Method 2:
[Self. view endEditing: YES];
}
@ End
Sort it out tomorrow