Graphics Reference
In-Depth Information
Figure 14.1 The image carousel in action
The images in the carousel are 800×600-pixel PNGs of around 700KB each—slightly too
large for an iPhone 5 to load within one-sixtieth of a second. These images are loaded on-
the-fly as the carousel scrolls, and (as expected) the scrolling stutters. The Time Profiler
instrument (see Figure 14.2) reveals that a lot of time is being spent in the UIImage
+imageWithContentsOfFile: method. Clearly, image loading is our bottleneck.
Search WWH ::




Custom Search