Giter Site home page Giter Site logo

zlpolygonview-ios's Introduction

ZLPolygonView-IOS

类似六芒星的能力值控件,可自由变换点数。

导入

支持cocoapod导入

pod 'ZLPolygonView' 

参数列表

可配置参数 类型 作用
arrayPolygons NSArray<NSNumber*>* 每个能力值的数值数组,介于0~1之间
arrayLabels NSArray<NSString*>* 标签数组,没有默认显示“空”
innerColor UIColor* 内部填充颜色的色值,默认为orangeColor
lineColor UIColor* 线条的颜色,默认为grayColor
lineWidth CGFloat 线条宽度,默认为1
dividerNumber NSInteger 分割线的数量,默认为4

代理方法

//点击某个点的代理
- (void)polygonView:(ZLPolygonView *)polygonView onTouchPoint:(CGPoint)point indexOfPolygon:(NSInteger)index;

使用方法

	self.polygonView = [[ZLPolygonView alloc]initWithFrame:CGRectMake(100, 100, 200, 200)];
    self.polygonView.arrayPolygons = @[@(0.3), @(0.8), @(0.5), @(0.2), @(1.0)];
    [self.view addSubview:self.polygonView];

zlpolygonview-ios's People

Contributors

czl0325 avatar

Stargazers

吃藕丑 avatar ye fan avatar Xiaoxia Sun avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

shameless521

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.