swift开发:试玩 Apple 网站的 playground
https://developer.apple.com/library/prerelease/ios/documentation/swift/conceptual/swift_programming_language/GuidedTour.html
点击图片中的:
Open Playground
下载代码解压缩
双击上面的图标,系统会打开 Xcode 6 beta
修改42 为32,右侧的结果马上就变成 32了。。。
神奇。
发现:项目目录下有个文件
contents.xcplayground
打开一看,牛大了:
?
123456<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
standalone
=
"yes"
?>
<
playground
version
=
'3.0'
sdk
=
'macosx'
allows-reset
=
'YES'
>
<
sections
>
<
documentation
relative-path
=
'section-1.html'
/>
<
documentation
relative-path
=
'section-2.html'
/>
<
code
source-file-name
=
'section-3.swift'
/>
文档和 代码混合显示。。。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。