iOS8 버그
unexpected nil window in _UIApplicationHandleEventFromQueueEvent, _windowServerHitTestWindow
라이브된 프로젝트의 iOS8 OS에서 버그가 발생했다. 처음보는 에러메세지.
문제는 다음과 같은 상황에서 발생했다.
1. 동영상 플레이 -> 플레이 완료 후 팝업창 -> 다시 동영상 플레이 -> 플레이 완료 후 팝업창
두번째 팝업창이 띄워졌을 때 View에 있는 버튼 클릭시 로그가 발생하였다. 앱 종료는 일어나지 않지만 버튼 클릭이 되지 않아 어플리케이션이 멈춰 있어 앱을 종료하지 않으면 어떤 이벤트도 발생하지 않기 때문에 심각한 오류로 판단되었다.
unexpected nil window in _UIApplicationHandleEventFromQueueEvent, _windowServerHitTestWindow
구글링을 통해 해결방법을 찾았다. 발생하는 경우는 제각각이지만 확실히 iOS8로 업데이트 되면서 발생하는 문제는 확실해 보였다.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.frame = [[UIScreen mainScreen] bounds];
[self.window makeKeyAndVisible];
}
위와 같이 코드(red)를 추가해 주니 해결되었다.
'IT > iOS' 카테고리의 다른 글
x-apple-amd-action_message (13) | 2015.08.03 |
---|---|
[iOS] UILabel random Textcolor (1) | 2015.07.14 |
[iOS] UIView 부분적으로 라운드 적용하기 (2) | 2015.05.19 |
[iOS] 앱평가 하기, 리뷰 남기기는 iRate로 (0) | 2015.03.30 |
iOS8 푸쉬 등록 에러메세지 (registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later) (0) | 2014.10.02 |
UICollectionview cell selection (0) | 2014.09.15 |
[iOS] Draw line (0) | 2014.08.13 |
[iOS] 원 이미지 만들기 (0) | 2014.08.12 |