Swift - 按钮(UIButton)的用法
发布时间:2020-12-14 02:46:27 所属栏目:百科 来源:网络整理
导读:Swift - 按钮(UIButton)的用法 原文地址: http://hangge.com/blog/cache/detail_529.html 作者: yuhang 1,按钮的创建 (1)按钮有下面四种类型: UIButtonType.ContactAdd :前面带“+”图标按钮,默认文字颜色为蓝色,有触摸时的高亮效果 UIButtonType
Swift - 按钮(UIButton)的用法原文地址: http://hangge.com/blog/cache/detail_529.html 作者: yuhang1,按钮的创建
UIButtonType.ContactAdd:前面带“+”图标按钮,默认文字颜色为蓝色,有触摸时的高亮效果
UIButtonType.DetailDisclosure:前面带“!”图标按钮,默认文字颜色为蓝色,有触摸时的高亮效果
UIButtonType.System:前面不带图标,默认文字颜色为蓝色,有触摸时的高亮效果
UIButtonType.Custom:定制按钮,前面不带图标,默认文字颜色为白色,无触摸时的高亮效果
|