1.
I’m programmatically adding a UILabel to my view in the initializer and adding a gesturerecognizer.
Then I have other UILabels added in the IB nib file (and each of them also have a gesture recognizer)
I can see my UILabel on top but when I touch the screen the other (nib file UILabels) gesture recognizers are triggered.
I was wondering why, if I see my UIview on top, I can only interact with the views on bottom.
2.
-(void)awakeFromNib is never invoked. Why ?
thanks
1 – is something over the top of your UILabels that has userInteractionEnabled = YES? Do the UILabels from the nib have userInteractionEnabled checked?
2 – if you’re using initWithNibName:bundle: awakeFromNib is not called. awakeFromNib is only called if the object in question was stored IN a nib. If you’re using initWithNibName you need to provide that method in your class.