TabBar Support of Three20 iPhone Photo Gallery

Posted by dooonot on Stack Overflow See other posts from Stack Overflow or by dooonot
Published on 2011-01-11T07:46:38Z Indexed on 2011/01/11 7:53 UTC
Read the original article Hit count: 179

Filed under:
|
|
|

Hi all, I wend through this tutorial and created a photo gallery for the iPhone. Now I want to add it to my TabBar project. I already heard, that Three20 doesn't support XIB, so I changed my whole tab bar setup to programmatically. I think I am not too far from a final solution.

I was able to get the photo gallery working in one tab but without functions (click on a pic --> it opens, etc). There is no navigation on top of the page that leads you to the detail image page. I faced this when I removed this from didFinishLaunchingWithOptions-method in app delegate:

// Override point for customization after application launch
TTNavigator* navigator = [TTNavigator navigator];
TTURLMap* map = navigator.URLMap;
[map from:@"demo://album" toViewController:  [AlbumController class]];

[navigator openURLAction:[TTURLAction actionWithURLPath:@"demo://album"]];
return YES;

I had to remove it because otherwise the whole tab bar is not shown. The photo gallery uses the whole screen. I am not sure if it is just not shown, or not loaded. I also tried:

tabbar.hidesBottomBarWhenPushed = NO;

But that did not work at all. I tried to add the TTNavigator-code to loadView(), viewDidLoad() and init() in the AlbumController itself without a result. Does anyone know where I have to put this in order to get it working?

Thanks guys, Cheers, dooonot

© Stack Overflow or respective owner

Related posts about iphone

Related posts about three20