To run the example project, clone the repo, and run pod install
from the Example directory first.
Your project deployment target must be iOS 7.1+
DMPickerView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DMPickerView"
Here is the list of customizable options:
@property (nonatomic) Orientation orientation;
The orientation of the picker. Default is VERTICAL
.
@property (nonatomic) CGFloat spacing;
Minimum scale of the label. Default is 0.2
@property (nonatomic) CGFloat minSizeScale;
The spacing between two consecutove elements of the picker. Default is 30.
@property (nonatomic) CGFloat sizeScaleRatio;
Ratio of the scale. If you increase this value the outer labels will look smaller
@property (nonatomic) CGFloat minAlphaScale;
Minimum scale of the alpha. Default is 0.2
@property (nonatomic) CGFloat alphaScaleRatio;
Ratio of the alpha. If you increase this value the outer labels will look dimmer
@property (nonatomic) CGFloat shouldUpdateRenderingOnlyWhenSelected;
Define if the alpha and ratio should be applied always or only when selected. Default is NO
Olivier Tranzer, olivier@dreem.com
DMPickerView is available under the MIT license. See the LICENSE file for more info.