Swift Resource Library--development tool Playground

Source: Internet
Author: User
Tags constant

Playground is better than being able to write code while you see the value of the output constant variable. You do not need to run the emulator.


Let's try out the use of the tool.

Open the Xcode6 development tool and select Get started with a playground.


The following figure shows a playground program run interface, where the ① area is the code authoring area, the ② area is the run result area, and the ③ area is the timeline (timeline) area. The timeline allows you to see the results of the program running from top to bottom, and the results of running at different time periods can be presented to developers through text, graphs, and graph charts.


Playground interface



This feature allows you to enter code while you see the value of a constant or variable.

Save As Swiftplayground.playground, click Create to enter the editor.

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.