-1
Swift를 사용하여이 원을 Xcode 6 시뮬레이터에 표시하려면 어떻게해야합니까?xcode 6 시뮬레이터의 Swift 디스플레이 모양
//// Color Declarations
let color2 = UIColor(red: 0.000, green: 0.587, blue: 1.000, alpha: 1.000)
//// Oval Drawing
var ovalPath = UIBezierPath(ovalInRect: CGRectMake(92, 41, 38, 38))
color2.setFill()
ovalPath.fill()
UIColor.greenColor().setStroke()
ovalPath.lineWidth = 1
ovalPath.stroke()
감사
사용자 정의 UIView 하위 클래스를 작성하는 방법을 알지 못하기 때문에 이것이 잘못된 것 같습니다. 고맙습니다. – Pu99etMaster