I have UIView like this.
I need to put my finger on that view and drag along on those button just like playing piano. Problem is that if initial touch point is on the main view and if I drag along, touches event for main view is triggered and my buttons touch events are not triggered.
As a result, I put this.
[self setUserInteractionEnabled:NO];
Problem is that it has disabled my buttons and other subviews. I want to totally ignore touch event, user interaction from main view but allow for all those subview. How shall I do?

keyboardWillShowand inside the target function set[self setUserInteractionEnabled:NO];for the superView and whenkeyboardWillHidenotification re-enable it. Hope this helps. - Md. Ibrahim Hassan