iOS 進度條:CMSteppedProgressBar
CMSteppedProgressBar 是一個定制化的,按步數前進的進度條,你可以改變進度條的顏色,動畫時長,動畫選項,步數的數量大小,進度點和進度線的大小。
/// set nbSteps in last because it will create all views, so if you want a custom design customize before setting the number of steps @property (nonatomic) NSUInteger nbSteps; /// set manually the currentStep or use stepNext/stepPrev @property (nonatomic) NSUInteger currentStep; /// change the line height between the dots, default is 5 @property (nonatomic) CGFloat linesHeight; /// change the width of the dots, default is 20 @property (nonatomic) CGFloat dotsWidth; /// anim duration, default is 0.6f @property (nonatomic) NSTimeInterval animDuration; /// anim type, default is curve ease in @property (nonatomic) UIViewAnimationOptions animOption; /// change the color of the bar when not filled, gray by default @property (nonatomic, strong) UIColor* barColor; /// change the color of the bar when it's filled, white by default @property (nonatomic, strong) UIColor* tintColor;
本文由用戶 cm54 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!