gpt4 book ai didi

ios7 - 如何制作像 iOS 7 锁屏一样的圆形按钮

转载 作者:行者123 更新时间:2023-12-01 22:58:50 25 4
gpt4 key购买 nike

是否有预定义的小部件可以在 iOS7 中像锁定屏幕一样具有圆形按钮?我一直在查看 UIButton ,但找不到任何东西。所以他们不是 UIButtons,或者我没有看到它,或者他们根本不存在,我必须制作我自己的自定义按钮。

最佳答案

然后在构建步骤中链接框架

进口:

#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

关于ios7 - 如何制作像 iOS 7 锁屏一样的圆形按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20497860/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com