
是使用UIButton吗?
UIButton默认是是根据渲染顺序决定触摸优先级的,默认swallow touch是开的(void Widget::setTouchEnabled(bool enable))。
调用 void setSwallowTouches(bool swallow); 可以实现只响应最上面的。

是使用UIButton吗?
UIButton默认是是根据渲染顺序决定触摸优先级的,默认swallow touch是开的(void Widget::setTouchEnabled(bool enable))。
调用 void setSwallowTouches(bool swallow); 可以实现只响应最上面的。