1
我想使用Three20更改TTPhotoviewcontroller中的导航颜色。我已更改TTPhotoviewcontroller中的颜色,但图像未在该视图中设置。如果我改变了颜色,导航栏占据了一些地方,图像没有设置为全景。如何在iPhone中使用Three20在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;
}
所以,请帮助我。
谢谢!