2010-09-14 5 views
1

Je veux changer la couleur de navigation dans le TTPhotoviewcontroller en utilisant Three20.J'ai changé la couleur dans le TTPhotoviewcontroller, mais l'image n'est pas définie dans cette vue. Si j'ai changé la couleur, la barre de navigation occupe une place et l'image n'est pas définie en pleine vue.Comment changer la couleur de la barre de navigation dans TTPhotoviewcontroller en utilisant Three20 dans iPhone

En 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; 
     } 

Alors s'il vous plaît, aidez-moi.

Merci!

Répondre

0

Ajoutez votre code de navigationBarTintColor à viewWillAppear au lieu de init.

1
self.navigationController.navigationBar.translucent=YES; 

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

self.statusBarStyle = UIStatusBarStyleBlackOpaque; 

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