romaonthego / REFrostedViewController

iOS 7/8 style blurred view controller that appears on top of your view controller.
MIT License
2.97k stars 494 forks source link

Performance: REFrostedViewControllerUIKitIsFlatMode is NO when it should be YES #161

Open imagine opened 8 years ago

imagine commented 8 years ago

REFrostedViewControllerUIKitIsFlatMode is NO, even on iOS 9, if REFrostedViewController is the main storyboard's root view controller.

UIApplication.sharedApplication.keyWindow is nil at this time, so it goes into [[UIWindow new] performSelector:@selector(tintColor)] != nil However, tintColor is nil at this time, regardless of appearance settings, because the app delegate hasn't yet been instantiated.