• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Swift: Draw a circle with tic marks at it's edge?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Swift: Draw a circle with tic marks at it's edge?
      • From: 2551phil <email@hidden>
    • Re: Swift: Draw a circle with tic marks at it's edge?
      • From: Doug Hill <email@hidden>
    • Re: Swift: Draw a circle with tic marks at it's edge?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Weird NSPredicate structure when using "first" in keypath
  • Next by Date: Re: Swift: Draw a circle with tic marks at it's edge?
  • Previous by thread: Re: making a video from still frames that don't change that often plus audio
  • Next by thread: Re: Swift: Draw a circle with tic marks at it's edge?
  • Index(es):
    • Date
    • Thread