由于Swift支持与目标c的混合匹配,因此我们可以使用它来构建部署目标小于iOS 7的应用程序.
来自Swift Prerelease文档在基本设置部分,我读到的是:
Swift is designed to provide seamless compatibility with Cocoa and Objective-C. You can use Objective-C APIs
(ranging from system frameworksto your own custom code) in Swift, and you can use Swift APIsin Objective-C.
This compatibility makes Swift an easy, convenient, and powerful tool to integrate into your Cocoa app
development workflow.
This guide covers three important aspects of this compatibility that you can use to your advantage when
developing Cocoa apps:
? Interoperability lets …Run Code Online (Sandbox Code Playgroud)