Migrating to Swift from Web Development

Book description

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 framework fundamentals, you'll understand how to create a simple but meaningful Hello Swift application for iOS 8 immediately.

After the short IDE setup guide, this book will show you how to structure your iOS project from an existing mobile web app. Every topic comes with a tutorial project that you will create by yourself. You'll plan and structure your iOS apps using Xcode Storyboard, implementing use cases with detailed screens, and learn about managing data and working with remote services. Finally, you’ll experience a recap of the whole porting process by translating a mobile web app to iOS 8 from start to end.

When you finish reading Migrating to Swift from Web Development, you'll be an iOS developer as well as a front-end web developer.

Table of contents

  1. Cover
  2. Title
  3. Copyright
  4. Contents at a Glance
  5. Contents
  6. About the Author
  7. Acknowledgments
  8. Introduction
  9. Part 1: Prepare Your Tools
    1. Chapter 1: Setting Up the Development Environment
      1. Xcodeand the iOS SDK
        1. Installing from the Mac App Store
        2. Creating 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
  10. Part 2: 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 Drill-Down
        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. Common UI Widgets
        4. 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
  11. Part 3: Finishing Touches
    1. Chapter 5: Pulling It All Together
      1. Structure Your App
        1. Draw Storyboard Scenes
        2. Choose a Screen Navigation Pattern
        3. Business Object
        4. Application Resources
      2. Implement Piece by Piece
        1. RentalProperty
        2. EditTextViewController
      3. Summary
    2. Chapter 6: Bonus Chapter: Hybrid Apps
      1. Bundle Web Contents
      2. Invoke JavaScript Function
      3. Invoke Native Code
  12. Index

Product information

  • Title: Migrating to Swift from Web Development
  • Author(s):
  • Release date: March 2015
  • Publisher(s): Apress
  • ISBN: 9781484209318