I have a UILabel that I add programmatically to my main view. Then I add a gesture recognizer to receive touch events on the shortcut:
UITapGestureRecognizer *recog = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didTouchNotification)]; [notification addGestureRecognizer:recog]; [recog release];
However, when you click the tag, nothing works. I checked all the subheadings to make sure the label was on top, and that is. The only way to get the recognizer to work is if I add it to the main view, but that doesn't help much. Does anyone know why this label behaves so "transparently"?
Happy Holidays!
Rob
source share