触摸uiTabBar上方 [英] Touch above the uiTabBar

查看:91
本文介绍了触摸uiTabBar上方的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个拥有UITabBarController的应用。
我注意到标签栏上方有15个像素可以按下它下面的按钮。并且还有10个像素没有做任何事情。

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.

问题是我在视图中有一些按钮靠近条形杆并且当我尝试触摸它们,Tabbar按钮被推动。

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.

看起来这是标准UI元素的标准行为。我注意到导航栏中的按钮具有相同的效果

问候,
George

Regards, George

推荐答案

有些时候,当我在标签栏顶部使用操作表时,我遇到了这个问题。按钮位于标签栏的顶部,难以点击。只有部分按钮正在点击。所以我在那里做的是从父视图控制器添加操作表。

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.

这篇关于触摸uiTabBar上方的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