ios - Scaling UIWebView to fit full screen in iOS5 and iOS6 -


i have problem scaling uiwebview. want webview running in fullscreen on both versions (ios5 , ios6). had turn off "use autolayout" app running on ios5 too. problem webview higher the ios5 screen.

my question:

is there way fit view both devices?

you need manually code view change size based on screen size.

you can fetch screen size (specifically height):

[[uiscreen mainscreen] bounds].size.height; [[uiscreen mainscreen] bounds].size.width; 

then set size of uiwebview these values.

webview = [[uiwebview alloc] initwithframe:cgrectmake(0, 0, 320, [[uiscreen mainscreen] bounds].size.height)]; 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -