0

我按照教程制作了一个简单的启动器视图,例如在 facebook 应用程序中。但是程序运行时屏幕上什么都没有显示,它只显示一个白屏。我不知道为什么会这样,请帮忙。

我遵循的教程位于[我遵循了一个教程来制作一个简单的启动器视图,就像在 facebook 应用程序中一样。但是程序运行时屏幕上什么都没有显示,它只显示一个白屏。我不知道为什么会这样,请帮忙。

我遵循的教程位于http://iosguy.com/2010/10/19/tthree20-a-brief-ttlauncherview-tutorial .]1。

4

3 回答 3

2

I encountered the same problem. The solution that worked for me was to set the background of my "MainWindow.xib" to "Clear Color" (default is "White Color"). If you have no xib, you can still set the color in your AppDelegate: [self.window setBackgroundColor:[UIColor clearColor]];

于 2011-08-04T12:10:04.653 回答
1

如果你只需要启动器效果,最好试试这个,轻量级库

https://github.com/rigoneri/myLauncher

希望这可以帮助!

于 2011-08-03T11:01:30.700 回答
0

在我看来,该方法:

- (void)applicationDidFinishLaunching:(UIApplication *)application {

最后缺少:

[navigator.window makeKeyAndVisible];

如果您需要更多帮助,请发布您的代码...

于 2011-08-03T10:18:36.450 回答