Touch above the uiTabBar

强颜欢笑 提交于 2019-12-21 20:14:21

问题


I have an app that has an UITabBarController. I've noticed that there are like 15 pixels above the tab bar that will push the button under it. And there are like 10 more pixels that don't do anything.

The problem is that i have some button in the view that are quite close near the bar bar and when i try to touch them, the tabbar buttons get pushed.

It seems like this is standard behavior for standard UI elements. I've noticed that the buttons from the navigation bar have the same efect

Regards, George


回答1:


Some times I get this problem when i am using action sheets top of the tab bar. The button is in top of the tab bar is hard to click. Only part of the button is clicking. So what I am doing there is adding the action sheet from the parentview controller.

[actionSheet showInView:self.parentViewController.tabBarController.view];

After doing this button is working perfectly. I think you can add the button to your app like this too. Hope this will help. Thank you.



来源:https://stackoverflow.com/questions/7205554/touch-above-the-uitabbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!