こんにちは私は問題がある 私のAppDelegate
で私は方法beginGeneratingDeviceOrientationNotifications
を使用して、デバイスが回転を開始したときに通知を開始しました。 私はipadを手持ちにしてもうまく動作しますが、テーブルに保管されていると期待通りに動作しません。 それはUIDeviceOrientationUnknown
通知を発します。 また、この通知は、UIの起動後にスプラッシュ画面で開始されます。私のコードで、次のデバイスがテーブル上にある間、UIDeviceOrientationDidChangeNotificationは機能しませんか?
:
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];
その後、いくつかの私は
[self Launch_UI];
としての私のUIを起動しますが、通知は、通知は、その呼び出しの前に登録されている場合でも[self Launch_UI];
呼び出した後、応答始まる...
ご了承ください。