1
我使用Three20創建縮略圖視圖。我想將導航欄的風格從黑色半透明變成黑色。如果我給黑色透明,它可以正常工作,如果我更改它,縮略圖視圖像這樣降低image。如何更改它?請幫助我。謝謝。如何更改iphone中Three20 TTThumbsviewcontroller的導航欄風格?
我使用Three20創建縮略圖視圖。我想將導航欄的風格從黑色半透明變成黑色。如果我給黑色透明,它可以正常工作,如果我更改它,縮略圖視圖像這樣降低image。如何更改它?請幫助我。謝謝。如何更改iphone中Three20 TTThumbsviewcontroller的導航欄風格?
你可以重寫init方法,並在那裏改變你想要的。例如:
// 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;
}
對此有何幫助?我有同樣的問題。 – Chris 2010-07-25 17:39:13
@Chris對不起,直到日期的正面結果 – Warrior 2010-07-28 15:48:44
我實際上找到了一個解決方案:http://stackoverflow.com/questions/3286190/changing-three20-navigationbartintcolor-causes-gap-at-top-of-image-gallery- thumbv – Chris 2010-08-03 01:32:25