We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,534 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Imbedded html file - what is directory?

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?

1
Contributor
0
Replies
1
View
Question
Answered
SpokaneDude
Newbie Poster
3 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 1 Year Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.5354 seconds using 2.65MB