0

I have a responsive website which i tried adding in uiwebview. When testing in the simulator with iphone 5 it displays the website correctly, but when displaying on iphone 6 it leaves about 20px blank.

I have trief different solutions like here; UIWebView dones't resize correctly when orientation change?

But without result.

Is there anyone who can help me on the way?

Community
  • 1
  • 1
D13367
  • 1
  • Can you post some of your css? – winhowes Jul 15 '15 at 23:33
  • @media (max-width: 782px) { .admin-bar #wrapper, .admin-bar #mobile-site-navigation { padding-top: 46px; } .admin-bar #header-wrapper.header-sticked { top: 46px; } } I'm using A Wordpress website with a theme, I have tried different wordpress websites without result – D13367 Jul 15 '15 at 23:48
  • Did you check webview's constraints? Can you share some screenshot link? – ntsh Jul 16 '15 at 01:13
  • I'm not sure if you meant this but: http://imgur.com/JEVw7FU – D13367 Jul 16 '15 at 10:45
  • @D13367 I meant the screenshot when you run the app on iphone 6 – ntsh Jul 16 '15 at 11:41
  • Oh okay, here is the screenshot: http://imgur.com/w1YWKcr – D13367 Jul 16 '15 at 12:39
  • Looks like you would have to set the storyboard constraints on the view of the webview so that it takes the whole width of the screen. – ntsh Jul 16 '15 at 17:56

0 Answers0