Once you've created the view on your Storyboard and the ViewController files, you link them both to Storyboard , select the Utilities > Identity inspector and tell the ViewController , which in my example I called MinhaWebViewController
:
Gobacktotheimplementationfile(.m),andjustbelow@interface
willdeclaretheoutlet:
@property(nonatomic,weak)IBOutletUIWebView*webView;
Notethatforthemomentthisoutlethasnolinkatall(notethesmallcirclenexttoitwithnofill):
To make this link, go to the Storyboard , with the control key, drag the yellow icon to your UIWebView
and select the previously created property:
Nowyoucangobacktotheimplementationfile(.m)andnotethatthesmallcircleisnowfilled:
You can also check out by selecting your UIWebView
in the Storyboard and Utilities > Connections inspector . There is a connection entered for this outlet :
Done,justmakeyourimplementationtoloadURL:
NSString*fullURL=@"http://conecode.com";
NSURL *url = [NSURL URLWithString:fullURL];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[_webView loadRequest:requestObj];
If you still want the entire project, I have it available on Drive for now.