<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xoyip</author_name>
  <author_url>https://blog.hatena.ne.jp/xoyip/</author_url>
  <blog_title>ぴよログ</blog_title>
  <blog_url>https://xoyip.hatenablog.com/</blog_url>
  <categories>
    <anon>iOS</anon>
    <anon>Objective-C</anon>
    <anon>Storyboard</anon>
  </categories>
  <description>iOS開発でボタン以外の要素をタップさせたくなることがたまにあるかもしれない。例えばラベルとか画像とかね。 そういった場合によく取られる方法はもしかしたらtouchesBeganやtouchesEndedのイベントを使うことかもしれない。けれど、タッチ系のイベントで自分で何とかしようとするとタップしたあと領域外で離したときとかその逆の動きとかで微妙に挙動がうまくいかないので操作感も悪くなってしまう。 やはりボタン系の操作はUIButtonが最強なのでここはUIButtonを透明にしてしまって、触らせたい要素の上におけばいいじゃないか。 例えばUIImageViewをタップさせたいならこういう↓…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxoyip.hatenablog.com%2Fentry%2F2014%2F09%2F05%2F200000&quot; title=&quot;ボタン以外（UILabelとか）をタップしたいなら透明ボタンがいいかも - ぴよログ&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://www.evernote.com/shard/s15/sh/d8a0df11-64df-440f-8d53-efe422714efe/b801918c3f162e0cb19b88262acc4427/deep/0/button.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-09-05 20:00:00</published>
  <title>ボタン以外（UILabelとか）をタップしたいなら透明ボタンがいいかも</title>
  <type>rich</type>
  <url>https://xoyip.hatenablog.com/entry/2014/09/05/200000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
