unexpected nil window in _UIApplicationHandleEventFromQueueEvent, _windowServerHitTestWindow

后端 未结 7 716
执念已碎
执念已碎 2020-12-16 01:18

I am trying to set up an edge swipe gesture in iOS 8 on iPad but getting and error that seems like a bug.

I have the following code:

    UIScreenEdge         


        
相关标签:
7条回答
  • 2020-12-16 02:15

    One possible fix is to remove or comment out code for hiding status bar if you have that. I was pulling my hair to solve it, and I could only reproduce it on my root view. It appears that if you hide the status bar you cannot drag down today widgets/notification center (you can with some effort).

    /* <- add this
    - (BOOL)prefersStatusBarHidden
    {
       return YES;
    }
    add this -> */
    
    0 讨论(0)
提交回复
热议问题