Skip to content

Commit

Permalink
update readme formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TomThorpe committed Mar 31, 2015
1 parent 9d8639a commit bc05e52
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,31 @@ or
* Create the `TTRangeSlider` in code using `[TTRangeSlider alloc] init]` then add it as a subview to your code and set the relevant autolayout properties or frame.

Then, customisation of the control is done using the following properties:
* `tintColor`
#### `tintColor`
The tintColor property (which you can also set in Interface Builder) sets the overall colour of the control, including the colour of the line, the two handles, and the labels.

It is safe to change the `tintColor` at any time, if the control is currently visible the colour change will be animated into the new colour.
* `minValue`
#### `minValue`
The minimum possible value to select in the range
* `maxValue`
#### `maxValue`
The maximum possible value to select in the range
* `selectedMinimum`
#### `selectedMinimum`
The preselected minumum value (note: This should be less than the selectedMaximum)
* `selectedMaximum`
#### `selectedMaximum`
The preselected maximum value (note: This should be greater than the selectedMinimum)
* `numberFormatterOverride`
#### `numberFormatterOverride`
Each handle in the slider has a label above it showing the current selected value. By default, this is displayed as a decimal format.

You can override this default here by supplying your own NSNumberFormatter. For example, you could supply an NSNumberFormatter that has a currency style, or a prefix or suffix.

If this property is nil, the default decimal format will be used. Note: If you want no labels at all, set this value to be `(NSNumberFormatter *)[NSNull null]` (as opposed to nil), to specifically mark that you want no labels
* `minLabelColour`
#### `minLabelColour`
The colour of the minimum value text label. If not set, the default is the tintColor.
* `maxLabelColour`
#### `maxLabelColour`
The colour of the maximum value text label. If not set, the default is the tintColor.
* `disableRange`
#### `disableRange`
If true, the control will mimic a normal slider and have only one handle rather than a range.

In this case, the selectedMinValue will be not functional anymore. Use selectedMaxValue instead to determine the value the user has selected.

## Author
Expand Down

0 comments on commit bc05e52

Please sign in to comment.