Swift Development with Cocoa
O'Reilly Media (Verlag)
978-1-4919-0894-5 (ISBN)
Ready to build apps for iPhone, iPad, and Mac now that Swift has landed? If you’re an experienced programmer who’s never touched Apple developer tools, this hands-on book shows you how to use the Swift language to make incredible iOS and OS X apps, using Cocoa and Cocoa Touch.
Learn how to use Swift in a wide range of real-world situations, with Cocoa features such as Event Kit and Core Animation. You’ll pick up Swift language features and syntax along the way, and understand why using Swift (instead of Objective-C) makes iOS and Mac app development easier, faster, and safer. You’ll also work with several exercises to help you practice as you learn.
- Learn the OS X and iOS application lifecycle
- Use storyboards to design adaptive interfaces
- Explore graphics systems, including the built-in 2D and 3D game frameworks
- Display video and audio with AVFoundation
- Store data locally with the file system, or on the network with iCloud
- Display lists or collections of data with table views and collection views
- Build apps that let users create, edit, and work with documents
- Use MapKit, Core Location, and Core Motion to interact with the world
Jonathon Manning is the co-founder of Secret Lab, an independent game development studio based in Hobart, Tasmania, Australia. Jon Manning is a game designer and programmer who’s worked on all kinds of projects, ranging from iPad games for children to instant messaging clients. Jon is about to submit a PhD exploring the manipulation of online social networks. Jon can be found on Twitter as @desplesda.
Paris Buttfield-Addison is a mobile app engineer, game designer, and researcher with a passion for making technology simpler and as engaging as possible. Paris recently submitted a PhD investigating how people use tablets for information management.
Tim Nugent pretends to be a mobile app developer, game designer, PhD student, and now he even pretends to be an author. When he isn't busy avoiding being found out as a fraud, he spends most of his time designing and creating little apps and games he won't let anyone see. Tim spent a disproportionately long time writing this tiny little bio, most of which was spent trying to stick a witty sci-fi reference in, before he simply gave up. Tim can be found as @The_McJones on Twitter.
Chapter 1Cocoa Development Tools
The Mac and iOS Developer Programs
Creating Your First Project with Xcode
Developing a Simple Swift Application
Using the iOS Simulator
Testing iOS Apps with TestFlight
Chapter 2Programming with Swift
The Swift Programming Language
Playgrounds
Variables and Constants
Types
Control Flow
Functions and Closures
Objects
Interoperating with Objective-C
Using Objective-C and Swift in the Same Project
Modules
Memory Management
Working with Strings
Data
Design Patterns in Cocoa
Chapter 3Applications on OS X and iOS
What Is an Application?
The Application Life Cycle
The Application Sandbox
Notifications with NSNotification
Chapter 4Graphical User Interfaces
Interfaces in OS X and iOS
MVC and Application Design
Nib Files and Storyboards
Constructing an Interface
Building an App with Nibs and Constraints
Interfaces on iOS
UI Dynamics
Core Animation
Chapter 5Closures and Operation Queues
Closures in Cocoa
Concurrency with Operation Queues
Operation Queues and NSOperation
Performing Work on Operation Queues
Putting It All Together
Chapter 6Drawing Graphics in Views
How Drawing Works
The Pixel Grid
Drawing in Views
Building a Custom View
Chapter 7SpriteKit
SpriteKit’s Architecture
Making an App That Uses SpriteKit
Working with SpriteKit Scenes
SpriteKit Nodes
Putting Sprites in Scenes
Responding to Touches
Working with Textures
Texture Atlases
Working with Text
Animating Content with Actions
Using Shape Nodes
Using Image Effect Nodes
Adding Physics to SpriteKit Objects
Adding Joints to SpriteKit Objects
Lighting SpriteKit Scenes
Constraints
Using Shaders in SpriteKit
Using SpriteKit Editor
Chapter 8SceneKit
SceneKit Structure
Working with SceneKit
Adding a SceneKit View
Adding a Scene
Adding a Camera
Adding a 3D Object
Adding Lights
Animating Content in the Scene
Creating Text Geometry
Working with Materials
Hit Testing
Constraints
Loading Data from COLLADA Files
Adding Physics to the Scene
Chapter 9Audio and Video
AV Foundation
Playing Video with AVPlayer
Speech Synthesis
Working with the Photo Library
Chapter 10iCloud and Data Storage
Preferences
Working with the Filesystem
Working with the Sandbox
iCloud
What iCloud Stores
Setting Up for iCloud
Testing Whether iCloud Works
Storing Settings
iCloud Storage
Document Pickers
Using iCloud Well
Chapter 11Cocoa Bindings
Binding Views to Models
A Simple Bindings App
Binding to Controllers
Array and Object Controllers
A More Complex Bindings App
Chapter 12Table Views and Collection Views
Data Sources and Delegates
Table Views
Collection Views
Chapter 13Document-Based Applications
The NSDocument and UIDocument Classes
Document Objects in MVC
Document-Based Applications on OS X
Document-Based Applications on iOS
Chapter 14Networking
Connections
Building a Networked Application
Bonjour Service Discovery
Multipeer Connectivity
Chapter 15Working with the Real World
Working with Location
Geocoding
Region Monitoring and iBeacons
Locations and Privacy
Maps
Device Motion
Printing Documents
Game Controllers
App Nap
Authenticating Using Touch ID
Handoff
Chapter 16EventKit
Understanding Events
Accessing the Event Store
Accessing Calendars
Accessing Events
Working with Events
Building an Events Application
User Privacy
Chapter 17Instruments and the Debugger
Getting Started with Instruments
Fixing Problems Using Instruments
Retain Cycles and Leaks
Using the Debugger
View Debugging
The Testing Framework
Debug Gauges
Performance Optimization
Chapter 18Sharing and Notifications
Sharing
Sharing on iOS
Sharing on OS X
Notifications
Sending Push Notifications
Setting Up to Receive Push Notifications
Receiving Push Notifications
Local Notifications
Chapter 19Nonstandard Apps
Command-Line Tools
Preference Panes
Status Bar Items
iOS Apps with Multiple Windows
Chapter 20Working with Text
Internationalization and Localization
Formatting Data with NSFormatter
Formatting Numbers, Lengths, Mass, Energy, and Data
Detecting Data with NSDataDetector
TextKit
Erscheint lt. Verlag | 27.1.2015 |
---|---|
Zusatzinfo | black & white illustrations |
Verlagsort | Sebastopol |
Sprache | englisch |
Maße | 177 x 233 mm |
Gewicht | 756 g |
Einbandart | Paperback |
Themenwelt | Informatik ► Betriebssysteme / Server ► Macintosh / Mac OS X |
Informatik ► Programmiersprachen / -werkzeuge ► Mac / Cocoa Programmierung | |
Informatik ► Software Entwicklung ► Mobile- / App-Entwicklung | |
Informatik ► Software Entwicklung ► Spieleprogrammierung | |
Mathematik / Informatik ► Informatik ► Theorie / Studium | |
Informatik ► Weitere Themen ► Smartphones / Tablets | |
Schlagworte | Apple • Apple MacIntosh • Cocoa (Entwicklungsumgebung); Einführung • iOS; Programmierung • Swift (Programmiersprache); Einführung |
ISBN-10 | 1-4919-0894-7 / 1491908947 |
ISBN-13 | 978-1-4919-0894-5 / 9781491908945 |
Zustand | Neuware |
Haben Sie eine Frage zum Produkt? |
aus dem Bereich