Universal dialog box for iOS and Android

I am a novice cocos 2dx developer. i search on web how to create modal dialog box ,so that it will work on both iOS and android. i got few tutorials but they are not working on V3.6. I am trying to restructure these codes to work on V3.0 and above .Bellow are the links of tutorials.->
1> http://translate.google.co.in/translate?hl=en&sl=ja&u=http://blog.fspm.jp/2013/07/cocos2dxmodalalertviewdialog.html&prev=search

2>http://translate.googleusercontent.com/translate_c?depth=1&hl=en&prev=search&rurl=translate.google.co.in&sl=ja&u=http://blog.syuhari.jp/archives/2518&usg=ALkJrhj41_0Yu2XfEQYOrlzEE8nlu-AwbA

in the above tutorials " pDirector->getTouchDispatcher()->addTargetedDelegate(this, kCCMenuHandlerPriority, true);" is error as the functions are no longer available on V3.x.

Help me to restructure the above tutorials.if any one have working code for modal dialog box, please share.

Hello,

pDirector->getTouchDispatcher()->addTargetedDelegate(this, kCCMenuHandlerPriority, true); This code will help to enable TOUCH in cc.Node.

In version 3.x we can enable Touch using below code

auto listener = EventListenerTouchOneByOne::create();
listener->setSwallowTouches(true);
listener->onTouchBegan = CC_CALLBACK_2(HelloWorldLayer::onTouchBegan, this);
listener->onTouchEnded = CC_CALLBACK_2(HelloWorldLayer::onTouchEnded, this);
listener->onTouchMoved = CC_CALLBACK_2(HelloWorldLayer::onTouchMoved, this);
_eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this);

For more information refer this link:
http://cocos2d-x.org/programmersguide/8/

Regards,
Gurudath