UITabBar 忽略偶尔的“点击”
我正在开发一个带有 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在某处读到,当 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.
这可能会发生,因为当您单击选项卡时视图未加载。
您是否在 -(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.