dogo / SCLAlertView

Beautiful animated Alert View. Written in Objective-C
MIT License
3.5k stars 534 forks source link

UIStatusBarStyle always appears as 'UIStatusBarStyleDefault' #274

Closed EricoGT closed 6 years ago

EricoGT commented 6 years ago

Hello! I have a project using the 'SCLAlertView' (Object-C) pod and even changing the statusBarStyle property to UIStatusBarStyleLightContent when the alert appears on the screen the statusBar shows as UIStatusBarStyleDefault. This project uses "View controller-based status bar appearance = YES" and is in iOS version 11.4. What could be happening?

dogo commented 6 years ago

Hi @EricoGT ,

You should set the statusBarStyle

/** Set status bar style.
 *
 * Status bar style
 */
@property (nonatomic) UIStatusBarStyle statusBarStyle;

Another question, which init method are you using? default init or newWindow?

EricoGT commented 6 years ago

I use:

SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];
alert.statusBarStyle = UIStatusBarStyleLightContent;

But it appears UIStatusBarStyleDefault.

dogo commented 6 years ago

It's broken since 1.1.3 =(. I'll try to fix it

EricoGT commented 6 years ago

I thank you for the effort.

EricoGT commented 6 years ago

Please take a look when you can: https://drive.google.com/open?id=1FISbGbdOh8wh3g3AiHeHPGrDTUGkb2Ym

EricoGT commented 6 years ago

"Ainda há esperança de solução?"

dogo commented 6 years ago

Estou viajando a trabalho, não sei quando terei tempo de ver isso, mas sua solução acima não corrige o problema. Desculpa

dogo commented 6 years ago

Please fill the issue template

dogo commented 6 years ago

Proper issue #280