bool UIInputManager::checkTouchEvent(UIWidget *root, const CCPoint &touchPoint)
{
…
if (root->isEnabled() && root->isTouchEnabled() && root->hitTest(touchPoint) && root->clippingParentAreaContainPoint(touchPoint))
…
}
源码中此处没有判断ui是否可见。
隐藏和显示是平行的,所以隐藏了也可以接受到touch消息。。