Learning Swift from scratch (DAY4)--writing Swift with the playground tool

Source: Internet
Author: User

Original articles, welcome reprint. Reprint Please specify: Dongsheng's Blog

with Playground Write Swift The purpose of the code is to learn, test algorithms, validate ideas, and visualize the results of the operation, not to make the final program compile and publish.

playground Program run ① area is code writing view, ② area is run result view, ③ area is timeline view, ④ area is console view, use print   650" this.width=650; "Width=" 25 " height= "title=" Image1.png "style=" width:25px;height:20px "src=" http://s2.51cto.com/wyfs02/M01/7B/67/ Wkiom1bnlbcwhbzjaaaea99-lre020.png "border=" 0 "vspace=" 0 "hspace=" 0 "alt=" wkiom1bnlbcwhbzjaaaea99-lre020.png "/>     button to hide and display the console.

650) this.width=650; "Width=" "height=" 311 "title=" image2.jpg "style=" width:500px;height:311px; "src="/HTTP/ S3.51cto.com/wyfs02/m01/7b/67/wkiom1bnk2riopc8aaurgxbvktu173.jpg "border=" 0 "vspace=" 0 "hspace=" 0 "alt=" Wkiom1bnk2riopc8aaurgxbvktu173.jpg "/>

by default, the timeline view is not displayed, can be opened through the Assistant editor Playground time Axis view. In the toolbar that appears, click 650) this.width=650; "title=" Image3.png "src=" http://s5.51cto.com/wyfs02/M02/7B/67/ Wkiom1bnldtwqtcqaaaa5h5gb_y277.png "alt=" Wkiom1bnldtwqtcqaaaa5h5gb_y277.png "/> Open the assistant editor, There is a timeline view in the assistant editor.

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; "title=" 00.png "src=" http://s3.51cto.com/wyfs02/M02/7B/67/wKiom1bNK5rSRL5KAAAs2MBEZnc764.png "alt=" Wkiom1bnk5rsrl5kaaas2mbeznc764.png "/>
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://2009315319.blog.51cto.com/701759/1744588

Learning Swift from scratch (DAY4)--writing Swift with the playground tool

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.