https://developer.apple.com/library/prerelease/ios/documentation/swift/conceptual/swift_programming_language/GuidedTour.html
點擊圖片中的:
雙擊上面的圖標,系統會打開 Xcode 6 beta
修改42 爲32,右側的結果馬上就變成 32了。。。
神奇。
發現:項目目錄下有個文件
contents.xcplayground
打開一看,牛大了:
1 2 3 4 5 6 | <? 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' /> |
文檔和 代碼混合顯示。。。