gavinkwoe / BeeFramework

[Experimental] A semi-hybrid framework that allows you to create mobile apps using Objective-C and XML/CSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

同一生命周期下的两个ViewControll如何避免执行同一msg的handle函数

icindy opened this issue · comments

commented

我请教一个问题 bee框架里面如何阻止不同viewController下同一网络msg的响应?
例子:
navigation中第一个视图A-》B视图
在A与B中都相应同一个handleMsg,假设是MSG_TEST,
但是在handle方法中,A视图与B视图不一样的处理方式。
现在我遇到的问题是,因为在A中声明过MSG_TEST 如果在B中发起MSG_TEST 在handle中 A视图也会响应

应该如何阻止这种情况呐?
谢谢