gpt4 book ai didi

ios - 当我使用带有按钮标题的下划线时,UIButton 标题闪烁

转载 作者:行者123 更新时间:2023-11-29 12:05:06 25 4
gpt4 key购买 nike

我在下面的代码中使用带下划线的按​​钮标题

 NSDictionary *underlineAttribute = @{NSUnderlineStyleAttributeName: @(NSUnderlineStyleSingle)};
[btn setAttributedTitle:[[NSAttributedString alloc] initWithString:@"See Event TnC" attributes:underlineAttribute] forState:UIControlStateNormal];

最佳答案

你好 vikramarkaios 你可以在属性按钮中将 UIButton 类型系统更改为自定义

enter image description here

希望对你有所帮助!!

关于ios - 当我使用带有按钮标题的下划线时,UIButton 标题闪烁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35336366/

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