Discussion Forums  >  WebViews and HTML for Mobile

Replies: 2    Views: 80

goswildcat
Aspiring developer
Profile
Posts: 4
Reg: Oct 28, 2012
wyong
4,190
11/19/12 03:12 AM (13 years ago)

Screen shrinks in Xcode Simulator

This maybe a newbie question, i am writing an app that on needs basic text and some simple images. When i use the WYSIWYG editor for the custom html page and run the app the font shrinks completely on one of the screen and stays large on another. I havent changed any of the settings, and i have no idea why. One screen looks like this https://www.dropbox.com/s/gsw9beg4x9n7plb/screen%20big.png and the small screen looks this https://www.dropbox.com/s/elki50uj5c565kr/Screen%20small.png Thanks for any help
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
11/19/12 03:53 AM (13 years ago)
Try adding this html code: <meta content="width=device-width; initial-scale=1.0; maximum-scale=2.0; user-scalable=1;" name="viewport" />
 
goswildcat
Aspiring developer
Profile
Posts: 4
Reg: Oct 28, 2012
wyong
4,190
like
11/19/12 03:59 AM (13 years ago)
Works perfectly Thanks You !!!!!!!!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.