I am defining a uiwebview programmatically and its delegate and requests are done but still no visible! why? Thank you
//do some loads on webviewSocial defined on IB and then set it to nil in order to init it after.
self.webViewSocial = nil;
self.webViewSocial = [[UIWebView alloc] initWithFrame:CGRectMake(0, 44, 320, 389)];
self.webViewSocial.autoresizingMask=(UIViewAutoresizingFlexibleHeight |
UIViewAutoresizingFlexibleWidth);
[self.webViewSocial setDelegate:self];
[self.vistaSocial addSubview:self.webViewSocial];
If I set a new webview it works but problem seems that webviewsocial is set on IB and after this coding is not visible anymore.
Some general notes:
self.vistaSocialis not nilself.vistaSocialis added toself.viewAlso dont release the webView and then reinitialize it
Just change the properties of the existing webView
For example if you want to change the frame of the existing webView and moving it to the new super view, you would do the following
You dont need to release it and reinitialize a new one