开发者

Using Three20's TTThumbsViewController in conjunction with TabBarController

开发者 https://www.devze.com 2022-12-26 21:37 出处:网络
I\'ve been struggling to get TTThumbsViewController to work with my application\'s tab bar and navigation.Bit-by-bt, I\'ve solved most of the problems.The first problem is what I see when I get to wha

I've been struggling to get TTThumbsViewController to work with my application's tab bar and navigation. Bit-by-bt, I've solved most of the problems. The first problem is what I see when I get to what is supposed to be a full-screen image view. It is creating a white block where the status bar used to be. See screen-shots...

alt text http://irovr.com/img/temp/a01.png alt text http://irovr.com/img/temp/a02.png alt text http://irovr.com/img/temp/a03.pn开发者_运维问答g alt text http://irovr.com/img/temp/a04.png Any suggestions?


I ended up adding the view controller to a navigation controller and modally displaying that.


My PhotoBrowserViewController is a subclass of TTThumbsViewController

PhotoBrowserViewController *photoView = [[PhotoBrowserViewController alloc] init];
photoView.delegate = self;
photoView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;

UINavigationController *photoNav = [[UINavigationController alloc] init];
[photoNav pushViewController:photoView animated:NO];
[photoView release];

[self presentModalViewController:photoNav animated:YES];

[photoNav release];

I did this code when I was beginning iPhone development and it's probably crap. Since then I've avoided tab controllers because of all the problems I encountered with them.

0

精彩评论

暂无评论...
验证码 换一张
取 消