Swift Development with Cocoa. Developing for the Mac and iOS App Stores - Helion
ISBN: 978-14-919-0969-0
stron: 474, Format: ebook
Data wydania: 2014-12-10
Księgarnia: Helion
Cena książki: 126,65 zł (poprzednio: 158,31 zł)
Oszczędzasz: 20% (-31,66 zł)
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
Osoby które kupowały "Swift Development with Cocoa. Developing for the Mac and iOS App Stores", wybierały także:
- Zen Steve'a Jobsa 29,67 zł, (8,90 zł -70%)
- Programowanie aplikacji mobilnych dla iOS z wykorzystaniem Xcode, Swift 3.0 i iOS 10 SDK. Kurs video. Poziom pierwszy 99,00 zł, (44,55 zł -55%)
- Flutter i Dart 2 dla początkujących. Przewodnik dla twórców aplikacji mobilnych 89,00 zł, (44,50 zł -50%)
- Dostosuj się lub giń. Jak odnieść sukces w branży aplikacji mobilnych 44,90 zł, (22,45 zł -50%)
- Podstawy języka Swift. Programowanie aplikacji dla platformy iOS 49,00 zł, (24,50 zł -50%)
Spis treści
Swift Development with Cocoa. Developing for the Mac and iOS App Stores eBook -- spis treści
- Swift Development with Cocoa
- Preface
- Objective-C to Swift
- Audience
- Organization of This Book
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- 1. Cocoa Development Tools
- The Mac and iOS Developer Programs
- Registering for a Developer Program
- Downloading Xcode
- Creating Your First Project with Xcode
- The Xcode Interface
- The editor
- The toolbar
- The navigator
- Utilities
- The debug area
- The Xcode Interface
- Developing a Simple Swift Application
- Designing the Interface
- Connecting the Code
- Using the iOS Simulator
- Testing iOS Apps with TestFlight
- The Mac and iOS Developer Programs
- 2. Programming with Swift
- The Swift Programming Language
- Playgrounds
- Variables and Constants
- Types
- Tuples
- Arrays
- Dictionaries
- Control Flow
- Switches
- Functions and Closures
- Using Functions as Variables
- Closures
- Objects
- Inheritance
- Initialization and Deinitialization
- Properties
- Protocols
- Extensions
- Access Control
- Operators
- Generics
- Interoperating with Objective-C
- Using Objective-C and Swift in the Same Project
- Using Swift Objects in Objective-C
- Using Objective-C Objects in Swift
- Modules
- Memory Management
- Working with Strings
- Comparing Strings
- Searching Strings
- Data
- Loading Data from Files and URLs
- Serialization and Deserialization
- Design Patterns in Cocoa
- Model-View-Controller
- Delegation
- 3. Applications on OS X and iOS
- What Is an Application?
- Applications, Frameworks, Utilities, and More
- What Are Apps Composed Of?
- Using NSBundle to Find Resources in Applications
- The Application Life Cycle
- OS X Applications
- iOS Applications
- Multitasking on iOS
- The Application Sandbox
- Application Restrictions
- iOS application restrictions
- Mac application restrictions
- Private APIs
- Application Restrictions
- Notifications with NSNotification
- What Is an Application?
- 4. Graphical User Interfaces
- Interfaces in OS X and iOS
- MVC and Application Design
- Nib Files and Storyboards
- Structure of a Nib File
- Storyboards
- Outlets and Actions
- How Nib Files and Storyboards Are Loaded
- Constructing an Interface
- Guidelines and Constraints
- Building an App with Nibs and Constraints
- Interfaces on iOS
- Launch Screen Files
- UI Dynamics
- UI and Gravity
- Snapping UI
- Core Animation
- Layers
- Animations
- Animations on OS X
- Animations on iOS
- 5. Closures and Operation Queues
- Closures in Cocoa
- Concurrency with Operation Queues
- Operation Queues and NSOperation
- Performing Work on Operation Queues
- Putting It All Together
- 6. Drawing Graphics in Views
- How Drawing Works
- The Pixel Grid
- Retina Displays
- Pixels and Screen Points
- Drawing in Views
- Frame Rectangles
- Bounds Rectangles
- Building a Custom View
- Filling with a Solid Color
- Working with Paths
- Creating Custom Paths
- Multiple Subpaths
- Shadows
- Saving and restoring graphics contexts
- Drawing a shadow
- Drawing shadows on iOS
- Gradients
- Drawing gradients on iOS
- Transforms
- 7. SpriteKit
- SpriteKits 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
- 8. SceneKit
- 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
- Combining Animations
- Working with Materials
- Normal Mapping
- Hit Testing
- Constraints
- Loading Data from COLLADA Files
- Adding Physics to the Scene
- 9. Audio and Video
- AV Foundation
- Playing Video with AVPlayer
- AVPlayerLayer
- Putting It Together
- AVKit
- AVKit on iOS
- Playing Sound with AVAudioPlayer
- Speech Synthesis
- Working with the Photo Library
- Capturing Photos and Video from the Camera
- Building a Photo Application
- The Photo Library
- 10. iCloud and Data Storage
- Preferences
- Registering Default Preferences
- Accessing Preferences
- Setting Preferences
- Working with the Filesystem
- Using NSFileManager
- Getting a temporary directory
- Creating directories
- Creating files
- Removing files
- Moving and copying files
- File Storage Locations
- Using NSFileManager
- Working with the Sandbox
- Enabling Sandboxing
- Open and Save Panels
- Security-Scoped Bookmarks
- iCloud
- What iCloud Stores
- Setting Up for iCloud
- Testing Whether iCloud Works
- Storing Settings
- Handling External Changes
- The iOS Counterpart
- iCloud Storage
- iCloud Storage on OS X
- iCloud Storage on iOS
- Document Pickers
- Using iCloud Well
- Preferences
- 11. Cocoa Bindings
- Binding Views to Models
- A Simple Bindings App
- Binding to Controllers
- Array and Object Controllers
- A More Complex Bindings App
- 12. Table Views and Collection Views
- Data Sources and Delegates
- Table Views
- UITableView on iOS
- Sections and Rows
- Table View Controllers
- Table View Cells
- Cell reuse
- Anatomy of a UITableViewCell
- Preparing table views in Interface Builder
- Analyzing tableView(_, cellForRowAtIndexPath:)
- Responding to actions
- Implementing a Table View
- NSTableView on OS X
- Sorting a Table View
- NSTableView with Bindings
- UITableView on iOS
- Collection Views
- UICollectionView on iOS
- 13. Document-Based Applications
- The NSDocument and UIDocument Classes
- Document Objects in MVC
- Kinds of Documents
- The Role of Documents
- Document-Based Applications on OS X
- Autosaving and Versions
- Representing Documents with NSDocument
- Saving Simple Data
- Saving More Complex Data
- Document-Based Applications on iOS
- 14. Networking
- Connections
- NSURL
- NSURLRequest
- NSURLSession
- NSURLResponse and NSHTTPURLResponse
- Building a Networked Application
- Bonjour Service Discovery
- Browsing for Shared iTunes Libraries
- Multipeer Connectivity
- Connections
- 15. Working with the Real World
- Working with Location
- Location Hardware
- GPS
- WiFi base station lookups
- Cell tower lookups
- iBeacons
- The Core Location Framework
- Working with Core Location
- Location Hardware
- Geocoding
- Region Monitoring and iBeacons
- Locations and Privacy
- Maps
- Using Maps
- Annotating Maps
- Maps and Overlays
- Device Motion
- Working with Core Motion
- Using the Built-in Altimeter
- Using the Pedometer
- Printing Documents
- Printing on OS X
- Printing on iOS
- Game Controllers
- App Nap
- Authenticating Using Touch ID
- Handoff
- Working with Location
- 16. EventKit
- Understanding Events
- Accessing the Event Store
- Accessing Calendars
- Accessing Events
- Working with Events
- Building an Events Application
- User Privacy
- 17. Instruments and the Debugger
- Getting Started with Instruments
- The Instruments Interface
- Observing Data
- Adding Instruments from the Library
- Fixing Problems Using Instruments
- Retain Cycles and Leaks
- Using the Debugger
- Setting Breakpoints
- Controlling program flow
- Custom breakpoints
- Special breakpoints
- Inspecting Memory Contents
- Working with the Debugger Console
- Setting Breakpoints
- View Debugging
- The Testing Framework
- Writing Tests
- Writing Asynchronous Tests
- Performance-Testing Blocks with Tests
- Debug Gauges
- Performance Optimization
- Getting Started with Instruments
- 18. Sharing and Notifications
- Sharing
- Sharing on iOS
- Sharing on OS X
- Notifications
- Registering Notification Settings
- Push Notifications
- What Happens When a Notification Arrives
- Sending Push Notifications
- Setting Up to Receive Push Notifications
- Receiving Push Notifications
- Local Notifications
- 19. Nonstandard Apps
- Command-Line Tools
- Preference Panes
- How Preference Panes Work
- Preference Domains
- Building a Sample Preference Pane
- Status Bar Items
- Building a Status Bar App
- iOS Apps with Multiple Windows
- 20. Working with Text
- Internationalization and Localization
- Strings Files
- Creating a Sample Localized Application
- Formatting Data with NSFormatter
- Testing Different Locales
- Formatting Numbers, Lengths, Mass, Energy, and Data
- NSNumberFormatter
- NSEnergyFormatter, NSMassFormatter, and NSLengthFormatter
- NSByteCountFormatter
- Detecting Data with NSDataDetector
- TextKit
- Internationalization and Localization
- Index
- Colophon
- Copyright