我只是尝试使用Starling Framework for Actionscript 3而且我有一个"大"在我的iPhone 6 +的顶部和底部删除这些丑陋的黑条的问题。
我尝试使用:http://wiki.starling-framework.org/manual/multi-resolution_development和http://forum.starling-framework.org/topic/game-not-full-screen-when-testing-in-ios
进行修复但它仍然无法运作:(
任何想法?
package {
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.geom.Rectangle;
import starling.core.Starling;
import starling.events.ResizeEvent;
import starling.utils.HAlign;
import starling.utils.VAlign;
public class FooBar extends Sprite {
private
var _starling: Starling;
public
function CHouseApp() {
super();
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
Starling.handleLostContext = true;
var screenWidth: int = stage.fullScreenWidth;
var screenHeight: int = stage.fullScreenHeight;
var viewPort: Rectangle = new Rectangle(0, 0, screenWidth, screenHeight)
_starling = new Starling(MainApplication, stage, viewPort);
_starling.stage.stageWidth = 320;
_starling.stage.stageHeight = 480;
_starling.showStats = true;
_starling.showStatsAt(HAlign.LEFT, VAlign.BOTTOM);
_starling.start();
}
}
}

Screnshot:
(黑条标有红色箭头)
答案 0 :(得分:2)
您需要包含名称为Defaultx68h@2x.png,大小为640x1136,默认值为667h @ 2x,大小为750x1334,默认值为736h @ 3x,大小为1242x2208的启动图像,或iOS将以分辨率启动应用程序640x960,给你黑条。您可以阅读官方文档here
答案 1 :(得分:0)
我明白了! 我只需要将以下png添加到src文件夹中!这么简单:O