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?
Related Article: Objective-C strange result
is a Objective-C discussion thread by Nfurman that has 1 reply, was last updated 1 year ago and has been tagged with the keywords: cocoa, objective-c.
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