DeformationButton1.1

DeformationButton1.1

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布最新发布2015年9月

LuciusLu 维护。



  • 作者:
  • LuciusLu

示例

Alt text Alt text


导入

导入 "DeformationButton.h"


代码

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];

感谢 MMMaterialDesignSpinner