Pro Core Data for iOS


Book Description

The power of Core Data allows iOS developers to efficiently store and retrieve application data using familiar object-oriented paradigms. Pro Core Data for iOS explains both how and why to use Core Data for data storage, from simple to advanced techniques. Covering common and advanced persistence patterns, this book prepares any iOS developer to store and retrieve data accurately and proficiently. Lots of iOS development books touch on Core Data, taking you through a few mainstream use cases for storing and retrieving data in your iOS applications. In Pro Core Data for iOS, however, we take you further into Core Data and show you how to leverage the power of this data framework. After reading this book, you’ll be able to answer all of these questions: What are all the parts of Core Data, and how do they interact? How do I create my own custom store? Should I use plain NSManagedObject instances or custom classes? How do I undo and redo Core Data actions? How do I filter, sort, and aggregate data? What is “faulting,” and why should I care? Suppose I want to change my data model; how do I migrate my users’ data? Pro Core Data for iOS delves into these and other Core Data questions. With explanations, diagrams, code samples, and working explanations, this book will make you a Core Data pro!




Pro Core Data for iOS, Second Edition


Book Description

Fully updated for Xcode 4.2, Pro Core Data for iOS explains how to use the Core Data framework for iOS SDK 5 using Xcode 4.2. The book explains both how and why to use Core Data, from simple to advanced techniques. Covering common and advanced persistence patterns, this book prepares any iOS developer to store and retrieve data accurately and efficiently. This book starts by giving you a solid grounding in Core Data, providing a foundation for the rest of the book. With this knowledge, you'll have all you need to master Core Data and power your data-driven applications. You'll see how to work with SQLite and how to create an efficient data model to represent your data. Once you've established your data model, you'll learn how to work with data objects and refine result sets to get the most out of the stored data. The advanced portions of the book begin by showing you how to tune your apps' performance and memory usage, to give you a truly professional edge. You'll see how to version and migrate your data as well, to ensure your data stays organized and efficient. Finally, the book covers managing table views with NSFetchedResultsController.




Pro iOS Table Views


Book Description

If you’re an iOS app developer, chances are you’ll be using table views in your development projects. Table views are the bread and butter of iOS apps. With them, you can create everything from the simplest of lists to fully tricked-out user interfaces. Table views are also one of the most complex components found in UIKit. While using them for boring standard user interfaces is quite simple, customizing them can become really challenging. Pro iOS Table Views takes a task-oriented focus to assist you when implementing customized table views. Although it delves deeply into the Table View API, you can always decide in which level of detail you want to dive in. It’s aimed to be a great reference and customization cookbook at the same time, useful for beginners as well as intermediate developers. Covers the entire Table View API in depth Covers customization and performance topics in depth Task-oriented reference with multiple levels of detail Note: source code for this title is currently available for download at: https://github.com/timd/Pro-iOS-TableViews




Pro iOS Persistence


Book Description

Pro iOS Persistence explains how to build apps in Objective-C and Swift that persist and use data most effectively including the popular Core Data framework. Covering common and advanced persistence patterns, this book prepares any iOS developer to store and retrieve data accurately and efficiently. This book starts by giving you a solid grounding in Core Data, providing a foundation for the rest of the book. With this knowledge, you'll have all you need to master Core Data and power your data-driven applications. You'll see how to work with SQLite and how to create an efficient data model to represent your data. Once you've established your data model, you'll learn how to work with data objects and refine result sets to get the most out of the stored data. The advanced portions of the book begin by showing you how to tune your apps' performance and memory usage, to give you a truly professional edge. You'll see how to version and migrate your data as well, to ensure your data stays organized and efficient. Finally, the book covers managing table views with NSFetchedResultsController.




Programming IOS 6


Book Description

