Question: I am trying to change `UIImagePickerController` statusBar colour to white and i succeed to set White StatusBar with below Code.

```
View controller-based status bar appearance = YES

-(UIViewController*)childViewControllerForStatusBarStyle {
    return nil;
}

-(UIStatusBarStyle)preferredStatusBarStyle {
    return UIStatusBarStyleLightContent;
}

```

**ScreenShots**

[![1st Image](https://i.stack.imgur.com/PVwVU.jpg)](https://i.stack.imgur.com/PVwVU.jpg)

[![2nd Image](https://i.stack.imgur.com/yNmyW.jpg)](https://i.stack.imgur.com/yNmyW.jpg)

[![3rd Image](https://i.stack.imgur.com/CCap5.jpg)](https://i.stack.imgur.com/CCap5.jpg)

[![4th Image](https://i.stack.imgur.com/2qqiZ.jpg)](https://i.stack.imgur.com/2qqiZ.jpg)

**ISSUE**

when i present `UIImagePickerController`, the status bar is white **(1st Image)** than i select one of album, it will display all video list **(2nd Image)** & than i click on particular video, it will show video preview **(3rd Image)**.

when i press **"Cancel"** button from Video Preview, it pop to all Video list **(2nd Screen)** **(but the status bar becomes black)**

how to set status bar white?

Thanks in Advance.

Answer: 
Implement extension of the `UIImagePickerController` and add 

`-(UIStatusBarStyle)preferredStatusBarStyle {
 return UIStatusBarStyleLightContent;
}`

to the extension.
Please add in info.plist 

View controller-based status bar appearance And
Status bar style 

[![enter image description here](https://i.stack.imgur.com/arA7h.png)](https://i.stack.imgur.com/arA7h.png)