I want to hide the status bar for specific view controllers, not for all. then I tried this,
[[UIApplication sharedApplication] setStatusBarHidden:YES]; in the `.AppDelegate.m` inside the `didfinishlaunchwithoption` but it didn't work. and also it is deprecated.
then I tried in my viewcontroller
- (BOOL) prefersStatusBarHidden{
return YES;
}
this also didn't work. anyone can help me with this.thnak you I don't want to use any deprecated methods here