facebook/three20 — Issue #780: Changing Navigation Tint Introduces 44px Gap
Author: dirkoneill
Created: 2012-02-25 00:04:22+00:00
State: open

I'm extending the TTThumbsViewController class for my own photo gallery and when I change the navigation tint color back to my application color, a huge gap of space (44px?) is introduced at the top of the of the photo gallery. As soon as I take out my code to change the tint color, the photo gallery lines up perfectly below the
navigation bar.

I've tried changing tint color using:

self.navigationBarTintColor = [UIColor colorWithHexString: @"#224272"];
self.navigationController.navigationBar.tintColor = [UIColor colorWithHexString: @"#224272"];

Both have the same result. The current workaround is to implement the following code in my custom controller:

- (void)updateTableLayout {
self.tableView.contentInset = UIEdgeInsetsMake(4, 0, 0, 0);
self.tableView.scrollIndicatorInsets = UIEdgeInsetsMake(0, 0, 0, 0);
}