--创建NotificationNode
local notificationNode = cc.Layer:create()
notificationNode:addChild(self.toastContainer)
self.director:setNotificationNode(notificationNode)
toastLabel:setString("------------------------")
local action1 = cc.FadeIn:create(7)
local action1Back = action1:reverse()
local action2 = cc.FadeOut:create(7)
local action2Back = action2:reverse()
notificationNode:runAction(cc.Sequence:create( action2, action2Back))
点击事件也是,目前我是在这上面加了个node 代替 执行下onenter