Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7535441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:18:09+00:00 2026-05-30T06:18:09+00:00

I developed an iPhone html5 app without actually compiling it. I tested as a

  • 0

I developed an iPhone html5 app without actually compiling it. I tested as a web app (with a bookmark on home screen and son on).

I used this snippet to make it look nice on iphone:

<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=0.5, maximum-scale=0.5" />

Everything was peachy but when i finished everything and tried to compile as a real app (using phonegap as a wrapper) i discovered that the above snippet is totally ignored and the app looks zoomed in.

I found a similar issue on github and the fix is:

I fixed it by adding this to the PhoneGapDelegate.m on line 180:

webView.scalesPageToFit = YES;

But there are two issues:

  • the web page is not available anymore (i guess they moved out or something)
  • i don’t have any freaking PhoneGapDelegate.m in my project! The only somehow related file is AppDelegate.m or smth which doesn’t help at all.

Another fix that i found is this which… it doesn’t work. I get an error on this line:

webView.frame = webViewFrame; // `webView` undeclared (first use in this function)

So… Any idea on how to make this to work?

Thanks!

EDIT

I finally found the answer

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:18:11+00:00Added an answer on May 30, 2026 at 6:18 am

    The Answer for the lazy add this into your PhoneGap.plist:

    EnableViewportScale : YES
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can an iphone app developed using html5, CSS and Javascript be sold through Apple
I just developed an iPhone audio streaming application...Now it can play audio files without
I've developed an iPhone app that has been running MPMoviePlayer (pre 3.2 SDK) with
I've developed a web-based mobile application using Jquery Mobile and HTML5. Now, can I
According to Apple's guide line, an iPhone app's launch image/splash screen should be a
i am making an iphone app that get data from web ,i use HPPLE
I'm using this sample code to view a PDF in my iPhone app: http://developer.apple.com/library/ios/#samplecode/ZoomingPDFViewer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010281-Intro-DontLinkElementID_2
I have developed my iPhone application and now I am testing it with instruments
i have developed an iphone application where i have generated a terms and condition
I have a project that was developed for iPhone OS 2.0. I am transforming

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.