简体   繁体   中英

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM