title: Why doesn't this local html page load?
body: <p>I have the following:</p>
  
  <pre><code>@interface HelpViewController : UIViewController &lt;UIWebViewDelegate&gt;
  @property (nonatomic, retain) IBOutlet UIWebView *webView;
  @end
  </code></pre>
  
  <p>And for the same view controller</p>
  
  <pre><code>@implementation HelpViewController
  
  @synthesize webView = _webView;
  
  - (void) viewDidLoad
  {
      [super viewDidLoad];
      NSString *filePath=[[NSBundle mainBundle] pathForResource:@"test" ofType:@"html"];
      NSLog(@"%@", filePath);
      [self.webView loadData:[NSData dataWithContentsOfFile:filePath]
                    MIMEType:@"text/html"
            textEncodingName:@"UTF-8"
                     baseURL:nil];
  }
  </code></pre>
  
  <p>And a basically empty nib to go with this view controller.  The <code>file's owner</code> is has an outlet to <code>view</code>. The file path comes back OK.  But nothing shows up in the view.  I think the problem is that <code>IBOutlet UIWebView *webView</code> is not connected to anything, 'cause I don't know what to connect it to.  Is that the problem?  If so I need to know what to connect it to; otherwise, I need any kind of help!  Thanks!</p>
  
  <p>EDIT: Forgot to mention that I think I have the same problem as this <a href="https://stackoverflow.com/questions/9092296/uiwebview-show-blank-to-ios-dev-beginner">SO Question</a> where it says to connect the outlet, but doesn't say to what.</p>