设置 弹窗优先级

时间:2018-03-29 16:31:51   收藏:0   阅读:268

 LayerTouchPriority = -129  --弹窗层的优先级<大于最大优先级>

--设置弹窗层的优先级<handle,是否多点触摸,优先级,是否吞噬下层touch><began方法里必须返回true>

self:registerScriptTouchHandler(function(eventType) if eventType == "began" then
return true end end, false, LayerTouchPriority, true)
self:setTouchEnabled(true)


--再将按钮的优先级设置为大于弹窗层的优先级

--btnClose:setTouchPriority(LayerTouchPriority - 1)

原文:https://www.cnblogs.com/aibox222/p/8670583.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!