Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Thadon

macrumors member
Original poster
May 28, 2010
60
0
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:
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.