UINavigationItem后退按钮的触摸区域太大 [英] UINavigationItem Back Button touch area too large

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

问题描述

在下面的屏幕截图中,如果我单击可用信息亭"中的"v",则会启动后退按钮的操作...(而不是第二个"a").

On this following screenshot, if I click on "v" from "Available Kiosks" this is launching the action of the back button... (not with the second "a").

我不明白为什么,我的代码没有什么特别的(这是导航控制器处理的默认后退按钮). 我在另一个应用程序上也遇到了同样的错误,但是我从来没有在其他应用程序上注意到这一点.

I don't understand why, I've nothing special in my code (this is the default backbutton handled by the navigation controller). I also have the same bug with another application I did but I never notice this on others applications.

有什么想法吗?

谢谢.

推荐答案

这不是bug,它在Apple应用程序中甚至在某些(很多/全部)按钮上都具有相同的功能.这是按钮上触摸事件的行为:触摸区域大于按钮边界.

That's not a bug, it does the same in Apple apps, and even on some (many / all ?) buttons. It's the behaviour of touch events on buttons : the area of the touch is larger than the button bounds.

这篇关于UINavigationItem后退按钮的触摸区域太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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