iphoneobjective-cthree20ttphotoviewcontroller

three20 PhotoVC: changing index of photo


how do I set the T20 PhotoViewer to switch it's current photo to one from its photoSource array at a certain index?

The same way scrolling increments an index and shows a new photo, I want to set a photo index on an init method.

Does anyone know how to do this? Thanks!


Solution

  • Assign a TTPhoto to the TTPhotoViewController's centerPhoto property, where the new TTPhoto you assign is one of the photos in the TTPhotoSource. The TTPhotoViewController will look at the new photo's index, and use it.