Latest 1.1
Homepage https://github.com/LuciusLu/DeformationButton
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors

demo

Alt text
Alt text

Installation

Available in CocoaPods

pod ‘DeformationButton’


import

import "DeformationButton.h"


code

DeformationButton *deformationBtn = [[DeformationButton alloc]initWithFrame:CGRectMake(100, 100, 140, 36) withColor:[self getColor:@"e13536"]];
[self.view addSubview:deformationBtn];

[deformationBtn.forDisplayButton setTitle:@"微博注册" forState:UIControlStateNormal];
[deformationBtn.forDisplayButton.titleLabel setFont:[UIFont systemFontOfSize:15]];
[deformationBtn.forDisplayButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[deformationBtn.forDisplayButton setTitleEdgeInsets:UIEdgeInsetsMake(0, 6, 0, 0)];
[deformationBtn.forDisplayButton setImage:[UIImage imageNamed:@"微博logo.png"] forState:UIControlStateNormal];

[deformationBtn addTarget:self action:@selector(btnEvent) forControlEvents:UIControlEventTouchUpInside];

Thanks for MMMaterialDesignSpinner

Latest podspec

{
    "name": "DeformationButton",
    "version": "1.1",
    "summary": "Share loading button",
    "homepage": "https://github.com/LuciusLu/DeformationButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "LuciusLu": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/LuciusLu/DeformationButton.git",
        "tag": "v1.1"
    },
    "source_files": [
        "Source/MMMaterialDesignSpinner-master/*.{h,m}",
        "Source/*.{h,m}"
    ],
    "requires_arc": true,
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This