I am using Three20 to create a thumbnail view. I want to change the navigation bar style to black from black translucent.If i give blacktranslucent it works fine ,if i change it the the thumb nail view is lowered like this image.How can i change it? Please help me out.Thanks.
views:
413answers:
1
+1
A:
You can override the init method, and change whatever you want there. For instance :
// MyThumbsController inherits from TTThumbsViewController
@implementation MyThumbsController
...
- (void) setCustomNavigationBar
{
// Navigation bar logo
UIImage *barLogo = [UIImage imageNamed:@"bar-logo.png"];
UIImageView *barLogoView = [[UIImageView alloc] initWithImage:barLogo];
self.navigationItem.titleView = barLogoView;
// Navigation bar color
self.navigationBarTintColor = HEXCOLOR(0xb22929);
}
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// Customization
self.hidesBottomBarWhenPushed = NO;
[self setCustomNavigationBar];
}
return self;
}
Nassif Bourguig
2010-10-01 13:24:32