<?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>Xcode</anon>
    <anon>Tips</anon>
    <anon>iOS</anon>
    <anon>Objective-C</anon>
  </categories>
  <description>何重にも入れ子になったNSDictionaryのデータをチマチマ取り出すのは超絶めんどくさいです。valueForKeyで取り出したNSDictionaryにさらにvalueForKeyして、さらに、、なんてやるともうやってられません。 幸いvalueForKeyPathというメソッドで少し簡単にできるので、そちらを使ったほうがいいと思われます。 例によってYoutubeAPIの戻り値をNSDictionaryにしたものを対象とします。*1 データはこれ。 { &quot;kind&quot;: &quot;youtube#searchListResponse&quot;, &quot;etag&quot;: &quot;\&quot;qQvmwbutd8GSt4eS4l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxoyip.hatenablog.com%2Fentry%2F2014%2F02%2F08%2F191912&quot; title=&quot;入れ子になったNSDictionaryのデータを取り出す - ぴよログ&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/ffae429a-41a5-46e6-a23b-2311347c3191/e67a682a330bc344813d36dbb5ab70a6/deep/0/02.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-02-08 19:19:12</published>
  <title>入れ子になったNSDictionaryのデータを取り出す</title>
  <type>rich</type>
  <url>https://xoyip.hatenablog.com/entry/2014/02/08/191912</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
