<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katsuren</author_name>
  <author_url>https://blog.hatena.ne.jp/katsuren/</author_url>
  <blog_title>俺の成長日記</blog_title>
  <blog_url>https://katsuren.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>いろいろメモリ管理ハマったので。UIView を例にしてみる。UIView はビュー要素のコンテナみたいなもん。こんな感じで使う。 UIView *unko = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; [self addSubview:unko]; [unko removeFromSuperview]; [unko release]; 1行目でインスタンス生成して2行目でそのインスタンスをビューに追加して3行目でインスタンスをビューから削除して4行目でメモリ解放を行う。 このとき、unkoをretainしちゃダメっぽ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatsuren.hatenadiary.org%2Fentry%2F20120206&quot; title=&quot;alloc とか init とか retain とか - 俺の成長日記&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>2012-02-06 00:00:00</published>
  <title>alloc とか init とか retain とか</title>
  <type>rich</type>
  <url>https://katsuren.hatenadiary.org/entry/20120206</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
