i am trying to hide the status bar only for iPhone 6 and 6+ this is what i tried so far.
if (screenWidth == 375) {
// Remove status bar for iPhone 6
[[UIApplication sharedApplication] setStatusBarHidden:YES
withAnimation:UIStatusBarAnimationFade];
}else if (screenWidth == 414){
// Remove status bar for iPhone 6 +
[[UIApplication sharedApplication] setStatusBarHidden:YES
withAnimation:UIStatusBarAnimationFade];
}
You can do (changing plist file):
set Status bar is initially hidden = YES
add row:
View controller-based status bar appearance = NO