钛加速器 window 小
titanium appcelerator window small
在 appcelerator 中,我正在尝试使用此代码
打开一个 window
var self = Ti.UI.createWindow({
backgroundColor: '#616161',
color: 'blue',
exitOnClose: true,
height: 1000,
navBarHidden: true,
width:Ti.UI.FILL,
_moving: false,
_startx: 0,
_endx: 0,
top:0,
left:0
});
但是 iphone 中的 window 奇怪地缩小了状态栏到屏幕的大约 80%...
我在模拟器和设备中尝试过,在这两个地方它都不断出现
like this
知道为什么会发生这种情况吗?
ios 9.3 和 appcelerator sdk 5.2.1GA
谢谢
我过去遇到过这个问题,对我来说,它的启动画面尺寸不合适,这导致应用 运行 的尺寸较小 iphone 4。确保项目中包含所有这些尺寸
iPhone 4/4S
闪屏
640 × 960
72
默认@2x.png
iPhone 5/5C/5S
iPod touch 第 5 代
闪屏
640 × 1136
72
默认-568h@2x.png
iPhone 6
闪屏
750 × 1334
72
默认-667h@2x.png
iPhone6加横向
闪屏
2208 x 1242
72
默认横向 736h@3x.png
iPhone6+人像
闪屏
1242 x 2208
72
默认纵向 736h@3x.png
我从 here
获得了此信息,可以找到更多详细信息
确保你的设备或模拟器有正确的 splash
图片,你可以使用这个很棒的工具 TiCons ,它会生成所有 splash
, icon
和assets
尺寸适合你
在 appcelerator 中,我正在尝试使用此代码
打开一个 windowvar self = Ti.UI.createWindow({
backgroundColor: '#616161',
color: 'blue',
exitOnClose: true,
height: 1000,
navBarHidden: true,
width:Ti.UI.FILL,
_moving: false,
_startx: 0,
_endx: 0,
top:0,
left:0
});
但是 iphone 中的 window 奇怪地缩小了状态栏到屏幕的大约 80%... 我在模拟器和设备中尝试过,在这两个地方它都不断出现 like this
知道为什么会发生这种情况吗? ios 9.3 和 appcelerator sdk 5.2.1GA 谢谢
我过去遇到过这个问题,对我来说,它的启动画面尺寸不合适,这导致应用 运行 的尺寸较小 iphone 4。确保项目中包含所有这些尺寸
iPhone 4/4S 闪屏 640 × 960 72 默认@2x.png
iPhone 5/5C/5S iPod touch 第 5 代 闪屏 640 × 1136 72 默认-568h@2x.png
iPhone 6 闪屏 750 × 1334 72 默认-667h@2x.png
iPhone6加横向 闪屏 2208 x 1242 72 默认横向 736h@3x.png
iPhone6+人像 闪屏 1242 x 2208 72 默认纵向 736h@3x.png
我从 here
获得了此信息,可以找到更多详细信息确保你的设备或模拟器有正确的 splash
图片,你可以使用这个很棒的工具 TiCons ,它会生成所有 splash
, icon
和assets
尺寸适合你