Swift 2 Cookbook

 
 
Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 30. März 2016
  • |
  • 400 Seiten
 
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78588-246-3 (ISBN)
 
Over 50 hands-on recipes to help you create apps and build your portfolio of projects in Swift 2About This BookConceptualize and write effective applications for iOS/OS X using Swift 2Make the most of Swift's diverse features, from configuring your projects to using design patterns and different types of databasesA fast-paced, comprehensive guide equipped with lots of tips and tricks to help you learn about Swift programming quicklyWho This Book Is ForIf you are an Apple developer who wants to use Swift to build your applications, this book is for you. With Swift 2 going open source, this book will also help web developers. Some understanding of Objective-C or Swift would be helpful but is not required.What You Will LearnInstall Xcode from the App StoreUpgrade your existing Swift 1.2 code to Swift 2.0Use the standard Swift 2.0 library and collectionsWork with structs, generics, and design patterns in SwiftUse the new markup language to provide rich documentation of codeWrite a book using Playgrounds and SwiftDebug and test your code using XcodeIntegrate your code with Objective-C and use assembly code with SwiftLeverage the Objective-C runtime when compiling Swift using associated objectsIn DetailSwift is Apple's innovative development language that was introduced at the WWDC (WorldWide Developers Conference) 2014 alongside Xcode 6 and iOS 8. This user-friendly language is packed with modern features to make programming easier and fun, with a lot of flexibility. With Swift 2 comes even better performance, a new error handling API, protocol extensions, and super support for availability checking.This book will equip you with all the practical programming aspects of Swift 2. It covers the important features and paradigms that Swift provides to developers. You will begin by installing Xcode from the App Store and using Swift as an interpreter. Then, you will see how you can upgrade your existing Swift 1.2 code to Swift 2.0 with the help of Xcode. You will see how to use structs and generics, and work with different Design Patterns with Swift. Debug and test your code using Xcode and see how to use assembly code effectively with Swift.By the end of this book, you will have the necessary skills to get the most out of Swift to develop effective mobile and web applications.Style and approachThis book follows a problem-solution methodology using step-by-step recipes, and is filled with screenshots to help you create samples and learn something new in every recipe.
  • Englisch
  • Birmingham
978-1-78588-246-3 (9781785882463)
1785882465 (1785882465)
weitere Ausgaben werden ermittelt
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewer
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started with Xcode and Swift
  • Chapter 2: Standard Library and Collections
  • Chapter 3: Using Structs and Generics
  • Chapter 4: Design Patterns with Swift
  • Chapter 5: Multitasking in Your App
  • Chapter 6: Working with Playgrounds
  • Chapter 7: Swift Debugging with Xcode
  • Chapter 8: Integrating with Objective-C
  • Chapter 9: Dealing with Other Languages
  • Chapter 10: Data Access
  • Chapter 11: Extensions, Photos, and More
  • Index
  • Introduction
  • Installing Xcode from the App Store
  • Downloading the Xcode image
  • Starting a Swift project
  • Using Swift project options
  • Creating conditional code
  • Migrating an existing project to Swift 2.0
  • Adding a developer account
  • Compiling from the command line
  • Using Swift as an interpreter
  • Adding a control version system to an existing project
  • Introduction
  • Creating HTML manually
  • Printing your object description
  • Quizzing the user
  • Searching for perfect numbers
  • Sorting an array of products
  • Finding the way out
  • Creating your own set
  • Organizing a dinner room
  • Introduction
  • Creating an exam app
  • Checking for the right answer
  • Avoiding the copying of structs
  • Creating a generic array initializer
  • Creating a priority list
  • Creating a protocol for the priority queue
  • Introduction
  • Writing into a log file
  • Creating a factory of musical notes
  • Simulating a home automation
  • Delivering some pizzas
  • Protocol-oriented programming
  • Introduction
  • Word counting using threads
  • Creating an SEO app
  • Creating a CycloneChecker app
  • Checking links of our website
  • Introduction
  • Creating the first playground
  • Watching some graphics
  • Watching a temperature with color
  • Stretching an image
  • Beautifying your text using Pangrams
  • Receiving JSONs
  • Creating our own class representations
  • Rich documentation
  • Navigating pages in playgrounds
  • Introduction
  • Validating the values - developing a tax income simulator app
  • Debugging with Xcode and Swift - the best checker movement
  • Debugging with LLDB
  • Profiling an app
  • Error handling in Swift 2.0
  • Custom error handling in Swift 2.0
  • Availability checking in Swift 2.0
  • Introduction
  • Calling a cab
  • Hiring a van
  • Porting your code from one language to another
  • Replacing the user interface classes
  • Upgrading the app delegate
  • Creating your own custom framework
  • Introduction
  • Using my old address book
  • Compressing a message
  • Using assembly code with Swift
  • Sharing C++ code with Swift
  • Introduction
  • Creating an SQLite database
  • Checking where your IP is from
  • Tracking your phone activity
  • Controlling your stocks
  • Designing a voting device using CouchDB
  • Introduction
  • Developing the geekiest keyboard
  • Time to take your pill
  • Adding effects to your photos
  • Being a film critic
  • Leaving breadcrumbs
  • Creating the Currency Converter app
  • Method swizzling in Swift
  • Associated objects in Swift

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Download (sofort verfügbar)

40,53 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung des WebShops erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok