Odd bug with ios touch gesture and touch gesture

I use xib-based presentation and programmatically create presentation controllers for the scoreboard. I also use ios 7, and I keep getting this message when I try to perform gestures or change tabs, of course, tabs do not change the view ....

Does anyone know what is going on? I have a google search and nothing works.

2014-09-11 16: 28: 38.730 Deskercise [30056: 1497359] unexpected nil window in _UIApplicationHandleEventFromQueueEvent, _windowServerHitTestWindow :; layer =>

+6
source share
3 answers

The reason for this is that the code for representing the window is no longer in the template, [UIWindow makeKeyAndVisible] , I completely missed this.

0
source

This error tells you that something is not logging your touch events. The following word after " _windowServerHitTestWindow: ; layer = > " in your error message is important and may be something like UIWindow . In any case, this is something that does not register your touch.

The nib file for your UITabBarController class will look a little strange because it must also have a Window object.

But your Outlets and Referencing Outlets are probably connected correctly or you will not get this error. Therefore, I assume that your window has the wrong size settings.

I'm going to suggest that you want your application to work on all devices, including the iPhone and iPad.

  • In your nib file, select the Window object.
  • In the Attributes selector, set Simulated Metrics > Size to Free Form and View > Mode to Zoom To Fill.
  • Now select the controller of the tab bar. Set Simulated Metrics > Size to "Freeform", Orientation to "Inferred" and make sure the Resize View from NIB option is checked.
  • Then, in the Show the Size Inspector, set the simulated size to "Freeform" again and explicitly set the width and height to 768 and 1024.
+1
source

I found a simple solution that worked for me on the developer forums.

Just make sure the “Full screen on startup” checkbox is enabled for the window.

+1
source

Source: https://habr.com/ru/post/975156/


All Articles