poweroff 关机(仅支持 iOS)
--关机
function poweroff()
os.execute("halt");
end
poweroff()
注意事项
- 较高 iOS 系统 os.execute 函数可能无效。
- 15 及以上系统隐根越狱不支持 os.execute 函数,请更换 https://helpdoc.touchsprite.com/dev_docs/32/5.html 对应代码再试。
--关机
function poweroff()
os.execute("halt");
end
poweroff()
注意事项