SpokaneDude 0 Newbie Poster

This is my code:

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- (void)viewDidLoad
{
    [super viewDidLoad];

    NSString *indexPath = [NSBundle pathForResource:@"iHelp" ofType:@"html" inDirectory:nil];
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:indexPath]]];

The app is crashing because 'nil' for directory name is invalid (DUH!). So for an imbedded html file, what should go there?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.