Defined outlets, connected them, everything looks fine, nothing works.
Posted
by Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2010-03-23T13:37:18Z
Indexed on
2010/03/23
14:23 UTC
Read the original article
Hit count: 270
Hi!
I'm trying to play with a WebView.
I made an outlet:
IBOutlet UIWebView *browser;
Defined it as a property:
@property (nonatomic, retain) IBOutlet UIWebView *browser;
Synthethized it:
@synthesize browser;
Finally, I connected it in Interface Builder, really it is.
Then I try to do something with it i.e.:
[browser loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://apple.com"]]];
Or also:
Etape *etape = [[Etape alloc] init];
NSString *html = [etape generateHTMLforEtape:[current_etape objectAtIndex:0]];
[browser loadHTMLString:html baseURL:nil];
[etape release];
I get no errors, I tried to Build & Analyse, no notices or warnings or errors.. I've been searching for one whole day, please help me :/
Thanks a lot!
EDIT: Here's screenshots of my connections for my WebView:
© Stack Overflow or respective owner