The Core iOS Developer's Cookbook

( 1 )

Overview

Completely updated for iOS 7 and Xcode 5

This book brings together reliable, proven solutions for the heart of day-to-day iOS 7 development. Renowned iOS programming expert Erica Sadun and top iOS developer Rich Wardwell cover all you need to create successful iOS 7 mobile apps with standard APIs and interface elements and take full advantage of iOS 7 graphics, touches, and views.

As in all of Sadun?s iOS bestsellers, The Core iOS Developer?s ...

See more details below
Paperback
$31.25
BN.com price
(Save 30%)$44.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (19) from $24.62   
  • New (15) from $24.62   
  • Used (4) from $24.72   
The Core iOS Developer's Cookbook

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac

Want a NOOK? Explore Now

NOOK Book (eBook)
$19.99
BN.com price
(Save 44%)$35.99 List Price

Overview

Completely updated for iOS 7 and Xcode 5

This book brings together reliable, proven solutions for the heart of day-to-day iOS 7 development. Renowned iOS programming expert Erica Sadun and top iOS developer Rich Wardwell cover all you need to create successful iOS 7 mobile apps with standard APIs and interface elements and take full advantage of iOS 7 graphics, touches, and views.

As in all of Sadun’s iOS bestsellers, The Core iOS Developer’s Cookbook translates modern best practices into working code, distilling key concepts into concise recipes you can easily understand and apply in your own projects. This isn’t just cut-and-paste; using examples, Sadun and Wardwell fully explain both the “how” and “why” of effective iOS 7 development.

All code is fully revised and extensively tested to reflect new iOS 7 features and device capabilities.

Coverage includes

  • Creating advanced direct touch-based interfaces with multi-touch, gestures, and custom gesture recognizers
  • Building and customizing controls in powerful new ways
  • Creating interfaces that reflect the new iOS 7 design paradigm
  • Implementing new iOS 7 motion effects
  • Alerting users via pop-ups, progress bars, local notifications, popovers, audio pings, and more
  • Using Xcode modules to easily integrate system frameworks and headers
  • Assembling views and animation, organizing view hierarchies, and understanding how views work together
  • Supporting multiple screen geometries with the breakthrough iOS 7 Auto Layout constraints system
  • Controlling keyboards, making onscreen elements “text aware,” and efficiently scanning and formatting text
  • Organizing user workspaces with view controllers
  • Managing photos, videos, email, and text messages
  • Leveraging the enhanced iOS 7 support for social media activities, including Flickr and Vimeo
  • Implementing VoiceOver accessibility, including new iOS 7 text-to-speech
  • Getting started with Core Data-managed data stores
  • Leveraging the powerful iOS 7 networking and web services support
  • Using the new iOS 7 APIs and added flexibility to enhance everything from reliability to text appearance
  • Working around new iOS 7 problems and bugs
Read More Show Less

Product Details

  • ISBN-13: 9780321948106
  • Publisher: Addison-Wesley
  • Publication date: 4/2/2014
  • Series: Developer's Library Series
  • Edition number: 5
  • Pages: 576
  • Sales rank: 533,252
  • Product dimensions: 7.00 (w) x 8.90 (h) x 1.60 (d)

Meet the Author

Erica Sadun is the bestselling author, coauthor, and contributor to several dozen books on programming, digital video and photography, and web design, including the widely popular The iOS 5 Developer’s Cookbook. She currently blogs at TUAW.com and has blogged in the past at O’Reilly’s Mac Devcenter, Lifehacker, and Ars Technica. In addition to being the author of dozens of iOS-native applications, Erica holds a Ph.D. in computer science from Georgia Tech’s Graphics, Visualization and Usability Center. A geek, a programmer, and an author, she’s never met a gadget she didn’t love. When not writing, she and her geek husband parent three geeks-in-training, who regard their parents with restrained bemusement when they’re not busy rewiring the house or plotting global dominance.

Rich Wardwell is a senior iOS and Mac developer at Black Pixel, with more than 20 years of professional software development experience in server, desktop, and mobile spaces. He has been a primary developer on numerous top-ranking iOS apps in the Apple App Store, including apps for USA Today and Fox News. Rich has served as a technical editor for The Core iOS 6 Developer’s Cookbook and The Advanced iOS 6 Developer’s Cookbook, both by author Erica Sadun, as well as many other Addison-Wesley iOS developer titles. When not knee-deep in iOS code, Rich enjoys “tractor therapy” and working on his 30-acre farm in rural Georgia with his wife and children.

