I trying to hide the status bar when click on image. I am calling the BOOL Method when click on image by:
[self prefersStatusBarHidden];
and here the method:
-(BOOL)prefersStatusBarHidden {
NSLog(@"%@",hideBar);
if ([hideBar isEqualToString:@"YES"]) {
NSLog(@"hide");
return YES;
}
return NO;
}
when I click on the image I get the "NSLog("hide")", that mean that the "if statement" is work but the status bar doesn't get hide, what am I doing wrong ?