Book Image

iOS Programming Cookbook

Book Image

iOS Programming Cookbook

Overview of this book

Do you want to understand all the facets of iOS programming and build complex iOS apps? Then you have come to the right place. This problem-solution guide will help you to eliminate expensive learning curves and focus on specific issues to make you proficient at tasks and the speed-up time involved. Beginning with some advanced UI components such as Stack Views and UICollectionView, you will gradually move on to building an interface efficiently. You will work through adding gesture recognizer and touch elements on table cells for custom actions. You will work with the Photos framework to access and manipulate photos. You will then prepare your app for multitasking and write responsive and highly efficient apps. Next, you will integrate maps and core location services while making your app more secure through various encryption methods. Finally, you will dive deep into the advanced techniques of implementing notifications while working with memory management and optimizing the performance of your apps. By the end of the book, you will master most of the latest iOS 10 frameworks.
Table of Contents (22 chapters)
iOS Programming Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

On-demand resources


The on-demand resources are contents that are hosted in Apple Store servers and not in the app bundle of the app. When you download the app from App Store, the content will not be available until the app requests them. The app later will request the on-demand resources, and the operating system will take care of downloading and storing the content. The resources types can be of any type, except for executable source code. In this recipe, we will see how to manage the on-demand resources and download them.

Getting ready

Before getting started with on-demand resources, let's get more information about it to help you get a better understanding. Let's take a look at the benefits of using on-demand resources in your app:

  • Small App Size: The small app size helps the user to download the app fast and gives the limited storage devices the opportunity to download more apps.

  • Lazy download contents: Some of your app's content is only needed in certain states. Keeping these resources...