Read More Show Less

Table of Contents

Preface xiii
Chapter 1: Gestures and Touches 1

Touches 1
Recipe: Adding a Simple Direct Manipulation Interface 5
Recipe: Adding Pan Gesture Recognizers 7
Recipe: Using Multiple Gesture Recognizers Simultaneously 9
Recipe: Constraining Movement 14
Recipe: Testing Touches 15
Recipe: Testing Against a Bitmap 17
Recipe: Drawing Touches Onscreen 20
Recipe: Smoothing Drawings 22
Recipe: Using Multi-Touch Interaction 26
Recipe: Detecting Circles 29
Recipe: Creating a Custom Gesture Recognizer 34
Recipe: Dragging from a Scroll View 37
Recipe: Live Touch Feedback 40
Recipe: Adding Menus to Views 45
Summary 47
Chapter 2: Building and Using Controls 49
The UIControl Class 49
Buttons 53
Buttons in Interface Builder 55
Recipe: Building Buttons 56
Recipe: Animating Button Responses 60
Recipe: Adding a Slider with a Custom Thumb 62
Recipe: Creating a Twice-Tappable Segmented Control 67
Working with Switches and Steppers 70
Recipe: Subclassing UIControl 72
Recipe: Building a Star Slider 76
Recipe: Building a Touch Wheel 79
Recipe: Creating a Pull Control 83
Recipe: Building a Custom Lock Control 88
Recipe: Image Gallery Viewer 93
Building Toolbars 96
Summary 98
Chapter 3: Alerting the User 101
Talking Directly to Your User through Alerts 101
Recipe: Using Blocks with Alerts 105
Recipe: Using Variadic Arguments with Alert Views 110
Presenting Lists of Options 112
“Please Wait”: Showing Progress to Your User 115
Recipe: Modal Progress Overlays 117
Recipe: Custom Modal Alert View 119
Recipe: Basic Popovers 124
Recipe: Local Notifications 126
Alert Indicators 128
Recipe: Simple Audio Alerts 129
Summary 133
Chapter 4: Assembling Views and Animations 135
View Hierarchies 135
Recipe: Recovering a View Hierarchy Tree 137
Recipe: Querying Subviews 139
Managing Subviews 141
Tagging and Retrieving Views 142
Recipe: Naming Views by Object Association 143
View Geometry 146
Recipe: Working with View Frames 150
Recipe: Retrieving Transform Information 158
Display and Interaction Traits 164
UIView Animations 165
Recipe: Fading a View In and Out 167
Recipe: Swapping Views 168
Recipe: Flipping Views 169
Recipe: Using Core Animation Transitions 170
Recipe: Bouncing Views as They Appear 172
Recipe: Key Frame Animations 174
Recipe: Image View Animations 176
Summary 177
Chapter 5: View Constraints 179
What Are Constraints? 179
Constraint Attributes 180
The Laws of Constraints 182
Constraints and Frames 184
Creating Constraints 186
Format Strings 189
Predicates 194
Format String Summary 196
Aligning Views and Flexible Sizing 198
Constraint Processing 198
Managing Constraints 199
Recipe: Comparing Constraints 201
Recipe: Creating Fixed-Size Constrained Views 204
Recipe: Centering Views 209
Recipe: Setting Aspect Ratio 210
Recipe: Responding to Orientation Changes 212
Debugging Your Constraints 214
Recipe: Describing Constraints 215
Constraint Macros 218
Summary 221
Chapter 6: Text Entry 223
Recipe: Dismissing a UITextField Keyboard 224
Recipe: Dismissing Text Views with Custom Accessory Views 228
Recipe: Adjusting Views Around Keyboards 230
Recipe: Creating a Custom Input View 235
Recipe: Making Text-Input-Aware Views 240
Recipe: Adding Custom Input Views to Nontext Views 243
Recipe: Building a Better Text Editor (Part I) 246
Recipe: Building a Better Text Editor (Part II) 248
Recipe: Text-Entry Filtering 252
Recipe: Detecting Text Patterns 255
Recipe: Detecting Misspelling in a UITextView 260
Searching for Text Strings 262
Summary 262
Chapter 7: Working with View Controllers 263
View Controllers 263
Developing with Navigation Controllers and Split Views 266
Recipe: The Navigation Item Class 271
Recipe: Modal Presentation 273
Recipe: Building Split View Controllers 278
Recipe: Creating Universal Split View/Navigation Apps 283
Recipe: Tab Bars 286
Remembering Tab State 290
Recipe: Page View Controllers 293
Recipe: Custom Containers 303
Recipe: Segues 309
Summary 315
Chapter 8: Common Controllers 317
Image Picker Controller 317
Recipe: Selecting Images 319
Recipe: Snapping Photos 326
Recipe: Recording Video 331
Recipe: Playing Video with Media Player 333
Recipe: Editing Video 336
Recipe: Picking and Editing Video 339
Recipe: E-mailing Pictures 341
Recipe: Sending a Text Message 344
Recipe: Posting Social Updates 347
Summary 349
Chapter 9: Creating and Managing Table Views 351
iOS Tables 351
Delegation 352
Creating Tables 353
Recipe: Implementing a Basic Table 356
Table View Cells 360
Recipe: Creating Checked Table Cells 362
Working with Disclosure Accessories 364
Recipe: Table Edits 366
Recipe: Working with Sections 374
Recipe: Searching Through a Table 381
Recipe: Adding Pull-to-Refresh to Your Table 387
Recipe: Adding Action Rows 390
Coding a Custom Group Table 395
Recipe: Building a Multiwheel Table 396
Using UIDatePicker 400
Summary 401
Chapter 10: Collection Views 403
Collection Views Versus Tables 403
Establishing Collection Views 405
Flow Layouts 407
Recipe: Basic Collection View Flows 412
Recipe: Custom Cells 416
Recipe: Scrolling Horizontal Lists 418
Recipe: Introducing Interactive Layout Effects 422
Recipe: Scroll Snapping 424
Recipe: Creating a Circle Layout 425
Recipe: Adding Gestures to Layout 431
Recipe: Creating a True Grid Layout 433
Recipe: Custom Item Menus 440
Summary 442
Chapter 11: Documents and Data Sharing 445
Recipe: Working with Uniform Type Identifiers 445
Recipe: Accessing the System Pasteboard 451
Recipe: Monitoring the Documents Folder 454
Recipe: Activity View Controller 460
Recipe: The Quick Look Preview Controller 470
Recipe: Using the Document Interaction Controller 473
Recipe: Declaring Document Support 480
Recipe: Creating URL-Based Services 486
Summary 489
Chapter 12: A Taste of Core Data 491
Introducing Core Data 491
Entities and Models 492
Creating Contexts 494
Adding Data 495
Querying the Database 498
Removing Objects 500
Recipe: Using Core Data for a Table Data Source 501
Recipe: Search Tables and Core Data 505
Recipe: Adding Edits to Core Data Table Views 508
Recipe: A Core Data-Powered Collection View 514
Summary 519
Chapter 13: Networking Basics 521
Recipe: Checking Your Network Status 521
Scanning for Connectivity Changes 524
The URL Loading System 526
Recipe: Simple Downloads 528
Recipe: Downloads with Feedback 533
Recipe: Background Transfers 543
Recipe: Using JSON Serialization 546
Recipe: Converting XML into Trees 549
Summary 554
Chapter 14: Device-Specific Development 555
Accessing Basic Device Information 555
Adding Device Capability Restrictions 556
Recipe: Checking Device Proximity and Battery States 559
Recipe: Recovering Additional Device Information 563
Core Motion Basics 565
Recipe: Using Acceleration to Locate “Up” 566
Working with Basic Orientation 568
Recipe: Using Acceleration to Move Onscreen Objects 571
Recipe: Accelerometer-Based Scroll View 575
Recipe: Retrieving and Using Device Attitude 578
Detecting Shakes Using Motion Events 579
Recipe: Using External Screens 581
Tracking Users 587
One More Thing: Checking for Available Disk Space 588
Summary 589
Chapter 15: Accessibility 591
Accessibility 101 591
Enabling Accessibility 593
Traits 594
Labels 595
Hints 596
Testing with the Simulator 597
Broadcasting Updates 599
Testing Accessibility on iOS 599
Speech Synthesis 601
Dynamic Type 602
Summary 604
Appendix A: Objective-C Literals 605
Numbers 605
Boxing 606
Container Literals 607
Subscripting 608
Feature Tests 609
Index 611

Read More Show Less

Customer Reviews

Average Rating 5
( 1 )
Rating Distribution

5 Star

(1)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted August 20, 2014

    Sleeping Quarters

    Pick your book. Roomates are allowed but the limit is 4 ppl per book.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)