2016-09-23 195 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

移除從陰影圖像的圖像和背面圖像從故事板導航控制器導航項目。