deprecation of UIStatusBarStyleBlackOpaque in .m of code
adithyabsk opened this issue · comments
here is where the code throws the error
- (id)getRootViewController {
UIWindow *window = [[UIApplication sharedApplication] keyWindow];
if (window.windowLevel != UIWindowLevelNormal) {
NSArray *windows = [[UIApplication sharedApplication] windows];
for(window in windows) {
if (window.windowLevel == UIWindowLevelNormal) {
break;
}
}
}
for (UIView *subView in [window subviews])
{
UIResponder *responder = [subView nextResponder];
if([responder isKindOfClass:[UIViewController class]]) {
return [self topMostViewController: (UIViewController *) responder];
}
}
return nil; <----------flag is thrown here
}
What do you mean by 'flag is thrown'? Does the code crash at that line? Was there a warning of some kind? Thanks.
Are you sure you have the latest version of Appirater? The latest code doesn't have any mention of UIStatsuBarStyleBlackOpaque. Hmm... I think I need to update the cocoapods spec. Do you use CocoaPods or did you clone the project directly?
I cloned the project directly and also have the latest commit.
Can you find the string UIStatusBarStyleBlackOpaque
anywhere in the Appirater code you've checked out? That constant simply doesn't exist in the master branch on Github, which explains why I'm not seeing it.