<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koogawa</author_name>
  <author_url>https://blog.hatena.ne.jp/koogawa/</author_url>
  <blog_title>koogawa blog</blog_title>
  <blog_url>https://koogawa.hateblo.jp/</blog_url>
  <categories>
    <anon>iOS</anon>
    <anon>開発全般</anon>
  </categories>
  <description>iOS 7から追加されたText Kitの機能を使ってUITextViewに画像を埋め込み、テキストを回り込ませる方法をメモしておきます。 ここでは例として、次のようなテキストに画像を埋め込むことを考えてみます。 1.非表示領域を設定 このテキストの上に何も考えずに画像を配置すると、次のようになると思います。 そこで、まずは非表示領域（テキストを表示しない領域）を設定します。 非表示領域を設定するにはText Kitのメイン機能である NSTextContainer の exclusionPaths プロパティを使います。このプロパティに UIBezierPath 型で領域を指定すれば、その領…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoogawa.hateblo.jp%2Fentry%2F2013%2F12%2F24%2F202247&quot; title=&quot;UITextViewに画像を埋め込んでテキストを回り込ませる - koogawa 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>http://cdn-ak.f.st-hatena.com/images/fotolife/k/koogawa/20131223/20131223194851.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-12-24 20:22:47</published>
  <title>UITextViewに画像を埋め込んでテキストを回り込ませる</title>
  <type>rich</type>
  <url>https://koogawa.hateblo.jp/entry/2013/12/24/202247</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
