ios swift 多语言
At about 10am (PST) today we had a bit of an unusual traffic spike here at SitePoint HQ. A 2002 article about Swift 3D v3 quickly became our most popular article, and as I write this about six hours later it remains in the second-most clicked article today.
今天大约上午10点(PST),SitePoint总部的流量出现了一些异常。 2002年有关Swift 3D v3的一篇文章Swift成为我们最受欢迎的文章,大约六个小时后,当我写这篇文章时,它仍然是今天点击次数第二高的文章。
Those of you who have kept up with the announcements coming out of Apple’s Worldwide Developers Conference will have probably worked out why: one of the biggest things Apple announced this morning was a new programming language, Swift.
那些一直在关注苹果全球开发者大会上发布的公告的人,可能会弄清楚原因:苹果今天早上宣布的最大的事情之一就是一种新的编程语言Swift 。
Recruiters: Now looking for engineers with 5 years of Swift experience!
招聘人员:现在正在寻找具有5年Swift经验的工程师!
— I Am Devloper (@iamdevloper) June 2, 2014
— I Am Devloper(@iamdevloper) 2014年6月2日
After 20 years of favoring Objective-C, Apple is now striking out on its own with a language apparently years in the making. The new language emphasizes speed (hence the name), safety and an interactive approach to development. But devs nervous about having to move wholesale into a new language can be reassured that Swift code can work alongside the old Objective-C in the same app.
经过20年的对Objective-C的青睐,苹果公司现在显然已经在用自己的语言来制造自己的产品了。 新语言强调速度(因此得名),安全性和交互式开发方法。 但是可以放心,开发人员不必将批发语言转换为新语言,因为Swift代码可以与旧的Objective-C在同一应用程序中一起使用。
I have 24 years of Swift experience.
我有24年的Swift经验。
— InfoSec Taylor Swift (@SwiftOnSecurity) June 2, 2014
— InfoSec Taylor Swift(@SwiftOnSecurity) 2014年6月2日
A brief list of features, from Apple’s introduction to the language:
简短的功能列表,从Apple的介绍到该语言 :
Swift pairs increased type safety with type inference, restricts direct access to pointers, and automatically manages memory—making it easy to create secure, stable software. Swift对通过类型推断提高了类型安全性,限制了对指针的直接访问,并自动管理内存-轻松创建安全,稳定的软件。 Swift includes optionals, generics, tuples, and other modern language features. Inspired by and improving upon Objective-C, Swift code feels natural to read and write. Swift包括可选,泛型,元组和其他现代语言功能。 受Objective-C的启发和改进,Swift代码的读写感觉很自然。 Take advantage of powerful pattern matching in Swift to write simple, expressive code. Format strings naturally with string interpolation. Use frameworks like Foundation and UIKit directly from Swift. 充分利用Swift中强大的模式匹配功能,编写简单,富有表现力的代码。 使用字符串插值自然格式化字符串。 直接使用Swift的Foundation和UIKit等框架。 Use playgrounds to experiment with new technologies, analyze problems, and prototype user interfaces. 使用游乐场来试验新技术,分析问题并为用户界面提供原型。 The Swift compiler applies advanced code analysis to tune your code for performance, letting you focus on writing great apps instead of on implementing complex optimizations. Swift编译器应用高级代码分析来调整代码的性能,使您专注于编写出色的应用程序,而不是实现复杂的优化。You can pick up an iBook introducing Swift from the iBookstore. If you’d prefer to get stuck into the language, you can get started by downloading the Xcode 6 beta.
您可以从iBookstore中获取介绍Swift 的iBook 。 如果您想坚持使用该语言,可以通过下载Xcode 6 beta开始 。
What do you think of Swift? Let us know in the comments below.
您如何看待Swift? 在下面的评论中让我们知道。
翻译自: https://www.sitepoint.com/swift-apples-new-language/
ios swift 多语言
相关资源:ios-Swift多国语言本地切换方法升级Swift4.0.zip