Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
iOS Rotary Knob & Slider controls. All custom drawing, no images, customizable.
branch: master

This branch is even with domesticcatsoftware:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
DCControls.xcodeproj
DCControls
.gitignore
license.txt
readme.md

readme.md

DCControls

DCControls provides some custom controls for use in iOS 3.2+. These controls are the same as used in our app Midi Touch.

You can follow me on Twitter: @patr, and check out our commercial apps at domesticcat.com.au.

DCKnob (subclass of DCControl)

DCKnob Demo Image

A rotary knob with all custom drawing. Highly customizable, including:

  • Color
  • Bi-directional or normal modes
  • Arc start angle, cutout size, width
  • Gestures (double and triple tap)
  • Min/Max values
  • Label font, color, offset, or no label at all

DCSlider (subclass of DCControl)

DCSlider Demo Image

A slider with all custom drawing. Properties include:

  • Color
  • Bi-directional or normal modes
  • Corner radius
  • Min/Max values
  • Label font and color, or no label at all

Usage

Does not require any external frameworks. Simply add DCControl, DCKnob & DCSlider to your project (depending on what you want to use).

Create a control using initWithDelegate, then implement controlValueDidChange:sender: to receive control updates.

License

All work is under MIT license.

More Info

For more info, see domesticcat.com.au/projects/.

Something went wrong with that request. Please try again.