Search code examples
iphoneiosthree20ttphotoviewcontroller

TTPhotoViewController get current center image?


Is there a way to get a current image to an object of UIImage? I have tried casting TTPhoto to UIImage, but it doesn't work.


Solution

  • I figured it out. We can use TTPhotoViewController's instance variable centerImageIndex. This will give us the index of the current image.