I think all of the tutorials I found are from before you could use a xib with uisegmented control. Basically, I am just trying to load websites, that will switch when tapping between UISegmentedControls.
FYI, this is the way I am loading the websites:
NSURL *USurl = [NSURL URLWithString:USurlAddress];
//URL Requst Object
NSURLRequest *USrequestObj = [NSURLRequest requestWithURL:USurl];
//Load the request in the UIWebView.
[webview loadRequest:USrequestObj];
If you’re using a XIB, you have to bind the valueChanged event to a function on your file owner for example.
That function will be called when the segmented control value change, for example:
If you’re doing this by code you can add an event listener to your segmented control with:
P.S.: Variable names, by convention, start with a lowercase character…