arashpayan / appirater

A utility that reminds your iPhone app's users to review the app.

Home Page:http://arashpayan.com/blog/2009/09/07/presenting-appirater/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Sorry for being vague. Here is a picture of the warning:
deprecation

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.