UITabBar 忽略偶尔的“点击”

发布于 2024-09-14 14:46:08 字数 169 浏览 6 评论 0原文

我正在开发一个带有 UITabBar 的 iPhone 应用程序。有时,选项卡栏会忽略我的“点击”(或“点击”,或 iPhone 世界中的任何称呼)。它发生在模拟器和设备上。单击选项卡栏按钮不会导致任何操作,我必须单击它多次才能发生预期的操作。

任何人都可以阐明可能导致此问题的原因,或者我如何对其进行调试?

I'm working on an iPhone app that has a UITabBar. Occasionally the tab bar ignores my "clicks" (or "taps", or whatever they're called in the iPhone world). It happens on both the simulator and the on the device. Clicking on a tab bar button won't result in any action, and I have to click it several times for the expected action to occur.

Can anybody shed any light on what might be causing this issue, or how I can go about debugging it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

徒留西风 2024-09-21 14:46:08

我在某处读到,当 UITabBar 不是窗口的直接子窗口时,它会变得无响应。它可能是类似的东西,或者您可能有 UIScrollView 或其他一些视图干扰您的 UITabBar。

聚苯乙烯
单击对于按钮(包括选项卡)来说是正确的。对于其他人来说,一个广泛使用的术语是触摸。

I read somewhere that the UITabBar becomes unresponsive when it is not the immediate child of the window. It can be something like that or you might have a UIScrollView or some other view interfering with your UITabBar.

P.S
Click is correct for buttons, including tabs. For others, a widely used term is touch.

拿命拼未来 2024-09-21 14:46:08

这可能会发生,因为当您单击选项卡时视图未加载。
您是否在 -(void)viewDidLoad 方法中使用任何 url 请求。如果是这种情况,可能是您的互联网运行缓慢。

This might be happening bcoz the view is not getting loaded when you click on the tab.
Are you using any url request in the -(void)viewDidLoad method. If this is the case may be ur internet is workin slowly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文