"Learning Swift from scratch" study notes (Day)--swift and objective-c mixed programming language

Source: Internet
Author: User
Tags mixed

original articles, welcome reprint. Reprint Please specify: Dongsheng's blog

in the Swift before the advent of language, development IOS or OS X Application Main Use objective-c language, you can also use C and the C + + language, but UI parts can only be used objective-c language.

Select language

Swift after the advent of the language, Apple gives programmers more options to coexist in both languages. Since they coexist, there are 4 ways we can choose:

    • with pure Swift 's reformist approach;

    • with pure Objective-c 's conservative approach;

    • Adopt Swift calls objective-c 's left-leaning reformists mode;

    • Adopt Objective-c calls Swift 's right-leaning reformists mode.

File name extension

in the Xcode and other tools development IOS or OS X applications can write multiple forms of source files that can be used objective-c , C and the C + + language, Swift The format of the source files is more diverse when the language appears. Potential file extension descriptions:

650) this.width=650; "Width=" "height=" 205 "title=" day69-1.jpg "style=" width:600px;height:205px; "src="/HTTP/ S1.51cto.com/wyfs02/m02/7d/13/wkiom1bfvvoy7isfaailyyxwcke072.jpg "border=" 0 "vspace=" 0 "hspace=" 0 "alt=" Wkiom1bfvvoy7isfaailyyxwcke072.jpg "/>


Welcome to follow Dongsheng Sina Weibo@tony_Dongsheng.
Learn about the latest technical articles, books, tutorials and information on the public platform of the smart Jie classroom
650) this.width=650; "Width=" "height=" "title=" Qrcode_for_gh_ca9759a5ef7f_258.jpg "style=" width:150px;height : 150px; "src=" http://s2.51cto.com/wyfs02/M00/7D/12/wKioL1bfveqCxRIuAADC6S3kNXs606.jpg "border=" 0 "vspace=" 0 " Hspace= "0" alt= "wkiol1bfveqcxriuaadc6s3knxs606.jpg"/>
More ProductsIOS,Cocos, mobile Design course please pay attention to the official website of Chi Jie Classroom:http://www.zhijieketang.com
Smart-Jie Classroom Forum Website:http://51work6.com/forum.php


This article is from the "Dongsheng-ios Technical Consultant" blog, make sure to keep this source http://tonyguan.blog.51cto.com/701759/1749105

"Learning Swift from scratch" study notes (Day)--swift and objective-c mixed programming language

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.