UITabBar does not respond to iPad

I have an existing iPhone project that has been tested, submitted and approved, compiled with SDK 3.1.3. I took this project and converted it into a universal iPad / iPhone application, following Apple's instructions (i.e. letting Xcode do its magic).

This application has a UITabBarController as its root view controller built into XIB. When run on iPhone 4.0 simulator, it works great. When working on 3.2 iPad Simulator or the device itself, it has one main drawback: UITabBar is not responding. I cannot change any of the tabs; taps on any part of the UITabBar seem to never register. I can’t click on the view of the current tablet view controller without problems.

Since the UITabBarController is created inside the XIB, I also create its tabs (view controllers) inside the XIB. If I add or subtract tabs, this seems to update the UITabBar penalty. But still, none of the actual tabs are negotiable.

Does anyone have any ideas?

+4
source share
1 answer

Turns off the automatic option that Apple puts in Xcode to convert iPhone projects to universal iPhone / iPad projects, did not set the “Full Screen on Startup” flag for my UIWindow instance in my MainWindow-iPad.xib, which meant that all touches outside it were hard 320x480 encoded frames were not sent to my application.

+4
source

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


All Articles