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

ストーリーボードのナビゲーションコントローラからナビゲーション項目から影画像と裏から画像を削除しました。

関連する問題