JS端处理:
$("#back").click(function(){
var notifyCenter = plus.ios.importClass(“NSNotificationCenter”);
notifyCenter.defaultCenter().postNotificationNameobject(“SendNotifyFromHbuilder”,”information”);
});
OC端处理:
[NSNotificationCenter defaultCenter] addObserver: self selector:@selector(notifyAction:) name:@“SendNotifyFromHbuilder” object:nil];
- (void)notifyAction:(NSNotification *)notify{
//处理事件
}