Latest 0.0.2
Homepage https://github.com/smithgoo/KpengDianZanBtn
License MIT
Platforms ios 4.3, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

一个点赞的按钮 实现+1 动画上浮 图标动画过渡

KpengDianZanBtn *btn =[[KpengDianZanBtn alloc] initWithFrame:CGRectMake(100, 100, 100, 44)];
btn.title [email protected]"123";
[self.view addSubview:btn];

btn.btnActionCallBack = ^(BOOL states,UIButton *sender) {
//网络请求在此处处理
if (states) {
[sender setTitle:[NSString stringWithFormat:@"%d",[btn.currentTitle intValue]+1] forState:UIControlStateNormal];
}

};

Latest podspec

{
    "name": "KpengDianZanBtn",
    "version": "0.0.2",
    "summary": "u4e00u4e2au70b9u8d5eu52a8u753bu7684u6309u94ae +1u52a8u753bu548cu6309u94aeu56feu7247u7f29u653e",
    "description": "It is a marquee view used on iOS, which implement by Objective-C.",
    "homepage": "https://github.com/smithgoo/KpengDianZanBtn",
    "license": "MIT",
    "authors": {
        "KPeng": "[email protected]"
    },
    "source": {
        "git": "https://github.com/smithgoo/KpengDianZanBtn.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "4.3"
    },
    "requires_arc": true,
    "source_files": "KpengDianZanBtn/*",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This