我创建堆栈并将宽度设置为" 2048"和高度为" 1536"。它的尺寸是iPad Retina。但我想将应用程序构建到桌面。
我在堆栈中输入了这段代码:
on preopenstack
if environment() is "mobile" then
set the fullscreenmode of this stack to "exactFit"
set the acceleratedRendering of this stack to true
else
set the fullscreenmode of this stack to "showAll"
set the acceleratedRendering of this stack to false
end if
end preopenstack
将独立应用程序保存到桌面后。堆栈大小不正确。
这张照片 我该如何解决这个问题?
答案 0 :(得分:1)
您还需要使用"全屏"如果您希望应用程序在桌面环境中以全屏模式运行,则可以使用属性。
以下修正的preopenstack脚本应该可以正常工作
on preopenstack
if environment() is "mobile" then
set the fullscreenmode of this stack to "exactFit"
set the acceleratedRendering of this stack to true
else
set the fullscreenmode of this stack to "showAll"
set the acceleratedRendering of this stack to false
set the fullscreen of this stack to true
end if
end preopenstack