views:

211

answers:

4

Whenever I add the TTPhotoViewController to my window , it appears without a top navigation bar and once I tap the image, the bottom navigation overlay and the status bar (the springboard one) will disappear permanently. How do I create a top navigation bar so I can add a button to hide the view after it was shown and how do I restore the overlays/toolbars after a tap?

[window addSubview:viewController.view];

I am not using Three20's messed up URL mapping crap because I see no point in doing that. I think that might be causing the problem but I think there is a sensible solution. Using the URL crap is not a solution for me.

A: 

Solved by changing some of the view controllers code. For some reason the show/hide function was always being called with the 'hide' argument. No idea why though,

Nick Brooks
A: 

I know you've already solved this, but in case others run in to this thread: a way to avoid this issue without any custom code is to make sure TTPhotoViewController is the rootViewController of a UINavigationController

evanflash
Yes, sorry for the delay. Make a UINavigation controller as follows[[UINavigationController alloc] initWithRootViewController:myTTPhotoViewController]
evanflash
A: 

evanflash: can you elaborate on how to do that?

Thanks

Noam
A: 

Ye, i would like to know how aswell.

ludvig