I am using UIScrollView on iOS 9 with two pages and for the first page I want the statusbar text to be black and the second page white. So when I slide to the second page I want the statusbar color to turn white and black if I slide to the first page.
I have tried setting the UIViewControllerBasedStatusBarAppearance to false in the plist file and then programmatically calling:
UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.BlackTranslucent;
SetNeedsStatusBarAppearanceUpdate();
But without luck, the statusbar text appears white and it stays white even when calling UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.BlackTranslucent;
Any idea how to manually change the statusbar text color within the same view controller?