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



打开一看,牛大了:


?

1
2
3
4
5
6
<?xmlversion="1.0"encoding="UTF-8"standalone="yes"?>
<playgroundversion='3.0'sdk='macosx'allows-reset='YES'>
    <sections>
        <documentationrelative-path='section-1.html'/>
        <documentationrelative-path='section-2.html'/>
        <codesource-file-name='section-3.swift'/>


 

文档和 代码混合显示。。。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章