所需积分/C币:10 2015-05-27 14:43:09 8.05MB PDF
收藏 收藏

Title: More iPhone Development with Objective-C, 3rd Edition Author: Alex Horovitz, David Mark, Jayant Varma, Jeff LaMarche, Kevin Kim Length: 512 pages Edition: 3 Language: English Publisher: Apress Publication Date: 2015-05-21 ISBN-10: 1430260378 ISBN-13: 9781430260370 If you are looking to exten
More iPhone development with objective-C Copyright o 2015 by David Mark, Jayant Varma, Jeff LaMarche, Alex Horovitz, Kevin Kim This work is subject to copyright All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting reuse of ustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publishers location, in its current version, and permission for use must always be obtained from Springer Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law SBN13(pbk):978-1-4302-60370 SBN13( electronic):978-1-4302-6038-7 Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark The use in this publication of trade names, trademarks, service marks, and similar terms even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. the publisher makes no warranty, express or implied with respect to the material contained herein Managing Director Welmoed Spahr Lead Editor Michelle lowman Technical reviewer: Ron natalie Technical reviewer: Jim graham Editorial Board: Steve Anglin, Mark Beckner, Gary Cornell, Louise Corrigan, James dewolf. Jonathan gennick robert hutchinson michelle lowman James Markham, Matthew Moodie, Jeffrey Pepper, Douglas Pundick, Ben Renow-Clarke, Gwenan Spearing, Matt Wade, Steve Weiss Coordinating editor Kevin Walter Copy Editor: Kim Wimpsett Compositor: SPi Global Indexer: SPi Global Artist: SPi Global Cover photo: michelle lowman Distributed to the book trade worldwide by springer Science+ Business Media New York 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201)348 4505, Apress Media, LLC is a California LLC and the sole member (owner)is Springer Science Business Media Finance Inc(SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation Forinformationontranslations,,orvisit WWw· apress·com Apress and friends of ed books may be purchased in bulk for academic, corporate, or promotional use e Book versions and licenses are also available for most titles. For more information, reference our Special Bulk Sales-e Book Licensing web page at Any source code or other supplementary material referenced by the author in this text is To my loving parents and family -ayant Varma Contents at a Glance About the authors About the technical reviewer Acknowledgments Introduction Chapter 1: Here We Go round again Chapter 2: Core Data: What, Why, and How Chapter 3: A Super Start: Adding, Displaying, and Deleting Data Chapter 4: The Devil in the Detail View Chapter 5: Preparing for Change: Migrations and Versioning Chapter 6: Custom Managed Objects Chapter 7: Relationships, Fetched Properties, and Expressions Chapter 8: Behind Every iCloud Chapter 9: Peer-to-peer Over Bluetooth Using Multipeer Connectivity Chapter 10: Map Kit Chapter 11: Messaging: Mail, Social and iMessage Chapter 12: Media Library Access and Playback Chapter 13: Lights, Camera, and Action Chapter 14: Interface Builder and Storyboards Chapter 15: Unit Testing, Debugging, and Instruments Chapter 16: The Road Goes Ever On Index Contents About the authors About the technical reviewer Acknowledgments Introduction Chapter 1: Here We Go round again What this book is What You need to know What You need before you can begin What's In this book Chapter 2: Core Data: What, Why, and How A Brief History of Core Data Creating a Core Data Application Core Data Concepts and Terminology The data model Entities Fetch Requests Configurations The Data Model Class: NSManagedObjectModel The persistent store and persistent store coordinator Reviewing the data Model Managed Objects Key-Value Coding Managed object Context Saves on Terminate Load data from the persistent store The Fetched results controller Creating and Inserting a New Managed object Deleting Managed Objects Putting everything in Context Chapter 3: A Super Start: Adding, Displaying, and Deleting Data Setting Up the Xcode Project Adding a Scene Scenes and Segues Storyboard Document Outline Application Architecture Designing the view controller Interface Creating herolistcontroller Making the connections and outlets Navigation Bar Buttons Tab bar and user defaults Designing the Data Model Adding an Entity Editing the New Entity Declaring the Fetched Results Controller Implementing the Fetched Results Controller Fetched Results controller Delegate Methods Making It all Work Error Handling Implementing Edit and Add Coding the Table View Data Source and delegate Sorting the Table View Loading the Fetch Request at Launch Let Er Rip Done but not done Chapter 4: The Devil in the Detail View View Implementation Choices Creating the detail View Controller Wiring Up the Segue Hero detailController Detail View Challenges Controlling the Table Structure with Property Lists Property Lists Explained Modeling Table Structure with a Property List Defining the table View via Property List Parsing the Property List Pushing the Details Showing the details Editing the Details Editing Mode in the Detail view Creating a Custom UlT able View Cell Subclass Saving Your Changes Specialized Input views Date Picker SuperDBEditCell Subclass sing the Date Picker Super DBEditCell Subclass Implementing a Selection Picker Devil's End Chapter 5: Preparing for Change: Migrations and Versioning About data models Data models are compiled Data Models Can Have multiple versions Creating a New data model version The Current data model version Data model version identifiers Migrations Lightweight VS Standard Standard Migrations Setting Up Your App to Use Lightweight Migrations Time to Migrate On Chapter 6: Custom Managed objects Updating the Data Model Adding the Age Attribute Adding the Favorite Color Attribute Adding a Minimum Length to the Name Attribute Creating the hero class Tweaking the Hero Header Defaulting Validation Single-Attribute Validations nil vs nUll Multiple-Attribute Validations Virtual accessors Adding Validation Feedback Updating the Detail view Refactoring SuperDBEditCell Xcode Refactoring Options Moving code around Editable property Creating a Color Table View Cell Custom color editor Custom Color table view cell Cleaning Up the Picker One More Thing Color Us gone Chapter 7: Relationships, Fetched Properties, and Expressions Expanding Your Application Superpowers and Reports Relationships To-One Relationships To-Many Relationships Inverse Relationships Fetched Properties Creating Relationships and Fetched Properties in the Data Model Editor Delete rules Expressions and Aggregates Adding the power entit Creating the Powers Relationship Creating the Inverse Relationship Creating the olderHeroes Fetched Property What is a predicate Creating the youngerHeroes Fetched Property Creating the same SexHeroes Fetched Property Creating the opposite Sexheroes Fetched property Adding Relationships and Fetched Properties to the Hero class Updating the detail view Rethinking Configuration Encapsulation and Information Hiding Data-Driven Configuration Adding powers Refactoring the Detail View Controller Renaming the configuration class

试读 127P More.iPhone.Development.with.Objective-C.3rd.Edition
立即下载 身份认证后 购VIP低至7折
kewenbest 好东西,喜欢
VISUALR 深入学习的神器
  • 至尊王者

关注 私信
More.iPhone.Development.with.Objective-C.3rd.Edition 10积分/C币 立即下载

试读结束, 可继续阅读

10积分/C币 立即下载