Challenge: Shrinking the Main Image

When moving from the list of Possessions presented by the ItemsViewController to the detailed view of the ItemDetailViewController, you may notice a considerable stutter in the animation. This stutter is due to the large size of image that has to be loaded and drawn. To get rid of the stutter, when an image is added to the cache for the first time, shrink the image to a more manageable size.

Get iOS Programming: The Big Nerd Ranch Guide, Second 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.