Latest 1.0.8
Homepage https://github.com/bawn/LCScoreView
License MIT
Platforms ios 7.0, requires ARC
Dependencies Masonry
Authors

License MIT
Pod version
Platform info

简单的评分控件

1

使用

CocoaPods:

pod 'LCScoreView'

功能

支持直接在IB中设置属性,无需一行代码,使用的是target – action的形式,监听值的改变

[self.scoreView addTarget:self action:@selector(change:) forControlEvents:UIControlEventValueChanged];

2

同样也支持外部设置

self.scoreView.normalImage = [UIImage imageNamed:@"btn_score_normal"];
self.scoreView.highlightedImage = [UIImage imageNamed:@"btn_score_highlighted"];
self.scoreView.totalScore = 6;
self.scoreView.space = 15.0f;
self.scoreView.currentScore = 1;

要求

  • iOS 7 或更高
  • ARC

License

MIT

Latest podspec

{
    "name": "LCScoreView",
    "version": "1.0.8",
    "summary": "u7b80u5355u7684u8bc4u5206u63a7u4ef6",
    "homepage": "https://github.com/bawn/LCScoreView",
    "license": "MIT",
    "authors": {
        "bawn": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bawn/LCScoreView.git",
        "tag": "1.0.8"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "LCScoreView/*.{h,m}",
    "dependencies": {
        "Masonry": [
            "~> 0.6.0"
        ]
    }
}

Pin It on Pinterest

Share This