xna移植到iOS 通常需要适配屏幕尺寸使其全盘。做法很简单。游戏加载后获取设备的实际分辨率和800x480的比值

var scaleXValue = (float)this.graphics.GraphicsDevice.Viewport.Width / 800;
var scaleYValue = (float)(this.graphics.GraphicsDevice.Viewport.Height) / 480;

然后再启动类中加入如下代码即可实现全屏

UIApplication.SharedApplication.Windows[0].RootViewController.View.Transform = CGAffineTransform.MakeScale(GameXNA.scaleXValue, GameXNA.scaleYValue);