我在做一个ios输入法,其他都没问题,就有个“Q”的按钮左边有3/4不知道被什么挡住了,按了没反应,“A”按钮有1/4按了没反应。
可是我把所有view和layer遍历描出来,并没有发现有什么透明的东西盖住这个地方,诡异的问题,我查了好久了没有头绪,谁给点思路。
如图:
黄舟2017-04-17 17:35:28
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
黄舟2017-04-17 17:35:28
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.
大家讲道理2017-04-17 17:35:28
You can also use Reveal or FLEX (open source code on Github), both of which can view the view level