From the link provided by MidhunMP, I used as below.
/// sets the status bar text color. returns YES on success.
/// currently, this only
/// works in iOS 7. It uses undocumented, inofficial APIs.
BOOL setStatusBarColor(UIColor *color)
{
id statusBarWindow = [[UIApplication sharedApplication] valueForKey:@"statusBarWindow"];
id statusBar = [statusBarWindow valueForKey:@"statusBar"];
SEL setForegroundColor_sel = NSSelectorFromString(@"setForegroundColor:");
if([statusBar respondsToSelector:setForegroundColor_sel]) {
// iOS 7+
[statusBar performSelector:setForegroundColor_sel withObject:[UIColor colorWithRed:235/255.0 green:116/255.0 blue:35/255.0 alpha:1.0]];
return YES;
} else {
return NO;
}
}
Reference
Apple approves any color as status bar color... Yayyyy.... Finally....
I have used above code in 2-3 apps and Apple has approved.
Just while updating app, mention in notes that you are using above code (paste the code in notes, which is very important. Let apple know the code we are using). As we show the code to apple, they know that though we are accessing private api, we are not harming anything. So based on my request, they approved 2 apps on the app store. Apps are BaitBite, Lovely Collectibles & Q8Rent