UIView
Method Overview
| Name | Description | Return |
|---|---|---|
| roundCorners() | การทำให่้ UIView มีขอบที่กลมมน | void |
Method Details
func roundCorners(corners: UIRectCorner, radius: CGFloat, rect: CGRect)การทำให่้ UIView มีขอบที่กลมมน
Parameters
| Name | Description | Type |
|---|---|---|
| corners | ค่าคงที่ที่ระบุถึงมุม | UIRectCorner |
| radius | ค่ารัศมีของมุมที่จะโค้งมน | CGFloat |
| rect | จุดตั้งต้นสำรับการโค้งมน | CGRect |