<?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>
  </categories>
  <description>アプリケーションのバージョンによって挙動を変更したい場合など、Info.plist に記載したBundle Versionの値を元に処理を分岐させることができます。 NSBundleクラスのクラスメソッドであるmainBundleメソッドで、現在動作しているアプリケーションのBundleインスタンスを取得します。 NSBundleインスタンスメソッドのinfoDictionaryメソッドでInfo.plistに定義した情報を取得する事が可能です。 NSBundle *bundle = [NSBundle mainBundle]; NSString* version = [[bundle inf…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fios.ch3cooh.jp%2Fentry%2F20110513%2F1305227040&quot; title=&quot;Info.plistからアプリのバージョンを取得する - 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>2011-05-13 04:04:00</published>
  <title>Info.plistからアプリのバージョンを取得する</title>
  <type>rich</type>
  <url>https://ios.ch3cooh.jp/entry/20110513/1305227040</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
