Home How to make navigation bar transparent with a back button and the webView will display until the edge of the status bar
Reply: 0

How to make navigation bar transparent with a back button and the webView will display until the edge of the status bar

user1057
1#
user1057 Published in July 22, 2018, 10:26 am

How to make navigation bar transparent with a back button and the webView will display until the edge of the status bar.

My webview constraints are all set to the edge of Superview

I have tried this but I got the following results.

I have also tried the following code at appdelegate.m

UINavigationBar *navigationBarAppearance = [UINavigationBar appearance];
navigationBarAppearance.backgroundColor = [UIColor clearColor];
[navigationBarAppearance setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
navigationBarAppearance.shadowImage = [[UIImage alloc] init];

[[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60) forBarMetrics:UIBarMetricsDefault];

But the webview also does not load until the status bar. It will stop at the navigation bar.

I have run out of idea, please help.

Displaying the WebView Constraints, it just won't display pass the Navigation bar.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.321014 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO