ios-start developing iOS app apps-Part two building applications

Source: Internet
Author: User
Tags uikit

The second part builds the application

1, application development process

2, design the user interface

3, defining the interaction

4, tutorial: concatenation diagram

1, application development process
    • Defining concepts
    • Designing the User interface
    • Defining interactions
    • Implementing Behavioral Consolidation Data
      • object is the cornerstone of your application
      • Class is the blueprint for an object
      • Object communication via Message
      • Protocol Definition message Send contract
    • Consolidate data

Message communication:

In Objective-c, although there are several ways to send messages between objects, the most commonly used method is to use the basic syntax of square brackets. If you have an object Someperson for the person class, you can send a message to it SayHello as follows:
[Someperson SayHello];
The reference Someperson on the left is the recipient of the message. The message SayHello to the right is the name of the calling method. In other words, a SayHello message is sent to Someperson when the above code line is executed.

Protocol definition message Send contract:

A protocol defines a set of expected behaviors for an object under a given condition. It takes the form of a programmable interface (any class can be chosen to implement). By using protocols, two of classes that are slightly associated because of inheritance can communicate with each other to accomplish a goal, such as parsing an XML code or copying an object.

If a class can provide behavior that is used for other classes, the class can declare a programmable interface to supply the behavior anonymously. Any other class can choose to adopt the Protocol and implement one or more methods of the Protocol to take advantage of this behavior

2, Design user Interface 3, define the interaction

View Hierarchy

The Uikit View object is an instance of the UIView class or one of its subclasses. The Uikit framework provides many types of views to help you render and organize your data.

UIKit can be broadly divided into the following seven common types: content, set, control, column, input, container, modal

3, defining the interaction

View Controller

ios-start developing iOS app apps-Part two building applications

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: 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.