Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. -(void) pathSelected:(NSString *) pathname; {      
  2.    
  3.     // Gets the path for HTML files
  4.     NSBundle *bundle = [NSBundle mainBundle];
  5.     pathContent = [bundle pathForResource:pathname ofType:@"html"];
  6.        
  7.     // Set the URL to show the HTML files in UIWebView
  8.     url = [NSURL fileURLWithPath:pathContent];
  9.     [emneView loadRequest:[NSURLRequest requestWithURL:url]];
  10. }
  11. - (void)configureView {
  12.     // Update the user interface for the detail item.
  13.     // detailDescriptionLabel.text = [detailItem description]
  14.    
  15.     emneNr = [detailItem description];
  16.     NSBundle *bundle = [NSBundle mainBundle];
  17.  
  18.     // Gets the path for HTML files
  19.     pathContent = [bundle pathForResource:emneNr ofType:@"html"];
  20.    
  21.     // Set the URL to show the HTML files in UIWebView
  22.     url = [NSURL fileURLWithPath:pathContent];
  23.     [emneView loadRequest:[NSURLRequest requestWithURL:url]];
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement