给UIView圆角 - Giving UIView rounded corners

问题:

My login view has a subview which has a UIActivityView and a UILabel saying "Signing In…". 个人登陆视图有一个子视图,它有一个UIActivityView和一个UILabel写着“Signing In ...”。 This subview has corners which aren't rounded. 此子视图的拐角不是圆角。 How can I make them round? 我怎样才能让它们成圆形? ide

Is there any way to do it inside my xib? 有没有办法在个人xib中作到这一点? spa


解决方案:

参考一: https://stackoom.com/question/6KhX/给UIView圆角
参考二: https://oldbug.net/q/6KhX/Giving-UIView-rounded-corners