我对名字有点错误:
在您的 Appdelegate.m 中,在函数中
- (BOOL) application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
一定是这样的
self.viewController = [[[MainViewController alloc] init] autorelease];
self.viewController.useSplashScreen = YES;
self.viewController.wwwFolderName = @"www";
self.viewController.startPage = @"index.html";
self.viewController.view.frame = viewBounds;
正如你所看到的,这里它试图从“www”文件夹中加载一些东西。在self.viewController
Appdelegate.h 中声明如下:
@property (nonatomic, retain) IBOutlet PGViewController* viewController;
尝试删除 wwwFoldername 的 @"www" 名称,看看它是否有效