Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TTPhotoViewController: Images not loading until swipe

I am trying to implement TTPhotoViewController in a sample iPad application. I have implemented properly TTPhotoSource and TTPhoto protocols. The TTPhotoViewController does show image, but not until swiped.

The right and left button in the tab bar below doesnt seem to work at all, they never change the image displayed. The UIActivityIndicatorView is never put up, nor the right and left buttons are validated when last or first images are reached.

I am initializing the subclass of TTPhotoViewController as a rootViewController of a UINavigationController object which I am adding it onto a view.

This rules out the possibility of the problem faced here: http://three20.stackexchange.com/questions/78/ttphotoviewcontroller-not-loading-images-immediately

What else am I missing? Anybody faced similar problems and found a way around?

Thanks, Raj

like image 579
Raj Pawan Gumdal Avatar asked Dec 02 '25 09:12

Raj Pawan Gumdal


1 Answers

You have most likely overriden the viewWillAppear method in your TTPhotoViewController subclass but forgot to call the super method.

like image 192
Jan Soltis Avatar answered Dec 05 '25 08:12

Jan Soltis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!