views:

501

answers:

4

Hi, .. 2 questions.

I am only using Three20 for a gallery in my app.

When I push my .. : TTThumbsViewController from another view, the navigation bar is not the color I want it to be (as per the rest of my app). I have set up a TTDefaultStyleSheet as per this stackoverflow QA. Is there something special I have to do as I am only using the TTThumbsViewController?

The thumbs view is also created with extra space at the top, as though it is leaving room for a navigation controller, without knowing that one is already there. How can I tell the TTThumbsViewController to use the existing uinavigationcontroller? Or behave as though it is?

MYThumbsViewController *mYThumbsViewController = [MYThumbsViewController alloc];
[self.navigationController pushViewController:mYThumbsViewController animated:YES];

The problem depicted graphically:

alt text

Thanks!

+2  A: 

Hi man, i'm from Mexico city, and you know? I founded the solution.

In my ThumbsViewController i have this:

  • (void)viewWillAppear:(BOOL)animated {

    [super viewWillAppear:animated];
    UINavigationController* navController = self.navigationController;
    
    
    navController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
    
    
    [self setWantsFullScreenLayout:YES];
    

    }

and the thumbs it's now in the correct position.

that's all.

Sorry for my english. Bye.

Misa
Thanks, works great.
michael
@Misa---> I want to change the bar style ,if i gave any other style other than UIBarStyleBlackTranslucent then i get the above problem.Thanks.
Warrior
+4  A: 

If you do not want to use a transparent navigation bar, this issue can be corrected by implementing the following method:

- (void) updateTableLayout {

self.tableView.contentInset = UIEdgeInsetsMake(5, 0, 0, 0);
self.tableView.scrollIndicatorInsets = UIEdgeInsetsMake(TTBarsHeight(), 0, 0, 0);}
This solution, not Misa's (sorry Misa), totally worked for me. Thanks...randomly generated username :)
Abel Martin
A: 

Ever solved this problem?

I facing the same issue. The viewWillAppear method in my TTThumbsViewController subclass didn't solve it.

Fiddy
A: 

I'm also having this problem. Anyone solved this?

Stefan

related questions