如何使我的应用从 default.png 无缝连接到我的应用?我应该在其他地方加载它吗?仅供参考,我只有一个 iPod Touch 2nd Gen 用于测试运行 4.2.1(8C148) 4.2 模拟器做同样的事情。4.3模拟器工作正常。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]isDirectory:YES]]];
// Override point for customization after application launch.
// Add the view controller's view to the window and display.
[self.window addSubview:viewController.view];
[self.window makeKeyAndVisible];
return YES;
}