以下の内容はhttps://anton0825.hatenablog.com/entry/20130127/1360715938より取得しました。


画面の向きを取得する

以下のコードで画面の向きを取得するとorientationがUIDeviceOrientationUnknownになってしまう。

UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation];



↓を使えばいいらしい。なんか紛らわしいなぁ。

UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];

参考:起動時にデバイスの向きを取得する - azukinohirokiの日記




以上の内容はhttps://anton0825.hatenablog.com/entry/20130127/1360715938より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14