tags:

views:

13

answers:

0
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

// Add code to open bundled Web site

NSString *path = [[NSBundle mainBundle]
                  pathForResource:@"index"
                  ofType:@"html"
                  inDirectory:@"www" ]; 

NSURL *url = [NSURL fileURLWithPath:path];


NSURLRequest *request = [NSURLRequest requestWithURL:url];

[webView loadRequest:request];

// Override point for customization after application launch

[window makeKeyAndVisible];

return YES;} 

Plz help me i am newbie, after launching simulator apps get crashed.. plz help. I want to display html pages from local folder to an iphone/ipad apps.