IOS8Preview-xCode_6編程
what's newcanvas
What's new in xCode 6app
Xcode 6 introduces a radically new way to design and build software. Swift is an innovative new programming language for Cocoa and Cocoa Touch and, when combined with Xcode tools, makes programming a delightfully live experience. This same live experience permeates throughout Xcode 6. Live rendering within Interface Builder displays your hand-written UI code within the design canvas, instantly reflecting changes you type in code. And the new view debugger explodes all the UI layers into a 3D visualization, making it easy to understand how your interface is composed, and identify overlapping or clipping views.ide
xCode6 介紹了一種徹底完全的新方式來設計和編譯軟件,Swift是一種基於Cocoa和Cocoa Touch 的創新的開發語言,結合其餘的開發工具,Swift使得編程成爲一中愉快的生活體驗。這種快樂的體驗也貫穿於整個xCode6。能夠實時渲染的 用戶界面構造器 可以將你手寫的代碼再設計容器中展示,你對Code的任何修改也都會當即反映出來。 新的編譯器會將視圖中全部的元素用可視化的3D來展現,這樣會讓你更加容易的理解你的視圖是由哪些元素組成的以及更加容易鑑別堆疊或裁剪的視圖。工具
Swiftoop
Xcode6 has deep support for Swift throughout. It’s easy to create a brand new app using 100% Swift code, add new Swift code or frameworks to existing apps, and view documentation in either Swift, Objective-C, or both. All the popular affordances such as 「Jump to Definition」 or 「Open Quickly」 work equally well with Swift, and even Objective-C header definitions can be shown in Swift syntax.開發工具
Xcode6對Swift進行了深度的支持。 很常容易的使用100%的Swift語言建立一個全新類型的應用程序,添加Swift代碼或者類庫到一個已經存在的應用程序中,和查看Swift,Objective-c或者兩個的文檔。全部流行的功能可見性都對Swift支持,甚至 Objective-C 頭文件中的定義也能夠再Swift語法中顯示。優化
Playgroundsui
Playgrounds enable the interactive experience of a script language, even though Swift compiles to highly-optimized(高度優化) native code. Type a line of code and the result appears immediately. If your code runs through a loop, add that line of code to the timeline assistant(助手、助理、輔助的) editor to watch its progression(進展). Display variables in a graph, inspect each step when drawing a view, or watch an animated SpriteKit scene. When you’ve perfected your code in the playground, simply move it into your project. Playgrounds documentation includes tutorials that you can open in a playground, providing an interactive worksheet for experimentation.spa