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: enter image description here

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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -