gpt4 book ai didi

iphone - 如何在 iOS 中勾选 UIButton?

转载 作者:可可西里 更新时间:2023-11-01 03:42:49 25 4
gpt4 key购买 nike

我想在 iOS 中勾选 UIButton,就像所附图片中的第二个图标一样。

Apple 是否在 SDK 中提供了这个复选标记按钮?

对勾选 UIButton 有什么建议吗?

谢谢。

enter image description here

最佳答案

不,没有内置的复选标记按钮类型。您必须使用 UIButtonTypeCustom 并通过调用 setBackgroundImage:forControlState: 为不同的控件状态提供您自己的图像。你可以使用 UIKit Artwork Extractor工具获取原始图像,但这样做可能会导致拒绝。

关于iphone - 如何在 iOS 中勾选 UIButton?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6020552/

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