ios - 使用默认的邮件/发送按钮

标签 ios uibutton rounded-corners


如果我写短信,我正在搜索默认的邮件名称按钮发送按钮
是否可以使用它们,以编程方式调用它们?
或者我只能从 UIButtonTypeCustom 构建它们吗?
我只是想要一个与 UIButtonTypeRoundedRect 完全相同但具有全圆角的按钮。 enter image description here

最佳答案

如果您添加 QuartzCore 框架,您可以调用..

MyButton.layer.cornerRadius = CGRectGetHeight(MyButton.frame) * 0.5;

关于ios - 使用默认的邮件/发送按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13920027/

相关文章:

ios - 从 UICollectionViewCell 呈现 AlertView

css - 带有 css 背景和圆 Angular 边框的 Firefox 溢出错误

ios - 如何从 mainVC.m 访问 customCell.m 中的变量

ios - 将对象传递给选择器时遇到问题

ios - "unable to dequeue a cell with identifier"当切换到编程转换而不是 segue 时

ios - 如何在 Swift 中添加带有 GIF 背景的 UIButtons?

ios - 如何在不通过 Interface Builder 获取 UIButton 类的背景的情况下添加图像?

ios - react native : how to change status bar icon colors

css - 如何创建带圆 Angular 的假标签?

javascript - 带插件的圆 Angular 到 IE 7 中的图像?