Swift UIButton - 如何删除下划线? [英] Swift UIButton - How to remove underline?

查看:43
本文介绍了Swift UIButton - 如何删除下划线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 iOS 设置中启用此设置按钮形状"时遇到问题

I have problem when in iOS settings is enabled this setting "Button Shapes"

它在应用程序中导致这个下划线(第一张图片启用设置,第二张没有)

It causing this underline in application (first picture with enabled setting, second without)

知道如何以编程方式或在故事板中禁用它吗?

Any idea how to programatically or in storyboard disable it?

我尝试了属性文本,但得到了相同的结果:(

I tried attributed text but I get same result :(

我是 Swift 新手.

I'm newbie in Swift.

感谢您的帮助!

推荐答案

这不是问题.您不应试图反驳用户设置的任何可访问性更改.他们在那里是有原因的.

It's not a problem. You should not make any attempt to counter any accessibility changes set by the user. They are there for a reason.

这篇关于Swift UIButton - 如何删除下划线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