안녕하세요. 문제가 있습니다. 내 AppDelegate
에 있습니다. 기기가 회전하기 시작할 때 알림을 시작하기 위해 beginGeneratingDeviceOrientationNotifications
메소드를 사용했습니다. 내 ipad 손을 잡아도 잘 작동하지만 테이블에 보관하면 예상대로 작동하지 않습니다. 화재가 발생합니다. UIDeviceOrientationUnknown
알림. 또한이 알림은 시작 화면이 아닌 UI가 시작된 후에 시작됩니다. 다음 몇 가지 내가장치가 테이블에있는 동안 UIDeviceOrientationDidChangeNotification이 작동하지 않습니까?
[self Launch_UI];
로 내 UI를 시작하지만, 통지는 통지가 호출 이전에 등록 된 경우에도 후 [self Launch_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];
...
:다음
내 코드입니다도움이 필요하십니까?