2016-09-23 193 views
0

在导航栏上观察到一种奇怪的行为,添加了白色间隔。 如何从导航栏中删除它的空白。导航栏显示空白

-(void)viewDidLoad { 
    [super viewDidLoad] 
    [self loadUI]; 
} 

-(void)loadUI { 

    /// set attributes for Navigation Bar 
    [[self navigationController] setNavigationBarHidden:NO animated:NO]; 

    self.navigationItem.title = @"Welcome"; // Title of Navigation Bar 
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:(243/255.0) green:(178/255.0) blue:(128/255.0) alpha:1]; 
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor]; 
    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor]}; 
    self.navigationController.navigationBar.translucent = NO; 
} 

enter image description here

回答

0

移除从阴影图像的图像和背面图像从故事板导航控制器导航项目。