글목록

2014. 12. 22.

[iOS][ERROR] Unexpected nil window in _UIApplicationHandleEventFromQueueEvent



      before
      
    self.window = [[UIWindow allocinitWithFrame:[[UIScreen mainScreenbounds]];
    [self.window makeKeyAndVisible];
    
    
    
    
    After

 
    self.window = [UIWindow new];
    [self.window makeKeyAndVisible];
    self.window.frame = [[UIScreen mainScreenbounds];




 

댓글 없음:

댓글 쓰기