[英]iOS Ensure Bar Button Items Appear Full-Size in UINavigationBar on iPhone SE
[英]button does not show the full text in iPhone SE
像這樣做,
button
到controller
的IBOutlet
連接。 Ex : think your button outlet name is
-> testButton 然后在viewdidload中:
testButton.setTitle("Delete\\n Tender", for: .normal) testButton.titleLabel?.numberOfLines = 2
希望這對您有幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.