【问题标题】:titanium appcelerator window small钛加速器窗口小
【发布时间】:2016-07-16 02:31:02
【问题描述】:

在 appcelerator 中,我正在尝试使用此代码打开一个窗口

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 中的窗口奇怪地收缩到屏幕的 80% 左右... 我在模拟器和设备中尝试过,在这两个地方它一直出现 like this

任何想法为什么会发生? ios 9.3 和 appcelerator sdk 5.2.1GA 谢谢

【问题讨论】:

    标签: ios appcelerator appcelerator-titanium


    【解决方案1】:

    我过去遇到过这个问题,对我来说,它的初始屏幕尺寸不合适,这导致应用程序以较小的 iphone 4 尺寸运行。确保您的项目中有所有这些尺寸

    iPhone 4/4S 启动画面 640 x 960 72 默认@2x.png

    iPhone 5/5C/5S iPod touch 第 5 代 启动画面 640 x 1136 72 默认-568h@2x.png

    iPhone 6 启动画面 750 x 1334 72 默认-667h@2x.png

    iPhone 6 Plus 横向 启动画面 2208 x 1242 72 Default-Landscape-736h@3x.png

    iPhone 6 Plus 纵向 启动画面 1242 x 2208 72 Default-Portrait-736h@3x.png

    我从here得到了这个信息,更多细节可以找到

    【讨论】:

      【解决方案2】:

      确保您的设备或模拟器有正确的splash 图像,您可以使用这个很棒的工具TiCons,它将为您生成所有splashiconassets 尺寸

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多