I have searched on S/O and none of the answers have applied to my code so I am assuming its something I am missing in my code.
I added a UIWebView
using Interface Builder called showAbout
I declared an iVar with an IBOutlet here:
@interface About : UIViewController<UIWebViewDelegate>
{
IBOutlet UIWebView *showAbout;
}
@property (nonatomic, retain) IBOutlet UIWebView *showAbout;
I verified that InterfaceBuilder does in fact have an outlet set for it.
Here is how I am setting it up in the about.m
showAbout.scalesPageToFit = YES;
NSString *thePath = [[NSBundle mainBundle] pathForResource:@"about" ofType:@"html"];
if (thePath) {
NSData *aboutData = [NSData dataWithContentsOfFile:thePath];
[showAbout loadData:aboutData MIMEType:@"application/html"
textEncodingName:@"utf-8" baseURL:nil];
The UIWebView is not displaying my HTML page that I have added to the project.
Any ideas...