Get a solid grounding in all the fundamentals of Cocoa Touch, and avoid problems during iPhone and iPad app development. With this revised and expanded edition, you'll dig into Cocoa and learn how to work effectively with Objective-C and Xcode. This book covers iOS 6 in a rigorous, orderly fashion--ideal whether you're approaching iOS for the first time or need a reference to bolster existing skills. Learn about features introduced with iOS 6, including Objective-C language advances, autosynthesis, autolayout, new view controller rotation rules, unwind segues, state restoration, styled text, and collection views. Learn Objective-C language details and object-oriented programming concepts Understand the anatomy of an Xcode project and all the stages of its lifecycle Grasp key Cocoa concepts such as relationships between classes, receiving events, and model-view-controller architecture 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




Core Data by Tutorials (Eighth Edition)


Book Description

Learn Core Data With Swift!Take control of your data in iOS apps using Core Data, through a series of high quality hands-on tutorials.Start with the basics like setting up your own Core Data Stack all the way to advanced topics like migration, performance, multithreading, and more! By the end of this book, you'll have hands-on experience with Core Data and will be ready to use it in your own apps.Who This Book Is For:This book is for intermediate iOS developers who already know the basics of iOS and Swift development but want to learn how to use Core Data to save data in their apps.Topics Covered in Core Data by Tutorials:Your First Core Data App: You'll click File\New Project and write a Core Data app from scratch!NSManagedObject Subclasses: Learn how to create your own subclasses of NSManagedObject - the base data storage class in Core Data.The Core Data Stack: Learn how the main objects in Core Data work together, so you can move from the starter Xcode template to your own system.Intermediate Fetching: This chapter covers how to fetch data with Core Data - fetch requests, predicates, sorting and asynchronous fetching.NSFetchedResultsController: Learn how to make Core Data play nicely with table views using NSFetchedResultsController!Versioning and Migration: In this chapter, you'll learn how to migrate your user's data as they upgrade through different versions of your data model.Unit Tests: In this chapter, you'll learn how to set up a test environment for Core Data and see examples of how to test your models.Measuring and Boosting Performance: Learn how to measure your app's performance with various Xcode tools and deal with slow spots in your code.Multiple Managed Object Contexts: Learn how multiple managed object contexts can improve performance and make for cleaner code.Core Data and CloudKit: Learn how to synchronize Core Data across all of a user's devices.




Learning Core Data for IOS


Book Description

Get Started Fast with iOS 7 Core Data App Development Covers iOS 7 and Xcode 5 This is the first Core Data book to fully reflect Apple's latest platform innovations, including its dramatic recent improvements to iCloud support. Hands-on from start to finish, it teaches you step-by-step as you create a modern data-driven iOS app using Storyboards, ARC, iOS 7, and Xcode 5. Tim Roadley introduces new patterns and best practices designed to overcome the frustrations of Core Data development. One step at a time, you'll build and extend your skills--even mastering advanced techniques such as complex model migration, deep copy, background processing, and integration with Dropbox, StackMob, and iCloud. Downloadable versions of this book's main project are provided with each chapter, so you can see exactly what your app project should look like--and get cookbook-style code for your own projects. Chapter exercises help you explore even further, whether you're a self-learner or a student in an iOS development course. If you're an experienced iOS developer, this guide brings together all the skills, tools, code, and patterns you need to add powerful data management capabilities to any app--quickly, easily, and painlessly. Coverage includes the following: Understanding Core Data Adding Core Data to an existing project Designing, upgrading, and migrating data models (automatically and manually with progress indication) Populating views with data, including table-views and picker-views Preloading a "default data" persistent store from XML Deep-copying from one persistent store to another Performance tuning with Instruments, using large photos as the example Background processing, using thumbnail generation as the example Efficient search Seamlessly backing up and restoring with Dropbox Stable integration with iCloud--with full support for multiple accounts, seeding, and de-duplication Web service integration with StackMob




IOS App Distribution & Best Practices (First Edition)


Book Description

