DKCircleButton 和演示应用程序的源代码,用于显示圆形按钮点击效果。
$ git clone https://github.com/kronik/DKCircleButton.git
$ cd DKCircleButton/
请查看所包含的演示项目。
如同常规的自定义 UIButton
- (void)viewDidLoad {
[super viewDidLoad];
DKCircleButton *button1 = [[DKCircleButton alloc] initWithFrame:CGRectMake(0, 0, 90, 90)];
button1.center = CGPointMake(160, 200);
button1.titleLabel.font = [UIFont systemFontOfSize:22];
}
button1.animateTap = NO;
支持的构建目标 - iOS 7.x最早的支持部署目标 - iOS 7.0
DKCircleButton 可在 MIT 授权下使用。有关更多信息,请参阅 LICENSE 文件。