Latest 1.1.0
Homepage https://github.com/mcyj1314/YJWaveProgressView
License MIT
Platforms ios 8.0, requires ARC
Authors

一款圆形水波进度控件,高度可定制开发,支持自动布局

YJWaveProgressView
YJWaveProgressView
YJWaveProgressView

Demo

YJWaveProgressViewYJWaveProgressViewYJWaveProgressView

Installation

  • Installation with CocoaPods:pod 'YJWaveProgressView'
  • Manual import:
    • Drag All files in the YJWaveProgressView folder to project
    • Import the main file:#import "YJWaveProgressView.h"

Usage

✨✨ 支持自动布局 ✨✨


    YJWaveProgressView *waveView = [[YJWaveProgressView alloc]init];
    // 设置水波颜色
    waveView.waterColor = [UIColor colorWithRed:107/255.0 green:194/255.0 blue:53/255.0 alpha:1];
    // 设置水波背景颜色
    waveView.waterBgColor = [UIColor colorWithRed:107/255.0 green:194/255.0 blue:53/255.0 alpha:0.6];
    // 设置描述文字
    waveView.descriptionText = @"汽车当前电量";
    // 显示刻度
    waveView.showScale = YES;
    // 时钟刻度样式
    waveView.scaleStyle = YJWaveScaleStyle_Clock;
    // 允许重力感应
    waveView.allowCoreMotion = YES;
    // 设置进度
    waveView.progress = 0.8;
    [self.view addSubview:waveView];
    [waveView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.view);
        make.size.mas_equalTo(CGSizeMake(300, 300));
    }];

Update

  • 2018.12.10
    添加新功能:新增刻度盘显示、支持重力感应

Remind

  • ARC
  • iOS>=8.0
  • iPhone iPad screen anyway

Contact me

License

YJWaveProgressView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "YJWaveProgressView",
    "version": "1.1.0",
    "summary": "u4e00u6b3eu5706u5f62u6c34u6ce2u8fdbu5ea6u63a7u4ef6.",
    "description": "u4e00u6b3eu5706u5f62u6c34u6ce2u8fdbu5ea6u63a7u4ef6uff0cu9ad8u5ea6u652fu6301u53efu5b9au5236u5f00u53d1uff0cu652fu6301u81eau52a8u5e03u5c40",
    "homepage": "https://github.com/mcyj1314/YJWaveProgressView",
    "license": "MIT",
    "authors": {
        "Jeremiah": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/mcyj1314/YJWaveProgressView.git",
        "tag": "1.1.0"
    },
    "source_files": [
        "YJWaveProgressView",
        "YJWaveProgressView/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This