Sharing Apple Apps With Your Team, Testers & the World You'll learn how to sign up for Apple Developer Program, generate the various certificates needed, configure your app and submit an app to the App Store for approval, both manually and through automated processes through automated pipelines. You'll learn how to use Apple TestFlight to add internal and external testers and receive feedback and crash reports. iOS App Distribution starts with explaining hurdles everyone faces, such as code signing, provisioning profiles, and how to do manual releases. It'll then go into more advanced topics, including distribution through TestFlight, build customization, automation, and continuous integration. Who This Book Is For This book is for beginner to experienced developers who want to know the best and most common workflow to release an app to the App store, as well as limiting frustration by troubleshooting and debugging common issues and problems associated with distributing apps. Topics Covered in iOS App Distribution & Best Practices App Store quick start: Your quickest way from no account to the App Store. Provisioning, code signing & entitlements: In-depth explanation of what they are, why you need them, and how they work. Distribution channels & TestFlight: Learn different ways of distributing your app, within an enterprise, with internal or external testers. App Store Connect: Learn about the Apple review process, what are the guidelines, what can go wrong and how to dispute them. Build customizations: Learn the ins and outs of configuring Xcode and build configurations. Build automation: Automate builds, build servers, and learn about tools such as fastlane. Continuous integration: Build your own CI pipeline to code, build, test, release, and repeat! After reading this book, you'll take your app build process and distribution to the next level, automate most of its tedious processes, and have an easier time debugging obscure app submission problem




Core Data for iOS


Book Description

Today, virtually every non-trivial iPhone and iPad app must manage data—quickly, smoothly, reliably, and with minimal impact on the CPU to conserve battery life. Core Data, Apple’s ready-made data persistence layer, can help you achieve all these goals. In Core Data for iOS, two leading iOS developers teach you the entire Core Data framework from the ground up. Writing for intermediate-to-advanced iOS developers, Tim Isted and Tom Harrington thoroughly explain how Core Data is used on iOS devices, introduce each of its primary classes, and show how they interact to provide amazing functionality with minimal configuration. You’ll learn how to store, fetch, and validate data; provide it efficiently to views; and much more. Isted and Harrington first give you a firm grounding in the technology, and then present real-world examples. They present multiple sample projects, as well as a start-to-finish, chapter-length case study. Coverage includes • Understanding Core Data’s features, classes, and interactions • Using Core Data in MVC-based iOS app development • Mapping relational data to object models, and building them with Xcode 4’s Data Modeler • Working with managed objects and using UITableView to display them • Creating predicates to match numbers, data, and objects • Maintaining compatibility across versions of an app’s data model • Tracking managed object contexts across view controllers • Using Core Data’s automatic Undo functionality • Integrating abstract entities, entity inheritance, and multiple view controllers into a complete app • Optimizing for iOS devices’ tight memory limits • Diagnosing and fixing common Core Data problems Introducing Addison-Wesley’s new Core Frameworks Series, written for experienced iOS developers by world-class Mac and iOS developers, these are the first comprehensive, code-rich reference guides to Apple’s Core Frameworks.




Core Data in Swift


Book Description

Core Data is intricate, powerful, and necessary. Discover the powerful capabilities integrated into Core Data, and how to use Core Data in your iOS and OS X projects. All examples are current for OS X El Capitan, iOS 9, and the latest release of Core Data. All the code is written in Swift, including numerous examples of how best to integrate Core Data with Apple's newest programming language. Core Data expert Marcus Zarra walks you through a fully developed application based around the Core Data APIs. You'll build on this application throughout the book, learning key Core Data elements such as NSPredicate, NSFetchRequest, thread management, and memory management. Start with the basics of Core Data and learn how to use it to develop your application. Then delve deep into the API details. Explore how to get Core Data integrated into your application properly, and work with this flexible API to create convenience methods to improve your application's maintainability. Reduce your migration difficulties, integrate your Core Data app with iCloud and Watch Kit, and use Core Data in a queue-based environment. By the end of the book, you'll have built a full-featured application, gained a complete understanding of Core Data, and learned how to integrate your application into the iPhone/iPad platform. This book is based on Core Data in Objective-C, Third Edition. It focuses on Swift and adds an additional chapter on how to integrate Core Data with an efficient network implementation, with best practices on how to load and pre-load data into your Swift application. What You Need: Mac OS X El Capitan and iOS 9 and a basic working knowledge of Swift