<?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>Objective-C</anon>
    <anon>Tips</anon>
  </categories>
  <description>Objective-Cではカテゴリを使って既存のクラスを拡張してメソッドを追加することができるが、メソッドだけでなくプロパティを追加することもできる。 例えばこんな風にUIViewのカテゴリを新規作成し、ヘッダーにプロパティを定義する。今回はNSStringにした。 // UIView+PropertySample.h #import &lt;UIKit/UIKit.h&gt; @interface UIView (PropertySample) @property (nonatomic, weak) NSString *value; @end これだけ書くと以下のような警告が出る。 Property '…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxoyip.hatenablog.com%2Fentry%2F2014%2F05%2F29%2F213121&quot; title=&quot;カテゴリを使って既存クラスにプロパティを追加する - ぴよログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-05-29 21:31:21</published>
  <title>カテゴリを使って既存クラスにプロパティを追加する</title>
  <type>rich</type>
  <url>https://xoyip.hatenablog.com/entry/2014/05/29/213121</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
