是否有预定义的小部件在iOS7中有圆形按钮,就像锁定屏幕一样?我一直在看UIButton,但什么也找不到。所以他们--他们不是UIButtons,或者我没有看到,或者他们根本不存在--我不得不做我自己的定制按钮。
发布于 2013-12-11 01:25:56
然后在构建步骤中链接框架。
进口:
#import QuartzCore/QuartzCore.h代码:
self.fiveButton.layer.cornerRadius = self.fiveButton.bounds.size.width/2.0;
self.fiveButton.layer.borderWidth = 1.0;
self.fiveButton.layer.borderColor = self.fiveButton.titleLabel.textColor.CGColor;
self.fiveButton.titleLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:35];这是不完全正确的:我没有把标签上移(有插入的),我也没有弄清楚确切的字体,但它就快到了。
https://github.com/langford/RoundButtonDemo/blob/master/screenshot.png
git@github.com:langford/RoundButtonDemo.git
https://stackoverflow.com/questions/20497860
复制相似问题