---
slug: "UIWebViewをネイティブっぽくするTips"
title: "UIWebViewをネイティブっぽくするTips"
description: "\n\n\n\n長押しメニューの禁止等\ncss"
url: "https://www.ytyng.com/blog/UIWebViewをネイティブっぽくするTips"
publish_date: "2015-06-08T01:21:25Z"
created: "2015-06-08T01:21:25Z"
updated: "2026-02-27T10:44:09.566Z"
categories: ["iOS"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/7e0b00477fb2441aa636ca5db3119fc4.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "ja"
---

# UIWebViewをネイティブっぽくするTips

<div class="document">


<div class="section" id="id1">
<h3>長押しメニューの禁止等</h3>
<p>css</p>
<pre class="literal-block">body {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
}

*:not(input, textarea) {
  -webkit-user-select: none;
}
</pre>
</div>
<div class="section" id="id2">
<h3>タップ応答速度の改善</h3>
<p>そのままでは、タップした時にダブルタップを少し待つためもっさりする。
改善のために、fastclick.js を導入する</p>
<p><a class="reference external" href="https://github.com/ftlabs/fastclick">https://github.com/ftlabs/fastclick</a></p>
</div>
</div>
