Migrating to Swift from Android

Book description

In 250 pages, Migrating to Swift from Android gives you—as an experienced Android app developer—all you need to create native iOS apps using the latest Swift programming language. Starting with preparing your Xcode 6.1 IDE and introducing just enough iOS application framework fundamentals, you'll understand how to create meaningful Swift applications for iOS 8 immediately.

After the short IDE setup guide, this book continues by providing guidance on how to translate your existing Android apps to iOS. Every topic comes with a tutorial project; you'll plan and structure your iOS apps following a typical top-down process using Xcode Storyboards. To implement use cases, you'll cover common mobile topics, including user interfaces, managing data, and networking with remote services. As you move through Part 2 of this book, you'll create simple and meaningful iOS apps with rich UI components to handle common CRUD operations locally and remotely.

Part 3 demonstrates the whole porting process by translating a typical mobile app from Android to iOS 8 from start to finish. When you finish reading Migrating to Swift from Android, you'll be an iOS developer as well as an Android developer. And, you will be fully convinced you can create iOS apps just like you do in Android. In most cases, it is a waste not to port your native Android apps to iOS.

Table of contents

  1. Cover
  2. Title
  3. Copyright
  4. Contents at a Glance
  5. Contents
  6. About the Author
  7. About the Technical Reviewer
  8. Acknowledgments
  9. Introduction
  10. Part I: Prepare Your Tools
    1. Chapter 1: Setting Up the Development Environment
      1. Xcode and the iOS SDK
        1. Installing from the Mac App Store
        2. Create an iOS Project Using the Template
      2. Summary
    2. Chapter 2: iOS Programming Basics
      1. The Swift Language in a Nutshell
        1. HelloSwift with Xcode
        2. More About the Swift Language
      2. iOS Project Anatomy
        1. Xcode Storyboard
        2. Object Library and Attributes Inspector
      3. Summary
  11. Part II: A Roadmap for Porting
    1. Chapter 3: Structure Your App
      1. Model-View-Controller
        1. Content View
        2. Content View Controller
      2. Screen Navigation Patterns
        1. Storyboard Segue
        2. Pass Data with a Segue
        3. Container View Controller
        4. Navigation Stack
        5. UINavigationController
        6. Master List with Details Drilldown
        7. Navigation Tabs
        8. Swipe Views
        9. UIPageViewController
        10. Dialogs
      3. Summary
    2. Chapter 4: Implement Piece by Piece
      1. User Interface
        1. UIView
        2. Application Resources
        3. Externalize Strings
        4. Common UI Widgets
        5. Animations
      2. Save Data
        1. NSUserDefaults
        2. File Storage
        3. NSFileManager
      3. Networking and Using Remote Service
        1. Perform Network Operations in Background
        2. RESTFul Service using HTTP
        3. NSURLConnection
      4. Summary
  12. Part III: Pulling it All Together
    1. Chapter 5: Recap with a Case Study
      1. Structure Your App
        1. Draw Storyboard Scenes
        2. Choose a Screen Navigation Pattern
      2. Implement Piece by Piece
        1. Application Resources
        2. Java Class to Swift Class
        3. Java Methods to Swift Methods
        4. RESTful Service and Saving Data
      3. Summary
  13. Index

Product information

  • Title: Migrating to Swift from Android
  • Author(s): Sean Liao
  • Release date: October 2014
  • Publisher(s): Apress
  • ISBN: 9781484204368