2014-02-18 64 views
1

由於某種原因,當我推入下一個視圖時,狀態欄變黑。狀態欄由於某種原因轉爲黑色

它應該是什麼樣子:

enter image description here

是什麼樣子:

enter image description here

這僅適用於一組特定的視圖控制器。以下是我的代碼:

//transitioning to uploadpicture, passing currentUser 
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil]; 
    UploadPictureViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"uploadPictureVC"]; 

    [self.navigationController pushViewController:viewController animated:YES]; 
+1

更改上傳圖片查看控制器的視圖背景顏色清除顏色 –

回答

1

嘗試將此添加到您的UploadPictureViewController實現文件中。

-(UIStatusBarStyle)preferredStatusBarStyle { 
    return UIStatusBarStyleLightContent; 
}