WebView does not resize to fit the screen

Discussion in 'iOS Programming' started by blueshogun96, Dec 28, 2014.

  1. blueshogun96 macrumors regular

    blueshogun96

    Joined:
    Nov 24, 2012
    #1
    I recently started writing a blog/rss reader app for my blog, and so far, it works without any major issues except that the web page content will not resize to fit the screen on my iPhone. Not sure why this won't work. Also related, when I switch to landscape mode, there's a small white space between the top of the app and the web view.

    What I've tried:
    - Sizing the added web view in story builder to fill the storyboard.
    - Clicked the "Scale Pages to Fit" checkbox.

    Couldn't find or think of anything else to try.

    My code is almost entirely based off of this tutorial: http://www.touch-code-magazine.com/tutorial-building-advanced-rss-reader-with-ios6/2/

    I'm still rather new to writing non-gaming/OpenGL ES oriented apps for iOS, so I don't know why this isn't working. Any ideas? Thanks.

    Shogun.
     
  2. Ubuntu macrumors 68000

    Ubuntu

    Joined:
    Jul 3, 2005
    Location:
    UK/US
    #2
    In the Storyboard when you select the web view is the Scales Page To Fit checkbox checked?
     
  3. blueshogun96 thread starter macrumors regular

    blueshogun96

    Joined:
    Nov 24, 2012
    #3
    As I stated in the OP, yes, it is checked.

    Shogun.
     
  4. Ubuntu macrumors 68000

    Ubuntu

    Joined:
    Jul 3, 2005
    Location:
    UK/US
    #4
    Oops, did not see that. I noticed there's a sample project available that you might want to compare your work with.

    More specifically, make sure your web view has the same settings as shown in this screenshot I've uploaded as the sample project appears to work OK.
     

    Attached Files:

Share This Page