Common Files in IOS projects

Source: Internet
Author: User

iOS notes-Common files in a project

After creating a new project, there are so many files, here are some of the main ones.

1. File name

(1) appdelegate

UIApplication agent, the app receives interference when it handles system events. For example, to call, memory warning, app launch.

(2) Viewcontroller

Controller, you can create a visual interface in three ways with the xib\storyboard\ code.

This visual interface will be displayed in the Uiwindowz.

(3) Mainstoryboard

Automatically created by the system

(4) Images.xcassets

Pictures used by the storage program

(5) Launchscreen.xib

The interface displayed during program opening

(6) Supporting Files

(6.1) Info.plist

Key Features: All configurations during the entire project run are important. So when we create plist ourselves, we should be careful not to duplicate names.

(6.2) MAIN.M

Key Features: entry for project initiation.

(6.3) Prefix.pch

Key features: Very important files are used to store a number of macros used throughout the project to include header files that can be used throughout the project.

2. Project name + Test

Key Features: Unit testing

3. A number of important objects

UIApplication:

(1) He is a symbol of the application, each application has its own uiapplication, it is a singleton.

(2) is the first object created by an application.

(3) He can perform some application-level operations, such as setting the number of messages applied.

UIWindow:

UIWindow is a special kind of uiview, usually in one app only one Uiwindow,ios program is started, the first view control created is UIWindow, then the controller's view is created, Finally, the controller's view is added to the UIWindow, so the controller's view is displayed on the screen.

Common Files in IOS projects

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.