开发者

Press a button behind a UIView

开发者 https://www.devze.com 2023-01-21 17:08 出处:网络
I have a button and half of the button is covered by a UIView (for styling). I was wondering if there was any way to make this UIView \"开发者_如何学JAVAtouch transparent\" as it were, so if you pres

I have a button and half of the button is covered by a UIView (for styling).

I was wondering if there was any way to make this UIView "开发者_如何学JAVAtouch transparent" as it were, so if you press on it it lets you select the image behind it?

Or will I just have to make it a button itself?

Thanks

Tom


You should set the UIView's userInteractionEnabled property to NO.


try to make the UIView opaque to NO

0

精彩评论

暂无评论...
验证码 换一张
取 消