Latest 1.0.0
Homepage https://github.com/JanyGee/JanyHeartView
License MIT
Platforms ios 8.0, requires ARC
Authors

流动的桃心💗

示例效果

JanyGee/JanyHeartView
JanyGee/JanyHeartView

$ gem install cocoapods

CocoaPods 0.39.0+ is required to build JanyHeartView 1.0.0+.

Podfile

To integrate JanyHeartView into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

target 'TargetName' do
pod 'JanyHeartView'
end

### 使用说明
// 1. 导入头文件
```objc
#import "HeartView.h"

- (void)viewDidLoad {
[super viewDidLoad];
heartView = [[HeartView alloc]initWithFrame:CGRectMake(0.f, 44.f, self.view.frame.size.width, self.view.frame.size.width)];

heartView.rate = 0.5;
heartView.lineWidth = 1;
heartView.strokeColor = [UIColor orangeColor];
heartView.fillColor = [UIColor redColor];
heartView.backgroundColor = [UIColor clearColor];
[self.view addSubview:heartView];

[self loadSlider];
}

- (void)loadSlider
{
UISlider *valueSlider = [[UISlider alloc]initWithFrame:CGRectMake((self.view.frame.size.width-300)/2, self.view.frame.size.height-150, 300, 50)];
valueSlider.minimumValue = 0.0;
valueSlider.maximumValue = 1.0;
valueSlider.value = 0.5;
[valueSlider addTarget:self action:@selector(valueChangedAction:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:valueSlider];
}

- (void)valueChangedAction:(UISlider*)slider
{
heartView.rate = slider.value;
}

Latest podspec

{
    "name": "JanyHeartView",
    "version": "1.0.0",
    "summary": "u6d41u52a8u7684u6843u5fc3ud83dudc97",
    "description": "An optional longer description of BZLibnn* Markdown format.n* Don't worry about the indent, we strip it!",
    "homepage": "https://github.com/JanyGee/JanyHeartView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jany": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/JanyGee/JanyHeartView.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "JanyHeartView",
        "JanyHeartView/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This