I am trying to customize a UIPickerView
I have subclass a UIView which is mainView.
And there is a mask view for blur or darken background purpose, I added it to the mainView.
Then there is the picker view, I have added it to the mask view as subview.
The hierarchy is simple as
--mainview
| -- maskview
|| -- pickerview
Finally I add the whole view to application key window.
My question is, every time I show this mainview, I want mask view to block userinteractions therefore user can't click outside the picker view.
But if I set the userinteractive of mask view to no, it also block the picker view scrolls and touches.
So how can I implement the superview to be non interactive and it's subview to be interactive?
Thanks.