The beginning iOS8 Programming with Swift 中文翻译 - 1
作为土逼的自己英文不是一般烂,不过想试试坚持读一下能不能读出来..哈哈.开始:
Preface 前言
During the WWDC 2014, Apple surprised every iOS developer by launching a new 从2014年的WWDC大会之后,苹果发布了一款叫做swift的新语言着实惊艳了每一位iOS开发者
programming language called Swift. I didn’t expect a new programming language to come 我从未期望过这门新的语言会在今年出版
out this year. I was expecting to see new APIs for iOS 8 along with a newer version of 我当时期待的是看到针对iOS8更新的新的API以及新版本的Xcode
Xcode. This really surprised me and my friends too. I remember what one of my friends 苹果的这一做法让我和我的朋友相当惊喜,我记得我有一个朋友告诉我
said to me. He told me, “You will have to rewrite your whole book again!” 他说:你需要把你的书全部重写一遍.
Seriously! That’s a lot of work. So here comes the new book. 坦白说(Seriously,是认真地,严肃的意思,但是我想这么翻译),那真的是好大量的工作,所以就有了这本新书
The previous edition of the book was basically an assortment of tutorials, which were 这书之前的版本算是在我部落格已经发布的一个基础的分类的整理(学习指南)
published in my blog. It covered everything from the fundamental programming 她基本涵盖了基础知识及进阶知识的全部
techniques to more advance ones, where each programming technique was accompanied 而且这里面包含了一个app全部的知识点
by a fully working app. I am really grateful that the practical approach has gained very 我的这些实用方法得到非常好的反馈,对此我感到真的很开心.
positive feedback.
The real question was whether I should just rewrite the whole book for Swift and iOS 8? 但是问题是我应该为Swift还是iOS 8重写整本书
I have been programming in Swift since its beta release. Swift is more approachable and 我从测试版本就开始用swift编写程序,swift是一种对于初学者学习起来更易亲近的语言
newbies will find it easier to learn. I asked myself how I could take advantage of it and 我曾经问过自己,我怎么才可以使这本书更有前瞻性,比之前更好?
make the book much better than before, so that more individuals could learn iOS 最终使得更多的人可以学习iOS开发.
programming.
I know many readers have an app idea but don't know where to begin. Hence, this new 我知道很多读者空有一个好的关于app的想法却不知道如何下手
book is written with this in mind. It covers the whole aspect of Swift programming and you 因此,这本书主要是围绕着这个来写的.她涵盖了swift应用程序的方方面面
will learn how to build a real app from scratch. You’ll first learn the basics of Swift, then 而且你可以学习到如何利用编程工具做出一个真正的app,你最开始讲学习到swift基础
prototype an app, and later add some features to it in each chapter. After going through 然后了解到app的一些标准,然后在每个章节会添加一些有特色的东西
the whole book, you’ll have a real app. During the process, you will learn how to exhibit 最后通过整本书的学习,你将获得一个真正的app,通过这个过程
data in table view, customize the look & feel of a cell, create animations, work on maps, 你将学习到怎么在tableview展示数据,自定义cell的观感以及用户体验,创建动画
save data in local database, CloudKit integration, use TestFlight to arrange beta test, etc. 如何使用地图,本地数据存储,cloudkit集成,数据排列测试(这点不会翻译)等等.
This new book features a lot of hands-on exercises and projects. You will get the 新书中会有很多辅助的项目与练习,你将会有很多机会去写代码
opportunities to write code, fix bugs and test your app. Although it involves a lot of work, it 修复bug以及测试你的app,虽然这有很大的工作量,但是这都是有益的经验
will be a rewarding experience. I believe it will allow you to master Swift and iOS 8 我相信这将让你成为swift及iOS8方面的大师级人物
programming, most importantly, release an app on the App Store. 当然,最重要的是,把你的app上架到苹果商店.