with View controller based status bar appearance to NO in plist it would work.
For example->
Lets say in viewcontroller1
, i have below piece of code
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear: animated];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:YES];
}
And i push viewcontroller2
from viewcontroller1
which has below code
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear: animated];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
}
with above code when tested in simulator, it perfectly animated the changes.