ios - 一个button莫名被一个东西挡住了,但是排查不出来。
天蓬老师
天蓬老师 2017-04-17 17:33:28
0
3
353

我在做一个ios输入法,其他都没问题,就有个“Q”的按钮左边有3/4不知道被什么挡住了,按了没反应,“A”按钮有1/4按了没反应。
可是我把所有view和layer遍历描出来,并没有发现有什么透明的东西盖住这个地方,诡异的问题,我查了好久了没有头绪,谁给点思路。

如图:

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
黄舟

Click this button during debugging and running

Then there is this debugging tool

No need to thank you for taking it, it comes with xcode.

Let me add

Select Keyboard Window from the menu on the left

黄舟

Be careful and suspect that the scope of the parent view is not large enough. The part of the button outside the parent view does not respond to clicks.

大家讲道理

You can also use Reveal or FLEX (open source code on Github), both of which can view the view level

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!