Hello all, I am learning how to program for the iphone/ipad so be easy on me. I am trying to make a segmented control change the page or url of UIWebView when you click on each segment. I currently have it able to change a label with the use of the tutorials. I would like it to change the label and the WebView url. I have searched google for about an hour with no luck.
This is the code I have for changing the label:
If someone could help me with this it would be much appreciated.
EDIT: Nevermind I found another way to do it.
This is the code I have for changing the label:
Code:
-(IBAction) segmentedControlIndexChanged{
switch (self.segmentedControl.selectedSegmentIndex) {
case 0:
self.segmentLabel.text =@"Student Information System";
break;
case 1:
self.segmentLabel.text =@"Wolverine Access";
break;
default:
break;
}
}
If someone could help me with this it would be much appreciated.
EDIT: Nevermind I found another way to do it.