Learning Swift [Building apps for OS X and IOS ; Covers Swift 2]
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 a...
Gespeichert in:
1. Verfasser: | |
---|---|
Weitere Verfasser: | , |
Format: | UnknownFormat |
Sprache: | eng |
Veröffentlicht: |
Sebastopol, CA, Beijing, Farnham
O'Reilly
2016
|
Ausgabe: | First edition |
Schlagworte: | |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | 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. -- Provided by publisher Part 1. Swift basics -- Part II. An OS X App -- Part III. An iOS App -- Part IV. Extending your Apps Swift Basics -- Getting Started -- Apple Developer Program -- Creating Your First Project with Xcode -- Developing a Simple Swift Application -- Using the iOS Simulator -- Conclusion -- Basics of Swift -- Swift Programming Language -- Playgrounds -- Comments -- Control Flow -- Variables and Constants -- Operators -- Types -- Working with Strings -- Functions and Closures -- Conclusion -- Swift 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 -- Setting 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 -- Working with -- Documents on OS X -- The NSDocument Class -- Storing Data in the Document -- Storing Text -- A Basic UI -- Conclusion -- User 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 -- Setting 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 -- Working with Files in iCloud -- 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 -- Working with Documents on iOS -- Adding a View to Display Notes -- Editing and Saving Documents -- Conclusion -- Working with Files and File Types -- Setting Up the Interface for Attachments -- Listing Attachments -- Dealing with Conflicts -- Creating the Quick Look Thumbnail -- Conclusion -- Images and Deletion -- Adding Attachments -- Adding Image Attachments -- Viewing Attachments -- Deleting Attachment -- Conclusion -- Supporting the iOS Ecosystem -- Sharing with UIActivityController -- Handoffs -- Searchability -- Conclusion -- Extending iOS Apps -- Searching with a Spotlight Indexing Extension -- Today Widgets -- Conclusion -- Multimedia, Contacts, Location, and Notifications -- Location Attachments -- Audio Attachments -- Video Attachments -- Contact Attachments -- Notifications -- Conclusion -- Polishing the iOS App -- Speaking Text -- Opening Links in SFSafariViewController -- Settings -- Undo Support -- Images with Filters -- Worldwide Apps -- Accessibility -- Splitscreen Multitasking -- Conclusion -- Extending Your Apps -- Building a watchOS App -- Designing for the Watch -- Designing Our watchOS App -- Creating the watchOS Extension -- Conclusion -- Code Quality and Distribution -- Debugging -- Instruments -- Testing -- Using Objective-C and Swift in the Same Project -- The App Store -- Conclusion Part I. Swift basics. 1. Getting started ; 2. The basics of Swift ; 3. Swift for object-oriented app development -- Part II. An OS X App. 4. Setting up the OS X Notes app ; 5. Working with documents on OS X ; 6. User interfaces and iCloud -- Part III. An iOS App. 7. Setting up the iOS Notes app ; 8. Working with files in iCloud ; 9. Working with documents on iOS ; 10. Working with files and file types ; 11. Images and deletion ; 12. Supporting the iOS ecosystem ; 13. Extending iOS apps ; 14. Multimedia, contacts, location, and notifications ; 15. Polishing the iOS app -- Part IV. Extending your Apps. 16. Building a watchOS app ; 17. Code quality and distribution |
---|---|
Beschreibung: | xiv, 518 Seiten Illustrationen |
ISBN: | 1491940743 1-4919-4074-3 9781491940747 978-1-4919-4074-7 |