<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekokichi_yos2</author_name>
  <author_url>https://blog.hatena.ne.jp/nekokichi_yos2/</author_url>
  <blog_title>ねこきちのプログラミング墓地</blog_title>
  <blog_url>https://nekokichi2yos2.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift・Xcode</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>実現したいこと 仕組み textViewの文字列を選択 選択した文字列の開始位置、長さを取得 カーソルが1文字以上を選択してるかを条件分岐 選択した文字列の開始位置、終了位置を取得 部分文字列を取得 ストーリーボード ソースコード 参考 実現したいこと 先頭~途中/末尾までの文字を取得 途中~末尾までの文字を取得 途中~途中までの文字を取得 仕組み textViewの文字列を選択 選択した文字列の開始位置、長さを取得 カーソルが1文字以上を選択してるかを条件分岐 選択した文字列の開始位置、終了位置を取得 部分文字列を取得 textViewの文字列を選択 選択した文字列の開始位置、長さを取得 /…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekokichi2yos2.hatenablog.com%2Fentry%2F2021%2F12%2F31%2F211522&quot; title=&quot;【Swift】TextViewで選択した部分の文字列を取得 - ねこきちのプログラミング墓地&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/n/nekokichi_yos2/20211231/20211231210431.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-31 21:15:22</published>
  <title>【Swift】TextViewで選択した部分の文字列を取得</title>
  <type>rich</type>
  <url>https://nekokichi2yos2.hatenablog.com/entry/2021/12/31/211522</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
