2011-09-23 51 views
0

我對imagePicker,我需要證明的攝像頭,一些覆蓋view.But它隱藏狀態欄,請告訴我,我怎麼能在這裏表現出來沃金是一個代碼顯示在相機imagePicker狀態欄

imagePickerController = [[UIImagePickerController alloc] init]; 
imagePickerController.delegate = self; 

imagePickerController.sourceType = sourceType; 

imagePickerController.showsCameraControls = NO; 

imagePickerController.cameraViewTransform = CGAffineTransformScale(imagePickerController.cameraViewTransform, 0.5f, 0.5f); 


imagePickerController.cameraOverlayView = self.tabBarController.view; 

self.navigationController.navigationBarHidden = YES; 

imagePickerController.navigationBar.barStyle = UIBarStyleBlack; 
[self presentModalViewController:imagePickerController animated:YES]; 
+1

可能重複:http://stackoverflow.com/questions/3542350/ios-sdk-how-to-get-the-status-bar-back-when-using-uiimagepickercontroller – peko

+0

@peko準確.. ....... –

+0

@peko但仍無法找到 – user939171

回答

0

試試這個

[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO]; 

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES]; 
+0

工作解決方案,我都試過,但它的不工作:( – user939171

+0

抱歉忘記包括第二行 –

+0

仍然不能正常工作請告訴更多 – user939171