-----------------------------------------------------------------------------------------
--
-- covermenu.lua
-- TapTapUFO
--
-- Created by Kirk Hsu on 2016/04/06.
-- Copyright © 2016年 Kirk Hsu. All rights reserved.
--
-----------------------------------------------------------------------------------------
-- 引入各種函試庫
local widget = require("widget")
local composer = require("composer")
local scene = composer.newScene()
-- 以下為定義變數
-- 以上為定義變數
-- 以下為定義其他函式
-- 以上為定義其他函式
-- composer
function scene:create(event)
local screenGroup = self.view
print("scene create")
-- todo
end
function scene:show(event)
if event.phase == "did" then
print("scene did show")
-- todo
end
end
function scene:hide(event)
if event.phase == "will" then
print("scene will hide")
-- todo
end
end
function scene:destroy(event)
if event.phase == "will" then
print("scene will destroy")
-- todo
end
end
scene:addEventListener( "create", scene )
scene:addEventListener( "show", scene )
scene:addEventListener( "hide", scene )
scene:addEventListener( "destroy", scene )
return scene
留言
張貼留言