开发者

General XCode UI Question [duplicate]

This question already has an answer here: Custom UIButton + subviews = no events (1 answer) Closed 8 years ago.

Simple question: If I have a UIButton and fill it with different subviews (UIViews, let's say) to make a grid or a collage type thing or wha开发者_StackOverflowtever, will the button still work even if it's covered in other views?


If they are added as subviews to the UIButton (being a subclass of UIView),

[myButton addSubview: collageElementSubview];

there should be no problem (although I would disable user interaction on the subviews just to be safe).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