<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akn_ep</author_name>
  <author_url>https://blog.hatena.ne.jp/akn_ep/</author_url>
  <blog_title>廃墟</blog_title>
  <blog_url>https://aknep.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>表題の通りですが、ViewControllerでNSNotificationを受け取る事は非常に典型的なパターンです。 ここでは2通りの想定パターンについて簡単に紹介します。 (以下のコードはARCを利用している事を前提としています) 画面が表示されてないときはNotificationを受け取らなくて良い場合 - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@select…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faknep.hatenablog.com%2Fentry%2F2014%2F03%2F26%2F015921&quot; title=&quot;viewDidUnloadが使えなくなった今、ViewControllerでどうやってNSNotificationをobserveするか - 廃墟&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-03-26 01:59:21</published>
  <title>viewDidUnloadが使えなくなった今、ViewControllerでどうやってNSNotificationをobserveするか</title>
  <type>rich</type>
  <url>https://aknep.hatenablog.com/entry/2014/03/26/015921</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
