I have a UIControl within a UIScrollView. I scrollview has a textfield. I want the text field to loose focus when the UIControl is touched.
This is the method the UIControl is hooked up to:
- (IBAction) clickedBackground
{
[self.view endEditing:YES]; //make the view end editing!
}
But, the UIControl doesn't seem to call this event when touched. I did try this as suggested elsewhere, but to no avail:
[scroller setDelaysContentTouches:YES];