UIWebView in full screen hides status bar
Posted
by
iPhone
on Stack Overflow
See other posts from Stack Overflow
or by iPhone
Published on 2012-11-20T10:51:04Z
Indexed on
2012/11/20
11:01 UTC
Read the original article
Hit count: 189
I am opening video in UIWebView with following code.
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
NSLog(@"Navigatin Type %d %@",navigationType, request);
if (navigationType == 0) {
self.navigationItem.leftBarButtonItem = backBarBtn;
[self showVideoInWebView:[request.URL absoluteString]];
return NO;
}
return YES;
}
-(void)showVideoInWebView:(NSString *)urlStr
{
[mainWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]]];
}
but when my mainWebView opens in full screen it hides my status bar.
I don't want to hide status bar
then how can I show my status bar?
© Stack Overflow or respective owner