Objective-c Study Notes (i)

Source: Internet
Author: User

How to master a high-level programming language:(here specifically objective-c)

bottom-up thinking: down, how to think about the process of running the program from the bottom of the machine.

Focus on language constructs, compilation transformations, memory models, run-time mechanisms

Abstract thinking: upward, when the complexity of the software is high, the design needs to be abstracted into a code program.

Focus on object-oriented, component encapsulation, design patterns, architectural patterns

"Space-time Man" Trinity Analysis method:

Time: Complie-time VS run-time Time node division between compile time and run time

Space: Stack VS heap (heap) to differentiate stacks and heaps, because it determines the lifetime of the program

People: Programmer VS Compiler/runtime/framework distinguishes which code is written by itself and which is written by the compiler/runtime/framework.

Two kinds of development methods:

Compiler (clang or GCC) command line

Clang-fobjc-arc HELLOWORLD.M

Xcode Project

Develop in project units

must-see documents:

Programming with OBJECTIVE-C:

https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/

iOS zone:

https://developer.apple.com/library/ios/navigation/

Apple Developer Conference WWDC

Practice:

1. Print out HelloWorld with clang compilation

* * Write HELLOWORLD.M

* * Enter the folder where the file is located on the terminal, input Clang-fobjc-arc helloworld.m-o Hello

Generate a hello file after compiling with the./hello to execute

2. Print out HelloWorld with Xcode compilation

Objective-c Study Notes (i)

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.