ios - Not able to press an UIButton below UIView with corner radius -
i have added view uiview
, uibutton
placed below view under left bottom corner.
i've added corner radius uiview object way:
self.myview.layer.cornerradius = self.myview.frame.size.width/2; self.myview.layer.maskstobounds = yes;
now has shape of circle, , button visible. see picture below:
the problem can't press button (it's not highlighting). how can make touchable?
i know placing button front solve problem, know if there way press keeping below view.
this question solved following link: allowing interaction uiview under uiview
the recursive hittest 1 recommend using. accepted answer quite interesting (making views transparant touches or something).
Comments
Post a Comment