UILabels don't have any methods for triggering events when they are clicked, but you can detect a click manually like this...
//Triggered when the screen is touched
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
//If touch location is inside the label then...
if (CGRectContainsPoint(label.frame, [[[event allTouches] anyObject] locationInView:mainView]))
{
//Open webpage
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];
}
}
______________________________
n00bs are people too...
My first app Motion Sick
.