Book Image

iOS and OS X Network Programming Cookbook

By : Jon Hoffman
Book Image

iOS and OS X Network Programming Cookbook

By: Jon Hoffman

Overview of this book

Table of Contents (15 chapters)
iOS and OS X Network Programming Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using the UIImageView+MKNetworkKitAdditions.h category and caching the images


In this recipe we will expand on the ITunesEngine header file created in the Creating and using the MKNetworkKit engine recipe of this chapter by adjusting the caching settings of MKNetworkEngine. We will also use the UIImageView+MKNetworkKitAdditions category to download images and display them once the download is complete.

This recipe will introduce two concepts: the MKNetworkKit caching capability and using the categories that come with MKNetworkKit. We will also get a better understanding of why we subclass MKNetworkEngine.

Getting ready

This recipe is compatible with both iOS and OS X. We will need to download the framework from https://github.com/MugunthKumar/MKNetworkKit and add it to our project. Additionally, we need to add the following four frameworks:

  • ImageIO.framework

  • Security.framework

  • SystemConfiguration.framework

  • CFNetwork.framework

How to do it…

We will begin by defining the ITunesEngine class, just like...