一个带框的圆形按钮,可以包含图片或文本
使用RoundButton相对简单。只需在代码中实例化它,或将其设置为通用UIView的特定类
并设置要显示的图片
RoundButton* b = [RoundButton new];
b.image = theButtonImage;
或者,设置要显示的文本
b.text = @"5";
b.textFont = @"AvenirNext-Regular";
b.textColor = [UIColor greenColor];
如果您需要显示徽标,设置徽标的属性
b.showBadge = YES;
b.badge = 3;
b.badgeColor = [UIColor redColor];
版权所有 © 2016-7 Pilgrimage Software
有关详细信息,请参阅LICENSE。