//原游戏界面尺寸大小
            float viewWidth = 800f; float viewHeight = 480f;
            CGRect rect_screen = UIApplication.SharedApplication.Windows[0].Screen.Bounds;
            CGSize size_screen = rect_screen.Size;
            float scale_screen = (float)UIApplication.SharedApplication.Windows[0].Screen.Scale;
            //获取iOS设备实际分辨率尺寸
            float screenWidth = (float)((float)size_screen.Width * scale_screen);
            float screenHeight = (float)((float)size_screen.Height * scale_screen);
            //计算需要放大的倍数X方向,y方向
            float scaleXValue = screenWidth / viewWidth;
            float scaleYValue = screenHeight / viewHeight;
            UIApplication.SharedApplication.Windows[0].RootViewController.View.Transform = CGAffineTransform.MakeScale(scaleXValue, scaleYValue);
            //如果界面存在偏移,可用一下方法移动视图位置
            UIApplication.SharedApplication.Windows[0].RootViewController.View.Frame = new CGRect(0 ,0, (int)screenWidth , (int)screenHeight);