UI Basics-Initial iOS development

Source: Internet
Author: User

Understanding of Storyboard File

    • Used to describe the software interface
    • By default, Main.storyboard is loaded when the program starts
    • When loading storyboard, the controller interface that the arrows refer to is created and displayed first

Ibaction and Iboutlet

    • Ibaction: The essence is void, can make the method has the function of the connection
    • Iboutlet: Ability to connect attributes

The problem of the storyboard connection is easy to appear

    • The method code of the connection was deleted, but the wire was not removed.
      • May occur method cannot find error
      • Unrecognized selector sent to instance
    • The property code of the connection was deleted, but the wire was not removed.
      • Setvalue:forundefinedkey:] This class was not key value coding-compliant for the key

Understanding of Uiviewcontroller (Controller)

    • A controller is responsible for managing a large interface
    • The controller is responsible for interface creation, event handling, etc.

Class extension

    • Format
      1 @interface class name () 2 /*  */3@end
    • Role
      • Add additional property and method declarations for a class
      • can be written in. h and. m files

Project Properties

    • Product Name
      • Software name, product name, project name
    • Organization Name
      • Company name, organization name
    • Organization Identifier
      • The company's unique identity
      • The company's domain name is generally anti-write, such as Com.lz
    • Bundle Identifier
      • Unique identification of the software
      • Typically organization Identifier + Product Name

UI Basics-Initial iOS development

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.