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