Defined outlets, connected them, they all returns (null)
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:53 UTC
Read the original article
Hit count: 229
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:
EDIT: That is how I call the view:
DetailViewController *dvController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:[NSBundle mainBundle]];
dvController.workflow_id = parent_id;
Etape *etape = [[Etape alloc] init];
dvController.etapes = [etape getEtapes:parent_id];
[etape release];
[self.navigationController pushViewController:dvController animated:YES];
[dvController release];
© Stack Overflow or respective owner