0

画面モードが940x680であるのに、なぜUIScreen.MainScreen.Boundsが480x320であるのか疑問に思っています。iPhone5をターゲットにするために適切な解像度を設定する方法。シミュレーターをiPhone5に設定しました。

画面が希望どおりに表示されないため、iPhone5の解像度でテストする必要があります。

適切な境界はどこで取得できますか、または境界が本来あるべきものではないのはなぜですか?

これが私のappdelegateコードです

public override bool FinishedLaunching (UIApplication app, NSDictionary options)
        {
            // create a new window instance based on the screen size
            window = new UIWindow (UIScreen.MainScreen.Bounds);

            StartScreen homeScreen = new StartScreen();

            //add home screen to navgation controller
            // becomes the top most screen
            this.rootNavigationController = new UINavigationController();
            this.rootNavigationController.NavigationBarHidden = true;
            this.rootNavigationController.PushViewController(homeScreen, false);


            // set the root view controller on the window.  the nav controller witll handle the rest
            this.window.RootViewController = this.rootNavigationController;

            // If you have defined a view, add it here:
            // window.AddSubview (navigationController.View);

            // make the window visible
            window.MakeKeyAndVisible();

            return true;
        }
4

0 に答える 0