应用程序在模拟器,设备上的白色屏幕上工作

我的应用程序有默认的MainWindow.xib,里面有一个NavigationController。现在我最近将它切换到无xib主窗口和RootViewController(UIViewController的子类),类似于HelloiPhone底部提供的示例: 我的Main.cs:
namespace MyApp {
  public class Application {
    static void Main(string[] args) {
      UIApplication.Main(args, null, "MyApp.AppDelegate");
    }
  }

  public class AppDelegate : UIApplicationDelegate {
    UIWindow window;

    // This method is invoked when the application has loaded its UI and its ready to run
    public override bool FinishedLaunching(UIApplication app, NSDictionary options) {
      RootViewController rootViewController = new RootViewController();

      UINavigationController navigationController = new UINavigationController(rootViewController);
      navigationController.LoadView();
      navigationController.NavigationBar.BarStyle = UIBarStyle.Black;

      window = new UIWindow(UIScreen.MainScreen.Bounds);
      window.AddSubview(navigationController.View);
      window.MakeKeyAndVisible();

      return true;
    }

    // This method is required in iPhoneOS 3.0
    public override void OnActivated(UIApplication app) {
    }

    public override void WillTerminate(UIApplication app) {
      //Save data here
    }
  }
}
我的Info.plist:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>UILaunchImageFile</key>
    <string>images/logo_320x480.png</string>
    <key>UIStatusBarStyle</key>
    <string>UIStatusBarStyleBlackOpaque</string>
    <key>UISupportedInterfaceOrientations</key>
    <array>
      <string>UIInterfaceOrientationPortrait</string>
      <string>UIInterfaceOrientationPortraitUpsideDown</string>
    </array>
  </dict>
</plist>
在模拟器上,一切似乎都很好。首先,显示启动图像,最后几秒钟后会出现rootView。 但是,部署到设备(iPod touch)时,rootView将不会显示。相反,在启动图像后屏幕变为白色。 (顶部的状态栏仍然存在) 这种方法有问题吗?我错过了什么吗?     
已邀请:
您可以在这里找到一些有用的信息: 差异-iphone间-iPod的模拟器和 - 装置 iphone装置-VS-iphone模拟器     
白屏与切换到xib-less无关。 白色屏幕实际上是我的rootView,白色背景,一些图像和一些带有背景图像和白色字体颜色的按钮。我在一段时间后将文件夹“images”重命名为“Images”,并在设备上被大小写敏感。没有显示图像,其他一切都是白色的,所以我没有看到它。 如果我在切换到xib-less之前在设备上进行了测试,我可以直接将其与重命名文件夹相关联。     

要回复问题请先登录注册