You need to use UITapGestureRecognizer to create a clickable UILabel . Use UIView and add UILabel as subtitles for this
UITapGestureRecognizer* gesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(yourMethod:)]; [yourLabelView setUserInteractionEnabled:YES]; [yourLabelView addGestureRecognizer:gesture];
One way to make the first word clickable is to output the first word from the label using the string method and save it on another label and use the code above to make it interactive
NSArray* wordArray = [yourLabel.text componentsSeparatedByString: @" "]; NSString* firstWord = [wordArray objectAtIndex: 0];
nsgulliver Mar 08 '13 at 11:59 2013-03-08 11:59
source share