views:

251

answers:

1

UIImagePickerController changes statusbar style to black/opaque. I want to keep status-bar style black/translucent. I'm finding a way to prevent status bar style changing. Or making it transited smoothly. Now, presenting UIImagePickerController changes status-bar style instantly, even -[presentModalViewController:picker animated:YES] specified.

Any method, welcome, including hacking or private method. This is an app for AppStore, however I want to even try.

A: 

If you want to completely disable changing the status bar style, you could add a UIApplication category that blocks it.

@implementation UIApplication (MyCategory)
- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle {}
@end

If that works, but you want to selectively disable changes, try subclassing UIApplication so you can call super when you want to pass the change through.

drawnonward
Oh it doesn't work. I also did tried subclassing UIApplication, but it didn't work too. Maybe UIImagePickerController is using something private method.
Eonil