swiz 弹出框的处理
? 由于swiz框架的事件是基于冒泡的,而且它
it was created as its "root event dispatcher",However,
PopUps are not added to this display list, they are added as direct children of the SystemManager object, since they must appear above
everything else in the application.
然而popUp不是添加到systemManger的显示列表里,所以它的事件冒泡时,控制器无法获得,如果程序中使用PopUpManager 弹出框则:
?
As a result, events dispatched from PopUps don't bubble up to the Swiz dispatcher. However, the solution to
this is simple: just use?? to inject the Swiz dispatcher into your PopUp, and dispatch events through it.
?
你要注入[Dispatcher]手动dispatcher 分发改事件。
我测试过,确实是这样子的。。
?
?