如何在iPhone中使用Three20更改TTPhotoviewcontroller中导航栏的颜色

如何在iPhone中使用Three20更改TTPhotoviewcontroller中导航栏的颜色,iphone,colors,ttphotoviewcontroller,navigationbar,Iphone,Colors,Ttphotoviewcontroller,Navigationbar,我想使用Three20更改TTPhotoviewcontroller中的导航颜色。我已更改了TTPhotoviewcontroller中的颜色,但未在该视图中设置图像。如果我更改了颜色,导航栏会占据一些位置,并且图像不会设置为全视图 在TTPhotoViewController.m中 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { if (se

我想使用Three20更改TTPhotoviewcontroller中的导航颜色。我已更改了TTPhotoviewcontroller中的颜色,但未在该视图中设置图像。如果我更改了颜色,导航栏会占据一些位置,并且图像不会设置为全视图

在TTPhotoViewController.m中

      - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
            if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
               self.statusBarStyle = UIStatusBarStyleBlackTranslucent;
               self.navigationBarStyle = UIBarStyleBlackTranslucent;
               self.navigationBarTintColor = nil;
             ( if i use this below code, image is doesn't set to the full view in TTPhotviewcontroller )
               // self.navigationBarTintColor = [UIColor colorWithRed:34/256.0 green:125/256.0 blue:144/256.0 alpha:1.0];   
              // self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:34/256.0 green:125/256.0 blue:144/256.0 alpha:1.0];
                  self.wantsFullScreenLayout = YES;
                  self.hidesBottomBarWhenPushed = YES
                  return self;
        }
所以请帮帮我


谢谢

将导航BarIntColor代码添加到视图将显示而不是初始化。

将导航BarIntColor代码添加到视图将显示而不是初始化

self.navigationController.navigationBar.translucent=YES;

self.navigationBarTintColor = RGBCOLOR(111,63,35);

self.statusBarStyle = UIStatusBarStyleBlackOpaque;

_toolbar.tintColor = RGBCOLOR(111,63,35);