Skip to content

Instantly share code, notes, and snippets.

@matsuyoro
Last active November 13, 2015 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsuyoro/2db0a736af80a5d246a5 to your computer and use it in GitHub Desktop.
Save matsuyoro/2db0a736af80a5d246a5 to your computer and use it in GitHub Desktop.
iOSアプリ等でwebviewを表示する際に、拡大はするがユーザーがピンチで拡大や、スクロールができないようにする。 ref: http://qiita.com/matsuyoro/items/2240b29e14d23bda102f
_webView.scalesPageToFit = YES;
<html>
<head>
<meta name='viewport' content='width=device-width,user-scalable=no' />
</head>
<body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment