<?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>UIDevice</anon>
    <anon>NSNotificationCenter</anon>
  </categories>
  <description>iPhone/iPadアプリでデバイスを回転させて横向きにすると、より詳細にデータ表示したい時があります。デバイスを回転されたのとトリガーにして デバイスが回転されたかの監視を開始する UIDeviceクラスのインスタンスのbeginGeneratingDeviceOrientationNotificationsメソッドを実行することで、センサーデバイスの有効にして加速度の変化の配信を開始します。 アプリ側でデバイスの向きの変化を受信する為には、通知センターにUIDeviceOrientationDidChangeNotification通知が発生した時に通知してもらえるように登録します。 -…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fios.ch3cooh.jp%2Fentry%2F20140228%2F1393571888&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>2014-02-28 16:18:08</published>
  <title>デバイスが回転されたことを検出する</title>
  <type>rich</type>
  <url>https://ios.ch3cooh.jp/entry/20140228/1393571888</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
