मैं कोड के इस टुकड़े है:CAShapeLayer strokeStart और strokeEnd स्थिति
let arcPath = UIBezierPath(ovalInRect: CGRectMake(0, 0, frame.width, frame.height))
circleLayer = CAShapeLayer()
circleLayer.path = arcPath.CGPath
circleLayer.fillColor = UIColor.clearColor().CGColor
circleLayer.strokeColor = UIColor.blueColor().CGColor
circleLayer.lineWidth = 5.0;
circleLayer.strokeStart = 0
circleLayer.strokeEnd = 0.7
जो इस तरह परिणाम:
आप देख सकते हैं, चाप के दाईं ओर शुरू होता है वृत्त। मैं शीर्ष से शुरू चाप आकर्षित करना चाहता हूँ। मुझे यह कैसे करना है? क्या मैं पूरी चीज को -90 डिग्री तक घूमना चाहता हूं जो मैं करने की कोशिश कर रहा हूं?
धन्यवाद।
यह काम करता है। धन्यवाद – gasparuff