8
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

XcodeでWebKit Viewの自動リンクを無効化する方法

Last updated at Posted at 2018-03-24

当記事について

経緯

iOSアプリにて、WebKit Viewを使用したところ、閲覧したURL内の「サンボマスター」という単語に勝手にリンクがついたので、自動リンクを無効化するための方法を調べた

バージョン情報

  • Xcode
    • Xcode 9.2

手順

  1. Main.storyboardを開く
  2. WebKit Viewの部品を選択する
  3. inspectorペインの1番左にある、Show the Attribute inspectorを選択する
  4. Data Detectorsにて、以下の中から無効化したい自動リンクの種類のチェックを外す
  • Phone Number
  • Link
  • Address
  • Calendar Event
  • Tracking Number
  • Flight Number
  • Lookup Suggestion

image.png

8
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?