Synopses & Reviews
If youre grounded in the basics of Objective-C and Xcode, this practical guide takes you through the components you need for building your own iOS apps. With examples from real apps and programming situations, youll learn how to create views, manipulate view controllers, and use iOS frameworks for adding features such as audio and video.
- Learn how to create, arrange, draw, layer, and animate views—and make them respond to touch
- Use view controllers to manage multiple screens of material in a way thats understandable to users
- Explore UIKit interface widgets in-depth, such as scroll views, table views, text, web views, and controls
- Delve into Cocoa frameworks for sensors, maps, location, sound, and video
- Access user libraries: music, photos, address book, and calendar
- Examine additional topics including files, threading, and networking
New iOS 7 topics covered include asset catalogs, snapshots, template images, keyframe and spring view animation, motion effects, tint color, fullscreen views and bar underlapping, background downloading and app refresh, Text Kit, Dynamic Type, speech synthesis, and many others. Example projects are available on GitHub.
Want to brush up on the basics? Pick up iOS 7 Programming Fundamentals to learn about Objective-C, Xcode, and Cocoa language features such as notifications, delegation, memory management, and key-value coding. Together with Programming iOS 7, youll gain a solid, rigorous, and practical understanding of iOS 7 development.
Synopsis
This book covers iOS 7 in a rigorous, orderly fashion—ideal whether youre approaching iOS for the first time or need a reference to bolster existing skills.
- Learn how views and layers are managed, drawn, composited, and animated
- Become familiar with view controllers and their relationships, along with nib and storyboard management
- Fully explore all basic interface objects such as scroll views, table views, and controls
- Delve into Cocoa frameworks for sound, video, sensors, maps, and other features
- Touch on advanced topics such as threading and networking
Synopsis
Get a solid grounding in all the fundamentals of Cocoa Touch, and avoid problems during iPhone and iPad app development. With this revised edition, youll dig into Cocoa and learn how to work effectively with Objective-C and Xcode. This book covers iOS 7 in a rigorous, orderly fashion—ideal whether youre approaching iOS for the first time or need a reference to bolster existing skills.
Learn about features introduced with iOS 7, including Objective-C language advances, autosynthesis, autolayout, new view controller rotation rules, unwind segues, state restoration, styled text, and collection views.
- Learn how views and layers are managed, drawn, composited, and animated
- Become familiar with view controllers and their relationships, along with nib and storyboard management
- Fully explore all basic interface objects such as scroll views, table views, and controls
- Delve into Cocoa frameworks for sound, video, sensors, maps, and other features
- Touch on advanced topics such as threading and networking
Need to brush up on the basics? Check out iOS 7 Programming Fundamentals where you will find Objective-C, Xcode, and Cocoa basics now in their own volume.
About the Author
Matt Neuburg started programming computers in 1968, when he was 14 years old, as a member of a literally underground high school club, which met once a week to do timesharing on a bank of PDP-10s by way of primitive teletype machines. He also occasionally used Princeton University's IBM-360/67, but gave it up in frustration when one day he dropped his punch cards. He majored in Greek at Swarthmore College, and received his Ph.D. from Cornell University in 1981, writing his doctoral dissertation (about Aeschylus) on a mainframe. He proceeded to teach Classical languages, literature, and culture at many well-known institutions of higher learning, most of which now disavow knowledge of his existence, and to publish numerous scholarly articles unlikely to interest anyone. Meanwhile he obtained an Apple IIc and became hopelessly hooked on computers again, migrating to a Macintosh in 1990. He wrote some educational and utility freeware, became an early regular contributor to the online journal TidBITS, and in 1995 left academe to edit MacTech Magazine. He is also the author of Frontier: The Definitive Guide and REALbasic: The Definitive Guide. In August 1996 he became a freelancer, which means he has been looking for work ever since. He is the author of Frontier: The Definitive Guide and REALbasic: The Definitive Guide, both for O'Reilly & Associates.
Table of Contents
Preface; Versions; Acknowledgments; From the Programming iOS 4 Preface; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Views; Chapter 1: Views; 1.1 The Window; 1.2 Experimenting With Views; 1.3 Subview and Superview; 1.4 Visibility and Opacity; 1.5 Frame; 1.6 Bounds and Center; 1.7 Transform; 1.8 Layout; Chapter 2: Drawing; 2.1 UIImage and UIImageView; 2.2 Graphics Contexts; 2.3 UIImage Drawing; 2.4 CGImage Drawing; 2.5 Snapshots; 2.6 CIFilter and CIImage; 2.7 Drawing a UIView; 2.8 Graphics Context Settings; 2.9 Paths and Shapes; 2.10 Clipping; 2.11 Gradients; 2.12 Colors and Patterns; 2.13 Graphics Context Transforms; 2.14 Shadows; 2.15 Erasing; 2.16 Points and Pixels; 2.17 Content Mode; Chapter 3: Layers; 3.1 View and Layer; 3.2 Layers and Sublayers; 3.3 Drawing in a Layer; 3.4 Transforms; 3.5 Shadows, Borders, and Masks; 3.6 Layer Efficiency; 3.7 Layers and Key-Value Coding; Chapter 4: Animation; 4.1 Drawing, Animation, and Threading; 4.2 UIImageView and UIImage Animation; 4.3 View Animation; 4.4 Implicit Layer Animation; 4.5 Core Animation; 4.6 Actions; 4.7 Emitter Layers; 4.8 CIFilter Transitions; 4.9 UIKit Dynamics; 4.10 Motion Effects; 4.11 Animation and Autolayout; Chapter 5: Touches; 5.1 Touch Events and Views; 5.2 Receiving Touches; 5.3 Restricting Touches; 5.4 Interpreting Touches; 5.5 Gesture Recognizers; 5.6 Touch Delivery; Interface; Chapter 6: View Controllers; 6.1 View Controller Responsibilities; 6.2 View Controller Hierarchy; 6.3 View Controller Creation; 6.4 How a View Controller Gets Its View; 6.5 View Resizing and the Status Bar; 6.6 Rotation; 6.7 Presented View Controller; 6.8 Tab Bar Controllers; 6.9 Navigation Controllers; 6.10 Custom Transition Animations; 6.11 Page View Controller; 6.12 Container View Controllers; 6.13 Storyboards; 6.14 View Controller Lifetime Events; 6.15 View Controller Memory Management; 6.16 State Restoration; Chapter 7: Scroll Views; 7.1 Creating a Scroll View in Code; 7.2 Using a Content View; 7.3 Scroll View in a Nib; 7.4 Scrolling; 7.5 Zooming; 7.6 Scroll View Delegate; 7.7 Scroll View Touches; 7.8 Floating Scroll View Subviews; 7.9 Scroll View Performance; Chapter 8: Table Views and Collection Views; 8.1 Table View Cells; 8.2 Table View Data; 8.3 Table View Cell Selection; 8.4 Table View Scrolling and Layout; 8.5 Table View State Restoration; 8.6 Table View Searching; 8.7 Table View Editing; 8.8 Table View Menus; 8.9 Collection Views; Chapter 9: Popovers and Split Views; 9.1 Preparing a Popover; 9.2 Summoning and Dismissing a Popover; 9.3 Popovers and Presented Views; 9.4 Automatic Popovers; 9.5 Split Views; Chapter 10: Text; 10.1 Fonts; 10.2 Attributed Strings; 10.3 Labels; 10.4 Text Fields; 10.5 Text Views; 10.6 Text Kit; Chapter 11: Web Views; 11.1 Web View Content; 11.2 Paginated Web Views; 11.3 Web View State Restoration; 11.4 Communicating with a Web View; Chapter 12: Controls and Other Views; 12.1 UIActivityIndicatorView; 12.2 UIProgressView; 12.3 UIPickerView; 12.4 UISearchBar; 12.5 UIControl; 12.6 Bars; 12.7 Tint Color; 12.8 Appearance Proxy; Chapter 13: Modal Dialogs; 13.1 Alert View; 13.2 Action Sheet; 13.3 Dialog Alternatives; 13.4 Local Notifications; 13.5 Activity View; Some Frameworks; Chapter 14: Audio; 14.1 System Sounds; 14.2 Audio Session; 14.3 Audio Player; 14.4 Remote Control of Your Sound; 14.5 Playing Sound in the Background; 14.6 Further Topics in Sound; Chapter 15: Video; 15.1 MPMoviePlayerController; 15.2 MPMoviePlayerViewController; 15.3 UIVideoEditorController; 15.4 Introduction to AV Foundation; Chapter 16: Music Library; 16.1 Exploring the Music Library; 16.2 Music Player; 16.3 MPVolumeView; 16.4 Playing Songs With AV Foundation; 16.5 Music Picker; Chapter 17: Photo Library and Image Capture; 17.1 Choosing From the Photo Library; 17.2 Assets Library Framework; 17.3 Using the Camera; 17.4 Customizing the Image Capture Interface; 17.5 Image Capture With AV Foundation; Chapter 18: Address Book; 18.1 Address Book Database; 18.2 Address Book Interface; Chapter 19: Calendar; 19.1 Calendar Database; 19.2 Calendar Interface; Chapter 20: Mail and Messages; 20.1 Mail Message; 20.2 Text Message; 20.3 Twitter Post; Chapter 21: Maps; 21.1 Displaying a Map; 21.2 Annotations; 21.3 Overlays; 21.4 Map Kit and Current Location; 21.5 Communicating With the Maps App; 21.6 Geocoding, Searching, and Directions; Chapter 22: Sensors; 22.1 Core Location; 22.2 Acceleration and Attitude; Final Topics; Chapter 23: Persistent Storage; 23.1 The Sandbox; 23.2 Basic File Operations; 23.3 Saving and Reading Files; 23.4 User Defaults; 23.5 File Sharing; 23.6 Document Types; 23.7 Handing Off a Document; 23.8 Document Architecture; 23.9 iCloud; 23.10 XML; 23.11 SQLite; 23.12 Core Data; 23.13 Image File Formats; Chapter 24: Basic Networking; 24.1 HTTP Requests; 24.2 Background App Refresh; 24.3 In-App Purchases; 24.4 Bonjour; Chapter 25: Threads; 25.1 Main Thread; 25.2 Why Threading Is Hard; 25.3 Three Ways of Threading; 25.4 Threads and App Backgrounding; Chapter 26: Undo; 26.1 Undo Manager; 26.2 Undo Interface; Application Lifetime Events; Index; Colophon;