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
After some debugging, I found out the problem, this is just a quick fix:
In TTModelViewController class of Three20UI project, find the method
-refresh
and comment the if condition:
if (_isViewAppearing)
Eventually -updateView
method will be called which was not being called previously.
This is a quick fix, have to investigate about the bool: _isViewAppearing
later.