Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何设置 T20 PhotoViewer 以将其当前照片从其 photoSource 数组中的某个索引处切换为一张?
与滚动增加索引并显示新照片的方式相同,我想在 init 方法上设置照片索引。
有谁知道如何做到这一点?谢谢!
将 a 分配TTPhoto给TTPhotoViewController的centerPhoto属性,其中TTPhoto您分配的新照片是 中的一张照片TTPhotoSource。将TTPhotoViewController查看新照片index并使用它。
TTPhoto
TTPhotoViewController
centerPhoto
TTPhotoSource
index