[Project 1 & #183; live broadcast]☞1. Create a project and configuration, and broadcast a project

Source: Internet
Author: User

[Project 1 live broadcast]☞1. Create a project and configuration, and broadcast a project
1. Create a project directory

Specify a directory when creating a project. Specify the directory to define your own architecture. The structure is well-defined to facilitate searching.

Create the Classes directory (which contains the custom Classes) and continue to create the directory:

  1. Show: Display Module, mainly responsible for display

    • View: View layer

    • ViewController: controller Layer

    • Model: Model layer

    • Handler: The business processing layer that specifically processes network requests and data parsing to reduce the ViewController weight.

  2. Live: playback and Live broadcasting Module

  3. Me: My modules

  4. Launch: playback module

  5. Helper: tool module

    • Tools: real Tools (such as user Tools and cache Tools)

    • Category: Category

  6. Lib (Vendor): a third-party class library

  7. Other: Others (put proxy class, macro)

  8. NetWork (NetManager): a NetWork Tool

  9. Base: Basic module (inherits the basic class to facilitate global settings)

2. Integrate CocoaPods
  1. Cd to the project directory,pod initGenerate a Podfile

  2. Import common third-party libraries:

1. Search for third-party libraries:Pod search 'third-party databases'

  

2. Copy and import the latest version of commands

  

Import other third-party libraries in the same way:

Pod 'sdwebimage', '~> 3.8.1'
Pod 'masonry', '~> 1.0.1'
Pod 'yykit', '~> 1.0.7'

............

3. Executepod install

3. Configure the pch File

Configure pch. Otherwise, no other computer can be found.

Search for the Prefix Header under Build Settings and add the path of the. pch file:

Absolute path: $ (SRCROOT)/$ (PRODUCT_NAME)/PrefixHeader. pch

Relative Path: $ (PRODUCT_NAME)/PrefixHeader. pch

   

Iv. Configuration icon and start page 1. Configure the application icon

  

2. Configure the startup page

   

   

   

   

   

  

  This is a success!

Tip: If the startup image does not appear, check whether the size of a piece is correct. If not, uninstall the APP and run the installation again to see the effect.

5. Set the class name prefix and define common macros 1. Set the prefix of the custom class

  

2. define common macros

 

Related Article

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.