You need to create an object that matches the protocol TTPhotoSourceusing the necessary methods. Then you need to populate this data source with objects that match the protocol TTPhoto.
Then you must set the image source property to TTPhotoViewController and use Three20 magic.
In my own experience, I used this infrastructure with only URLs for images and downloaded them using the Three20 framework TTModel. I'm not quite sure how this affects loading images locally.
source
share