<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ch3cooh393</author_name>
  <author_url>https://blog.hatena.ne.jp/ch3cooh393/</author_url>
  <blog_title>iOSアプリ開発の逆引き辞典</blog_title>
  <blog_url>https://ios.ch3cooh.jp/</blog_url>
  <categories>
    <anon>UIViewController</anon>
    <anon>Objective-C</anon>
  </categories>
  <description>例えば、plistなどで@&quot;HogeViewController&quot;という文字列で定義されたクラス名から、インスタンスを生成したい場合にNSClassFromString関数を使用します。 下記のサンプルコードでは、文字列から生成したHogeViewControllerクラスを使用して画面遷移を行います。 Class vcClass = NSClassFromString(className); if (vcClass == nil) { return; // クラス名が取得出来なかった場合は処理しない } // 文字列(ViewControllerのクラス名)からインスタンスを生成する id …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fios.ch3cooh.jp%2Fentry%2F20120405%2F1333551600&quot; title=&quot;文字列のクラス名からインスタンスを動的に生成させる - iOSアプリ開発の逆引き辞典&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-04-05 00:00:00</published>
  <title>文字列のクラス名からインスタンスを動的に生成させる</title>
  <type>rich</type>
  <url>https://ios.ch3cooh.jp/entry/20120405/1333551600</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
