close
練習Corona SDK時剛好有需要寫一個離開程式的按鈕,把找到的程式範例記錄下來。

local function ButtonExit_Handle()
--判斷是否為Android或iOS
if system.getInfo("platformName")=="Android" then
native.requestExit()
else
os.exit()
end
end
arrow
arrow
    全站熱搜

    keven 發表在 痞客邦 留言(0) 人氣()