こんにちは、問題があります。デバイスが回転し始めたときに通知を開始するAppDelegate
方法を使用しました。beginGeneratingDeviceOrientationNotifications
iPad を手で持つと問題なく動作しますが、テーブルに置くと期待どおりに動作しません。それはUIDeviceOrientationUnknown
通知を起動します。また、この通知は、スプラッシュ画面ではなく UI の起動後に開始されます。
以下は私のコードです:
if([[[PulseUIFactory Factory] GetUICreator] IsIPad])
{
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationChanged:) name:UIDeviceOrientationDidChangeNotification object:nil];
}
current device stars giving proper values.
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
次に、UIを次のように起動する場所
[self Launch_UI];
[self Launch_UI];
ただし、呼び出し前に通知が登録されていても、呼び出し後に通知が応答を開始します...
どんな助けでも大歓迎です!!!