0
SwiftでCGContextSetTextDrawingModeで "setLineWidth"プロパティと "setLineJoin"プロパティを使用するにはどうすればよいですか?setLineWidthプロパティ(drawRect関数)でCGContextSetTextDrawingModeを使用
override func drawRect(rect: CGRect) {
let context = UIGraphicsGetCurrentContext()
CGContextSetTextDrawingMode(context, CGTextDrawingMode.Stroke)
context?setLineWidth(2)
context.setLineJoin(CGLineJoin.Round)
}
プロパティ(setLineWithおよびsetLineJoin)のみが機能しません。 それは1年前に働いた。しかし、今は動作しません。
で動作します!私はswiftの最新バージョンに更新しました。今それは働いている! –
あなたは大歓迎です! – Rob