Limit search to available items
Book Cover
E-book
Author Rogers, T. Michael, author

Title Swift recipes : a problem-solution approach / T. Michael Rogers
Published [Place of publication not identified] : Apress, [2015]
New York, NY : Distributed to the Book trade worldwide by Springer Science and Business Media
©2015

Copies

Description 1 online resource (1 volume) : illustrations
Contents Machine generated contents note: ch. 1 Swift Programming -- 1-1. Getting Started with Swift -- Problem -- Solution -- 1-2. Installing Xcode 6 -- Problem -- Solution -- How It Works -- 1-3. Working with Playgrounds -- Problem -- Solution -- How It Works -- Code and Usage -- 1-4. Designing User Interface Elements in a Storyboard -- Problem -- Solution -- How It Works -- Code and Usage -- 1-5. Dealing with Strings -- Problem -- Solution -- How It Works -- Code and Usage -- 1-6. Formatting Numbers as Strings -- Problem -- Solution -- How It Works -- Code and Usage -- 1-7. Getting the Length of a Swift String -- Problem -- Solution -- How It Works -- Code and Usage -- 1-8. Manipulating Swift Strings -- Problem -- Solution -- How It Works -- Code and Usage -- 1-9. Manipulating Strings with Native Swift Methods -- Problem -- Solution -- How It Works -- Code and Usage -- 1-10. Storing Strings on the iOS File System -- Problem -- Solution -- How It Works -- Code and Usage -- 1-11. Reading a Text File into a String -- Problem -- Solution -- How It Works -- Code and Usage -- 1-12. Reading and Writing Text Files in Cocoa -- Problem -- Solution -- How It Works -- Code and Usage -- 1-13. Dealing with Numbers -- Problem -- Solution -- How It Works -- Code and Usage -- 1-14. Dealing with Dates -- Problem -- Solution -- How It Works -- Code and Usage -- ch. 2 Complex Types -- 2-1. Writing Functions -- Problem -- Solution -- How It Works -- Code and Usage -- 2-2. Creating Classes -- Problem -- Solution -- How It Works -- Code and Usage -- 2-3. Adding Class Properties -- Problem -- Solution -- How It Works -- Code and Usage -- 2-4. Initializing Class Properties -- Problem -- Solution -- How It Works -- Code and Usage -- 2-5. Adding Class Methods -- Problem -- Solution -- How It Works -- Code and Usage -- 2-6. Inheriting from Classes -- Problem -- Solution -- How It Works -- Code and Usage -- 2-7. Implementing Protocols -- Problem -- Solution -- How It Works -- Code and Usage -- 2-8. Setting Property Observers -- Problem -- Solution -- How It Works -- Code and Usage -- 2-9. Defining Enumerations -- Problem -- Solution -- How It Works -- Code and Usage -- 2-10. Creating Structures -- Problem -- Solution -- How It Works -- Code and Usage -- 2-11. Using Tuples -- Problem -- Solution -- How It Works -- Code and Usage -- ch. 3 Collections -- 3-1. Creating an Array -- Problem -- Solution -- How It Works -- Code and Usage -- 3-2. Counting the Number of Items in an Array -- Problem -- Solution -- How It Works -- Code and Usage -- 3-3. Managing Items in an Array -- Problem -- Solution -- How It Works -- Code and Usage -- 3-4. Searching for Items in an Array -- Problem -- Solution -- How It Works -- Code and Usage -- 3-5. Sorting an Array -- Problem -- Solution -- How It Works -- Code and Usage -- 3-6. Replacing a Range of Values in an Array -- Problem -- Solution -- How It Works -- Code and Usage -- 3-7. Iterating Over an Array -- Problem -- Solution -- How It Works -- Code and Usage -- 3-8. Saving an Array to the File System -- Problem -- Solution -- How It Works -- Code and Usage -- 3-9. Populating an Array with the Contents of a plist File -- Problem -- Solution -- How It Works -- Code and Usage -- 3-10. Using Subscripts -- Problem -- Solution -- How It Works -- Code and Usage -- 3-11. Creating a Dictionary -- Problem -- Solution -- How It Works -- Code and Usage -- 3-12. Managing Items in a Dictionary -- Problem -- Solution -- How It Works -- Code and Usage -- 3-13. Implementing the Hashable Protocol -- Problem -- Solution -- How It Works -- Code and Usage -- 3-14. Iterating Through Items in a Dictionary -- Problem -- Solution -- How It Works -- Code and Usage -- 3-15. Saving a Dictionary to the File System -- Problem -- Solution -- How It Works -- Code and Usage -- 3-16. Populating a Dictionary with the Contents of a Property List File -- Problem -- Solution -- How It Works -- Code and Usage -- ch. 4 Advanced Swift Programming -- 4-1. Writing Closures -- Problem -- Solution -- How It Works -- Code and Usage -- 4-2. Writing Trailing Closures -- Problem -- Solution -- How It Works -- Code and Usage -- 4-3. Overloading the Equality Operator -- Problem -- Solution -- How It Works -- Code and Usage -- 4-4. Checking for Reference Equality -- Problem -- Solution -- How It Works -- Code and Usage -- 4-5. Implementing Generic Functions -- Problem -- Solution -- How It Works -- Code and Usage -- 4-6. Implementing Generic Classes -- Problem -- Solution -- How It Works -- Code and Usage -- 4-7. Working with Local Dates and Times -- Problem -- Solution -- How It Works -- Code and Usage -- 4-8. Creating a Unit Test Project -- Problem -- Solution -- How It Works -- Code and Usage -- 4-9. Writing a Unit Test -- Problem -- Solution -- How It Works -- Code and Usage -- 4-10. Performance Testing with XCTest -- Problem -- Solution -- How It Works -- Code and Usage -- 4-11. Creating Mock Objects for Testing -- Problem -- Solution -- How It Works -- Code and Usage -- 4-12. Testing Asynchronous Code -- Problem -- Solution -- How It Works -- Code and Usage -- ch. 5 iOS Applications -- 5-1. Creating a New iOS Application -- Problem -- Solution -- How It Works -- 5-2. Adding a UILabel to a View -- Problem -- Solution -- How It Works -- Code and Usage -- 5-3. Adding a UIButton to a View -- Problem -- Solution -- How It Works -- Code and Usage -- 5-4. Adding a UITextField to a View -- Problem -- Solution -- How It Works -- Code and Usage -- 5-5. Positioning UIViews in Auto Layout Using NSConstraints -- Problem -- Solution -- How It Works -- Code and Usage -- 5-6. Repositioning a View to Accommodate the Keyboard -- Problem -- Solution -- How It Works -- Code and Usage -- 5-7. Displaying an Alert with UIAlertController -- Problem -- Solution -- How It Works -- Code and Usage -- 5-8. Using UIAlertController to Collect User Input -- Problem -- Solution -- How It Works -- Code and Usage -- 5-9. Creating a UITableView -- Problem -- Solution -- How It Works -- Code and Usage -- 5-10. Swiping to Delete an Item from a UITableView -- Problem -- Solution -- How It Works -- Code and Usage -- ch. 6 OS X Applications -- 6-1. Creating an OS X Application -- Problem -- Solution -- How It Works -- Code and Usage -- 6-2. Adding a View to a Window -- Problem -- Solution -- How It Works -- Code and Usage -- 6-3. Adding a Menu and Menu Items -- Problem -- Solution -- How It Works -- Code and Usage -- 6-4. Adding a Button to a Window -- Problem -- Solution -- How It Works -- Code and Usage -- 6-5. Using an NSTextField -- Problem -- Solution -- How It Works -- Code and Usage -- 6-6. Displaying an Image in a Window -- Problem -- Solution -- How It Works -- Code and Usage -- 6-7. Adjusting Contents When a Window Is Resized -- Problem -- Solution -- How It Works -- Code and Usage -- 6-8. Implementing an NSTableView -- Problem -- Solution -- How It Works -- Code and Usage -- 6-9. Sorting an NSTableView -- Problem -- Solution -- How It Works -- Code and Usage -- 6-10. Handling the Selection of an NSTableView Row -- Problem -- Solution -- How It Works -- Code and Usage -- ch
7 Files and Directories -- 7-1. Locating Specialized Directories -- Problem -- Solution -- How It Works -- Code and Usage -- 7-2. Checking for the Existence of a File or Directory -- Problem -- Solution -- How It Works -- Code and Usage -- 7-3. Copying Files -- Problem -- Solution -- How It Works -- Code and Usage -- 7-4. Creating Directories -- Problem -- Solution -- How It Works -- Code and Usage -- 7-5. Deleting Files and Directories -- Problem -- Solution -- How It Works -- Code and Usage -- 7-6. Getting a List of Files from a Path -- Problem -- Solution -- How It Works -- Code and Usage -- 7-7. Archiving Objects to Files -- Problem -- Solution -- How It Works -- Code and Usage -- 7-8. Archiving Custom Classes to Files -- Problem -- Solution -- How It Works -- Code and Usage -- ch. 8 Concurrency -- 8-1. Threading with NSThread -- Problem -- Solution -- How It Works -- Code and Usage -- 8-2. Synchronizing Threads -- Problem -- Solution -- How It Works -- Code and Usage -- 8-3. Using Grand Central Dispatch for Threading -- Problem -- Solution -- How It Works -- Code and Usage -- 8-4. Using NSOperations and NSOperationsQueue -- Problem -- Solution -- How It Works -- Code and Usage -- 8-5. Completing Tasks in the Background in iOS -- Problem -- Solution -- How It Works -- Code and Usage -- 8-6. Downloading Content in the Background -- Problem -- Solution -- How It Works -- Code and Usage -- 8-7. Creating Long-Running Background Tasks -- Problem -- Solution -- How It Works -- Code and Usage -- ch. 9 Web Services -- 9-1. Parsing JSON -- Problem -- Solution -- How It Works -- Code and Usage -- 9-2. Parsing XML -- Problem -- Solution -- How It Works -- Code and Usage -- 9-3. Making HTTP Calls -- Problem -- Solution -- How It Works -- Code and Usage -- 9-4. Checking for Network Connectivity
Note continued: Problem -- Solution -- How It Works -- Code and Usage -- 9-5. Calling a REST API -- Problem -- Solution -- How It Works -- Code and Usage -- 9-6. Posting Data to a REST API -- Problem -- Solution -- How It Works -- Code and Usage -- ch. 10 Core Data -- 10-1. Creating a Data Model -- Problem -- Solution -- How It Works -- 10-2. Creating Model Classes -- Problem -- Solution -- How It Works -- Code and Usage -- 10-3. Creating a Data Store -- Problem -- Solution -- How It Works -- Code and Usage -- 10-4. Creating a Managed Object Context -- Problem -- Solution -- How It Works -- Code and Usage -- 10-5. Adding a New Entity -- Problem -- Solution -- How It Works -- Code and Usage -- 10-6. Creating an NSFetchRequest -- Problem -- Solution -- How It Works -- Code and Usage -- 10-7. Populating a UITableView with a Fetched Results Controller -- Problem -- Solution -- How It Works -- Code and Usage -- 10-8. Deleting an Item -- Problem -- Solution -- How It Works -- Code and Usage -- 10-9. Searching for Entities -- Problem -- Solution -- How It Works -- Code and Usage -- ch. 11 Advanced iOS 8 Features -- 11-1. Creating a Today Extension -- Problem -- Solution -- How It Works -- Code and Usage -- 11-2. Creating a Custom Keyboard Extension -- Problem -- Solution -- How It Works -- Code and Usage -- 11-3. Creating a Sharing Extension -- Problem -- Solution -- How It Works -- Code and Usage -- 11-4. Creating an Action Extension -- Problem -- Solution -- How It Works -- Code and Usage -- 11-5. Creating a WatchKit Application -- Problem -- Solution -- How It Works -- Code and Usage
Summary This book provides a problem solution approach for dealing with key aspects of the Swift programming language (covering version 1.2). Solutions are available for a range of problems, including application development with Xcode; working with strings, numbers, and object collections; dealing with threads, multi-core processing, and asynchronous processing; and building applications that take advantage of dates and timers and memory management. Topics include: strings and arrays; data management; dictionaries, dates and times, timers, and localization; threads, multi-core processing, and asynchronous processing; Cocoa touch, Cocoa, and core frameworks for user interfaces and experience design and development; iOS SDK for iPhone and iPad apps design and development. -- Edited summary from book
Notes Includes index
Online resource; title from title page (Safari, viewed July 22, 2015)
SUBJECT iOS (Electronic resource) http://id.loc.gov/authorities/names/n2010039603
iOS (Electronic resource) fast
Subject Programming languages (Electronic computers)
Mobile computing.
Application software -- Development.
Computer programming -- software development.
Macintosh programming.
Computers -- Programming -- General.
Computers -- Programming -- Apple Programming.
Application software -- Development
Mobile computing
Programming languages (Electronic computers)
Form Electronic book
ISBN 9781484204184
1484204182
1484204190
9781484204191