Latest 0.1.3
Homepage https://github.com/songzhibing/SHelpButton
License MIT
Platforms ios 7.0
Authors
对系统UIButton控件进行简单封装,简化平时代码编写量,并对点击事件用Block替代。

CI Status
Version
License
Platform

Usage


SHelpButton *testButton = [SHelpButton buttonWithType:UIButtonTypeCustom];
testButton.frame = CGRectMake(100, 100, 50, 44);
testButton.backgroundColor = [UIColor grayColor];
testButton.normalTtile = @"Test";
testButton.normalTitleColor = [UIColor whiteColor];
[self.view addSubview:testButton];

[testButton addTouchUpInsideBlock:^(SHelpButton *buton) {
NSLog(@"clicked ....001");
}];

[testButton addTouchUpInsideBlock:^(SHelpButton *buton) {
NSLog(@"clicked ....001");
}];

EventTouchUpInsideBlock block2 = ^(SHelpButton *buton) {
NSLog(@"clicked ....002");
};
[testButton addTouchUpInsideBlock:block2];

[testButton addTouchUpInsideBlock:^(SHelpButton *buton) {
NSLog(@"clicked ....003");
}];

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

SHelpButton is available through CocoaPods. To install
it, simply add the following line to your Podfile:

source 'https://github.com/songzhibing/SHelpButton.git'
platform :ios, '7.0'

target 'TargetName' do
pod 'SHelpButton', '~> 0.1.3'
end

Author

宋直兵, [email protected]

License

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

Latest podspec

{
    "name": "SHelpButton",
    "version": "0.1.3",
    "summary": "SHelpButtonu66ffu4ee3u6309u94aeu70b9u51fbu4e8bu4ef6Blocku5de5u7a0bDemo",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/songzhibing/SHelpButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u5b8bu76f4u5175": "[email protected]"
    },
    "source": {
        "git": "https://github.com/songzhibing/SHelpButton.git",
        "tag": "0.1.3"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "SHelpButton/Classes/**/*"
}

Pin It on Pinterest

Share This