7. Working with Images

On iOS, images and views have distinct roles. Unlike views, images have no onscreen presence. Although views can use and display images, they are not themselves images, not even UIImageView objects, which have the word “image” in their class name. Images are abstract representations of pictures, storing the data that makes up those pictures. This chapter leaves views to the side and focuses just on images. It introduces Cocoa Touch images, specifically the UIImage class, and teaches you all the basic know-how you need for working with image data on the iOS. In this chapter, you’ll learn how to load, store, and modify image data in your applications. You’ll see how to add images to views and how to convert views into images. ...

Get The iOS 5 Developer’s Cookbook: Core Concepts and Essential Recipes for iOS Programmers, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.