欢迎光临
我们一直在努力

CRRulerControl

建站超值云服务器,限时71元/月

CRRulerControl

项目介绍:

CRRulerControl

Meet CRRulerControl – Customizable Control Element for iOS

Demo image

Cleveroad很高兴为iOS应用程序提供一个新的库 – CRRulerControl。 无论您的应用程序是要对图形还是任何可扩展元素进行操作,标尺都是为用户提供便利和增强其体验的关键。 由Cleveroad iOS开发人员创建的可定制组件旨在将一个简单的标尺转换为一个方便和智能的仪器。一个酷炫的标尺控件。

Requirements

  • iOS 8 or higher

Usage

CRRulerControl

You can use storyboard to create a control element.

Using IBOutlet

//That will be called when user changes value.
- (IBAction)rulerValueChaned:(CRRulerControl *)sender;

//To set the ruler length at a distance of two minimal marks.
//Priority value to the total length rulerWidth.
//Can be set using storyboard. 
- @property (nonatomic) IBInspectable CGFloat spacingBetweenMarks; 

//To set the length of the element that scrolls using storyboard. 
- @property (nonatomic) IBInspectable CGFloat rulerWidth; 

//To set the initial value in the leftmost point using storyboard.
- @property (nonatomic) IBInspectable CGFloat rangeFrom; 

//To set the length of the ruler in value from the left border to the right one using storyboard.
- @property (nonatomic) IBInspectable CGFloat rangeLength; 

//To set the initial value using storyboard.
- @property (nonatomic) IBInspectable CGFloat value; 

//To set any image and change a pointing element. 
- @property (nonatomic, readonly) UIImageView *pointerImageView; 

//To add some other elements over the ruler. 
- @property (nonatomic, readonly) UIScrollView *scrollView; 

//To change value with animation or without it. 
- (void)setValue:(CGFloat)value animated:(BOOL)animated; 

//To create the successor from CRRulerControl and redefine the position pointing element.
- (CGRect)frameForPointerImageView; 

//To find out contentOffset of scrollView by value on CRRulerControl
- (CGPoint)contentOffsetForValue:(CGFloat)value; 

//To set the size of the lines for one of the three types of Marks (Major, Middle,Minor)
- (void)setSize:(CGSize)size forMarkType:(CRRulerMarkType)markType; 

//To set the color of the lines for one of the three types of Marks (Major, Middle,Minor)
- (void)setColor:(UIColor *)color forMarkType:(CRRulerMarkType)markType; 

//To set the text of the lines for one of the three types of Marks (Major, Middle,Minor)
- (void)setTextColor:(UIColor *)textColor forMarkType:(CRRulerMarkType)markType; 

//To set the font to the text of the lines for one of the three types of Marks (Major, Middle,Minor)
- (void)setFont:(UIFont *)font forMarkType:(CRRulerMarkType)markType; 

//To set the frequency of lines appearance of one of the three types of Marks (Major, Middle,Minor). The frequency is entered to value and should be a multiple of the Minor frequency.
- (void)setFrequency:(CGFloat)frequency forMarkType:(CRRulerMarkType)markType; 

Custom particle images

  • Use images with transparent background;

  • You can put an image on the pointing element

  • You can add an image to any point of the line knowing the value of this point

Author

Sergey Chuchukalo

License

The MIT License (MIT)

Copyright (c) 2016 Cleveroad Inc.

如果您对使用此库有任何其他问题,请通过info@cleveroad.com与我们联系(电子邮件主题:“CRRulerControl。支持请求。
由制成 – Cleveroad

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » CRRulerControl
分享到: 更多 (0)