Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void) pathSelected:(NSString *) pathname; {
- // Gets the path for HTML files
- NSBundle *bundle = [NSBundle mainBundle];
- pathContent = [bundle pathForResource:pathname ofType:@"html"];
- // Set the URL to show the HTML files in UIWebView
- url = [NSURL fileURLWithPath:pathContent];
- [emneView loadRequest:[NSURLRequest requestWithURL:url]];
- }
- - (void)configureView {
- // Update the user interface for the detail item.
- // detailDescriptionLabel.text = [detailItem description]
- emneNr = [detailItem description];
- NSBundle *bundle = [NSBundle mainBundle];
- // Gets the path for HTML files
- pathContent = [bundle pathForResource:emneNr ofType:@"html"];
- // Set the URL to show the HTML files in UIWebView
- url = [NSURL fileURLWithPath:pathContent];
- [emneView loadRequest:[NSURLRequest requestWithURL:url]];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement