Home  >  Q&A  >  body text

ios - 一个button莫名被一个东西挡住了,但是排查不出来。

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

如图:

天蓬老师天蓬老师2715 days ago359

reply all(3)I'll reply

  • 黄舟

    黄舟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

    reply
    0
  • 黄舟

    黄舟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.

    reply
    0
  • 大家讲道理

    大家讲道理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

    reply
    0
  • Cancelreply