TIENE EN SU CESTA DE LA COMPRA
en total 0,00 €
Get hands-on experience with Apple's Swift programming language by building real working apps. With this practical guide, skilled programmers with little or no knowledge of Apple development will learn how to code with Swift 2 by developing three complete, tightly linked versions of the Notes application for the OS X, iOS, and watchOS platforms.
In the process, you'll learn Swift's fundamentals, including its syntax and features, along with the basics of the Cocoa, CocoaTouch, and WatchKit frameworks. This book teaches you how to use common design patterns for Swift, how to structure an application for Apple's platforms, and how to submit working apps to the App Store.
Divided into four distinct parts, this book includes:
Swift 2 basics: Learn Swift's features for object-oriented development, as well as various developer tools
OS X app development: Set up your app, work with its documents, and build out its features
iOS app development: Use multimedia, contacts, location, notifications, and iCloud files to build a fully featured iOS Notes app
Advanced app extensions: Support Apple Watch and learn how to debug, monitor, and test all three of your Swift apps
Swift Basics
Chapter 1Getting Started
The Apple Developer Program
Creating Your First Project with Xcode
Developing a Simple Swift Application
Using the iOS Simulator
Conclusion
Chapter 2The Basics of Swift
The Swift Programming Language
Playgrounds
Comments
Control Flow
Variables and Constants
Operators
Types
Working with Strings
Functions and Closures
Conclusion
Chapter 3Swift for Object-Oriented App Development
Classes and Objects
Structures
Modules
The Swift Standard Library, Foundation, Cocoa, and Cocoa Touch
Data
Error Handling
Memory Management
Design Patterns in Cocoa and Cocoa Touch
Structuring an App
Conclusion
An OS X App
Chapter 4Setting Up the OS X Notes App
Designing the OS X Notes App
Creating the OS X Project
Defining a Document Type
Adding the Icon
Conclusion
Chapter 5Working with Documents on OS X
The NSDocument Class
Storing Data in the Document
Storing Text
A Basic UI
Conclusion
Chapter 6User Interfaces and iCloud
Updating the UI
Document-Filetype-Extension UI
Enhancing Attachments
Adding Attachments via Drag-and-Drop
iCloud
The Basics of iCloud
Conclusion
An iOS App
Chapter 7Setting Up the iOS Notes App
Designing the iOS Notes App
Creating the iOS Project
Enabling the iOS App for iCloud
Defining a Document Type
Conclusion
Chapter 8Working with Files in iCloud
The App Sandbox
iCloud Availability
Creating the Document List View Controller
Creating the Document Class
Listing Documents
Creating Documents
Downloading from iCloud
Deleting Documents
Renaming Documents
Conclusion
Chapter 9Working with Documents on iOS
Adding a View to Display Notes
Editing and Saving Documents
Conclusion
Chapter 10Working with Files and File Types
Setting Up the Interface for Attachments
Listing Attachments
Dealing with Conflicts
Creating the Quick Look Thumbnail
Conclusion
Chapter 11Images and Deletion
Adding Attachments
Adding Image Attachments
Viewing Attachments
Deleting Attachments
Conclusion
Chapter 12Supporting the iOS Ecosystem
Sharing with UIActivityController
Handoffs
Searchability
Conclusion
Chapter 13Extending iOS Apps
Searching with a Spotlight Indexing Extension
Today Widgets
Conclusion
Chapter 14Multimedia, Contacts, Location, and Notifications
Location Attachments
Audio Attachments
Video Attachments
Contact Attachments
Notifications
Conclusion
Chapter 15Polishing the iOS App
Speaking Text
Opening Links in SFSafariViewController
Settings
Undo Support
Images with Filters
Worldwide Apps
Accessibility
Splitscreen Multitasking
Conclusion
Extending Your Apps
Chapter 16Building a watchOS App
Designing for the Watch
Designing Our watchOS App
Creating the watchOS Extension
Conclusion
Chapter 17Code Quality and Distribution
Debugging
Instruments
Testing
Using Objective-C and Swift in the Same Project
The App Store
Conclusion