UIToolbar below not working in Retina 4 simulator

I know this sounds a little strange, but maybe someone also experienced the same thing.

If I have a UIToolbar located at the bottom of the xib (size 548) Retina 4, it does not work in the simulator (the buttons do not show any reaction). However, if I put it a little higher (not sure where the threshold is), they work again. ???

My problematic xib is as follows:

enter image description here

+4
source share
2 answers

As mentioned elsewhere (for example, the bottom toolbar of the iPhone 5 (4 ") is not responding ), the problem is that although your view is full height, the underlying UIWindow isn’t and the main UIWindow is involved in your viewing, receiving events touch.

If you have a file name something like "MainWindow.xib" in your project:

  • Open it in Interface Builder.
  • Select Window from the list of objects on the left.
  • In the Attribute Inspector area, select the Full screen on startup check box.

The user interface elements at the bottom of the screen should now work.

+3
source

I found that the problem is UIWindow. (maybe this is just a problem with old projects) So far, the window object that it set to actions of size 480 that fall out of its size (which can happen on Retina 4) is not recognized.

+1
source

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


All Articles