How can I set the cornerRadius of a UIStackView?

前端 未结 4 382
無奈伤痛
無奈伤痛 2020-12-15 17:50

I\'m updating my app to use UIStackViews, now that most people should have updated to iOS 9.

In the old version, I made a UIView consisting of two UITextFields and

4条回答
  •  自闭症患者
    2020-12-15 18:29

    add cornerRadius on stackview's superview and enable clipsToBounds property of the superview so that the subviews are confined to the bounds of the superview.

提交回复
热议问题