swift-How to learn Swift quickly

Source: Internet
Author: User

About this article:

1, explain the purpose of this article writing

2. The basic syntax tree of Swift is collated

3, look at the picture composition

I. Purpose of writing

Yesterday read a knowledge column, the author is about "How to study learning." The whole course 1个小时9分钟, it cost me 19 yuan. There is one point of view that I like very much. That is, "to learn new knowledge as a study." So I'm going to put it into action today and learn how to study swift in a good way.

By looking at the information, I put Swift's basic grammar into the following form, easy to see clearly.

Second, the swift basic syntax tree of the arrangement

Third, look at the picture composition

Then I found out that Swift and objective-c are basically the same, and through analysis and comparison, I divide the following learning into three parts:

1, OC commonly used knowledge, but Swift in a different way, or to add/remove some rules. This kind of knowledge because usually high frequency use, as long as the study pay attention to contrast, behind really use Swift's process, will grasp immediately.

For example: Nsarray--and Array

For example: The elements in the Nsarray can be inconsistent, but the elements in the array must remain consistent.

2, there is a class of knowledge, although the OC is also present, but usually the project development process is not often used, but in the "will use, but the theoretical knowledge is not profound." This kind of knowledge, need to first find a similar prototype in OC, and then carry on a serious theoretical study, and the theory and the development of the usual experience of learning, and then to learn the corresponding content in swift, comparative learning.

For example, the concept of "subscript script" in Swift is not addressed to swift syntax in OC. While there are subscript operations like for Nsarray, the subscript script is placed in a more focused and prescriptive position in swift.

3, the third class is certainly not in OC, Swift in the emerging knowledge. This kind of knowledge, still recommended is comparative learning. The first thing you need to figure out is, why isn't there this in OC and now you want to add this in swift? To figure this out, OC's knowledge architecture will be further consolidated and Swift will learn faster.

Next, I will write out three articles separately according to the three points summarized above.

swift-How to learn Swift quickly

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.