IOS8Preview-xCode_6
what's new
What's new in xCode 6
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.
xCode6 介绍了一种完全彻底的新方式来设计和编译软件,Swift是一种基于Cocoa和Cocoa Touch 的创新的开发语言,结合其他的开发工具,Swift使得编程成为一中愉快的生活体验。这种快乐的体验也贯穿于整个xCode6。可以实时渲染的 用户界面构造器 能够将你手写的代码再设计容器中展现,你对Code的任何修改也都会立即反映出来。 新的编译器会将视图中所有的元素用可视化的3D来展示,这样会让你更加容易的理解你的视图是由哪些元素组成的以及更加容易鉴别堆叠或裁剪的视图。
Swift
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语法中显示。
Playgrounds
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.