Start developing iOS apps today.pdf parti:introduction Knowledge points Summary

Source: Internet
Author: User

Parti:introduction Summary (This chapter mainly introduces tools for app development and a review of some object-c concepts)

(next to the following bold words for personal understanding, if not also please point out)

Objects (object) package data with related behavior;

A Class (Class) describes the behavior and properties common to any particular type of object.  

You do an object by creating an instance (object instance) of a particular class.

When you allocate (assign) an object, you set aside enough memory for the object and set all instance variables to Zer O

initialization (Initialize) sets an object ' s initial state-that are, its instance variables and properties-to reasonable V Alues and then returns the object.  

Class Inheritance (Inheritance of classes), the idea of a class inherits behaviors from a parent class

When one class inherits from another, the Child-or subclass (subclass)-inherits all the behavior and properties defined By the parent.

Objects interact by sending the other messages at runtime. In objective-c terms, the one object sends a message to another object by calling a method (calling methods) on that obj Ect.  

If you have a object Someperson of class Xyzperson, you can send it the SayHello message like this:

[Someperson SayHello]; (Personal understanding on the left is the object, the right is the calling object method)  

A protocol (protocol) defines a set of behaviors that is expected of an object in a given situation.  

Automatic Reference Counting (ARC) makes memory management straightforward by getting the compiler-keep track of who ow NS an object;

An instance of the UIApplication class, called the Application object (Applied object)

An instance of the Appdelegate class, called the app delegate (application delegate).

The app delegate creates the window where your app's content is drawn and provides a place to respond to state transitions Within the app.

As your app starts up, the application object calls predefined methods on the app delegate to give your custom code a Chan Ce to does its job

The app delegate interface contains a single: window. The delegate keeps track of the windows in which all of the your app content is drawn.

A storyboard is a visual representation of the app ' s user interface, showing screens of content and the Transitio NS between them. The flow-or Story-that drives your app is storyboards to lay out.

Start developing iOS apps today.pdf parti:introduction Knowledge points Summary

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.