Swift: Draw a circle with tic marks at it's edge?
Swift: Draw a circle with tic marks at it's edge?
- Subject: Swift: Draw a circle with tic marks at it's edge?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Wed, 18 Jan 2017 20:34:57 +0000
[image: Screen Shot 2017-01-18 at 3.28.22 PM.png]
I have been tasked to create a control. A giant knob that is ticked along
its edge (the number dependent on the minimum & maximum values). Not 360
degrees, just enough ticks to show the range. It will do other things as
well, but I'm wondering how to approach this. The values will always be
Int.
I have included a screenshot. The longer dark tick will always show the
current value. I didn't want to paste a lot of code in here, but I tried
UIBezierPaths and my code only produced a black background. Would this be a
ShapeLayer with another sublayer for the ticks? I'll be using
UIGestureRecognizer to control the rotation of the "dial"...
Eric
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden