<?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>
  </categories>
  <description>Objective-Cではカテゴリを使って既存のクラスに新しいメソッドを追加したかのように振る舞わせることができる。 では、カテゴリで新しいメソッドではなく、既存の（というかオーバーライドして使うようなもの）を定義するとどういう挙動になるのか。気になって調べてみた。 例えばUIViewでタッチを検出して処理を行いたい場合はそのビューのサブクラスを作ってtouchesBeganやtouchesEndedを実装すればよいし、ViewControllerでも同じようなことができる。 このtouchesBeganなどのメソッドをカテゴリで実装してやる。実装は単にタッチ開始や終了を自身のアドレス付きでロ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxoyip.hatenablog.com%2Fentry%2F2014%2F05%2F31%2F203000&quot; title=&quot;UIViewのカテゴリでtouchesBeganなどを定義するとどうなるのか？ - ぴよログ&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/623ddcb0-0498-4a81-934b-675edd579bcc/5e3d5d25c9656b3c8e4ee5174a7f5219/deep/0/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2014-05-30-21-14.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-05-31 20:30:00</published>
  <title>UIViewのカテゴリでtouchesBeganなどを定義するとどうなるのか？</title>
  <type>rich</type>
  <url>https://xoyip.hatenablog.com/entry/2014/05/31/203000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
