I had an issue with my iOS phonegap app having the status bar overlap the webview in iOS 7. I found this answer which fixed the problem, but the second step, calling
<In the future, if you ever need to use something from iOS 7, such as setNeedsStatusBarAppearanceUpdate
and you need to still support earlier iOS versions, you can first check if the selector is supported:
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)])
{
[self setNeedsStatusBarAppearanceUpdate];
}
Turns out it is unnecessary to add [self setNeedsStatusBarAppearanceUpdate];
and the app ran fine in iOS 6 and iOS 7.