Corona - 无法将event.alert保存到GGData

时间:2014-07-01 08:29:02

标签: lua corona

我在这里使用GGData(GGData)。它的工作就像一个魅力。直到我想保存event.alert时收到的notificationListener。奇怪的是,当我弹出像native.showAlert("Title",event.alert,{"Ok"})这样的事件时。它将显示event.alert消息。但是当我尝试将它保存到GGData时:

local function notificationListener( event )
    -- display alert that shows the event name and type:
    print("init notificationListener")

    local yo = GGData:new("tuohai")
    yo:set("message",event.alert)
    yo:save()
end

它没有获得event.alert的值。为什么会这样?

0 个答案:

没有答案