cocoa touch - Status Bar doesnot display when adding UIImagePickerController -


I want to show a camera view between the navigation bar; Tab bar, so I added the UIImagePickerController object as follows.

  picker = [[Camera3DViewController alloc] init]; Picker.allowsImageEditing = No; Picker.sourceType = UIImagePickerControllerSourceTypeCamera; Picker.showsCameraControls = No; Picker.view.transform = CGAffineTransformScale (picker.view.transform, 1, 1); [Self.view addSubview: picker.view]; [Picker ViewWhippe: Yes]; [Picker viewDidPayr: yes];  

Note that Camera3DViewController is a subclass of UIImagePickerController class.

The camera display is displayed but the status bar is not shown, so I use,

  [[UIApplication ShareApp] setStatusBarHidden: Yes with Animation: No] ;  

But still it does not show status bar.

Please guide me to solve the above problem.

I subclassed UIImagePictureController and added:

  [[UIApplication ShareApp] setStatusBarHidden: No Animated: Animated]; }  

[super viewDidAppear: animated] is important to show the status after; Call, otherwise it did not appear. Also it is important to call the Superclass method.


Comments