O'Reilly logo

Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming by Erica Sadun, Rod Strougo, Maurice Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Challenges

1. When the screen rotates from portrait to landscape, stay on the same car by aligning the left edge of the car image with the left edge of the screen. Doing this requires knowing how big an individual car is, what part of the content view is being shown, and how much width defines a car. Remember that zooming changes the paging width.

2. In the add/view scene, it is possible to view the data for a particular car. When the user opens the car image scene, start on the image that corresponds to the car currently being viewed. Because there might be more cars than images, use modulo divide to set the car number. % is the modulo operator for ints in Objective-C. Implementing this requires communication between the add/car scene controller ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required