Migrating to Swift from Web Development
Migrating to Swift From Web Development gives you the ability to create native iOS apps using the latest Swift programming language. Starting with preparing your latest Xcode 6 Integrated Development Environment and introducing just enough iOS application
- PDF / 7,084,425 Bytes
- 248 Pages / 439.43 x 666.14 pts Page_size
- 69 Downloads / 211 Views
Migrating to
Swift from Web Development Sean Liao | Mark Punak
For your convenience Apress has placed some of the front matter material after the index. Please use the Bookmarks and Contents at a Glance links to access them.
Contents at a Glance About the Author������������������������������������������������������������������������������ ix Acknowledgments���������������������������������������������������������������������������� xi Introduction������������������������������������������������������������������������������������ xiii
■■Part 1: Prepare Your Tools���������������������������������������������� 1 ■■Chapter 1: Setting Up the Development Environment�������������������� 3 ■■Chapter 2: iOS Programming Basics�������������������������������������������� 11
■■Part 2: A Roadmap for Porting�������������������������������������� 49 ■■Chapter 3: Structure Your App������������������������������������������������������ 51 ■■Chapter 4: Implement Piece by Piece����������������������������������������� 119
■■Part 3: Finishing Touches������������������������������������������� 187 ■■Chapter 5: Pulling It All Together������������������������������������������������ 189 ■■Chapter 6: Bonus Chapter: Hybrid Apps������������������������������������� 225 Index���������������������������������������������������������������������������������������������� 239
iii
Introduction In 2000, I created my first mobile app for an inventory-tracking project using PalmOS handheld devices. The initial project was a full-staffed team effort that consisted of mobile developers, SAP consultants, supply-chain subject-matter experts, middleware developers, QA testers, architects, business sponsors, and so forth. JavaME came up strong in 2002, followed by Pocket PC/Windows Mobile. I did several mobile projects in which I converted mobile apps to the Pocket PC platform by blindly translating C++ to JavaME to C# .NETCF mobile code. These “translation” efforts prolonged the whole product life cycle. The project achieved a higher return on investment (ROI) by extending the product life because the extra cost of translating mobile code was surprisingly low. Ever since then, I have been translating front-end mobile apps among various mobile platforms. In recent years, most of my work has involved porting mobile apps between Android and iOS and mobilizing existing web sites. Porting apps between iOS and Android is fairly straightforward. This is also true for porting mobile web apps using a RESTful service. Even for traditional non-service-oriented web apps, you still want to follow the same path: reusing existing business cases and software artifacts and reaching a bigger audience to maximize the ROI. One thing is for sure: there are a lot demands for mobilizing existing web apps to reach mobile users. That’s why I decided to write this book. The primary objective of this book is to help experienced web developers leap into native iOS–Swift mobile development. It is easier than you think, and this book will make it even easier
Data Loading...