<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xyk</author_name>
  <author_url>https://blog.hatena.ne.jp/xyk/</author_url>
  <blog_title>xyk blog</blog_title>
  <blog_url>https://xyk.hatenablog.com/</blog_url>
  <categories>
    <anon>ios</anon>
    <anon>swift</anon>
    <anon>UITextView</anon>
  </categories>
  <description>環境: Swift3 iOS10 UILabel ではなく UITextView の attributedText に NSLinkAttributeName をセットすることで簡単にできた。 クリック時にデフォルトでは Safari が起動して設定したURLのページが表示された。 クリック時の挙動を変更したい場合は UITextViewDelegate の func textView(UITextView, shouldInteractWith: URL, in: NSRange, interaction: UITextItemInteraction)(iOS 10から) または func …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxyk.hatenablog.com%2Fentry%2F2017%2F05%2F18%2F201006&quot; title=&quot;UITextView を使ってテキストの一部をハイパーリンク化する - xyk blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/x/xyk/20170518/20170518200531.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-18 20:10:06</published>
  <title>UITextView を使ってテキストの一部をハイパーリンク化する</title>
  <type>rich</type>
  <url>https://xyk.hatenablog.com/entry/2017/05/18/201006</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
