Skip to content
Share loading button.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Examples/MozSinaBtn
Source
DeformationButton.gif
DeformationButton.podspec
DeformationButton2.gif
LICENSE
Podfile
README.md

README.md

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.