繁体   English   中英

按钮在iPhone SE中不显示全文

[英]button does not show the full text in iPhone SE

我在view有3个buttons 所有按钮均以相同number of lines显示button title 即,如果1个按钮以2行显示文本,则其他两个将显示相同的文本。 这个问题主要是在使用iPhone SE's时影响到我。 它显示如下

按钮设计

这就是属性检查器的外观

在此处输入图片说明

字体大小为-

在此处输入图片说明

像这样做,

  1. 创建一个从buttoncontrollerIBOutlet连接。
  2. Ex : think your button outlet name is -> testButton
  3. 然后在viewdidload中:

      testButton.setTitle("Delete\\n Tender", for: .normal) testButton.titleLabel?.numberOfLines = 2 

希望这对您有帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM