UIView

UIView

Method Overview

NameDescriptionReturn
roundCorners()การทำให่้ UIView มีขอบที่กลมมนvoid

Method Details

func roundCorners(corners: UIRectCorner, radius: CGFloat, rect: CGRect)

การทำให่้ UIView มีขอบที่กลมมน

Parameters

NameDescriptionType
cornersค่าคงที่ที่ระบุถึงมุมUIRectCorner
radiusค่ารัศมีของมุมที่จะโค้งมนCGFloat
rectจุดตั้งต้นสำรับการโค้งมนCGRect