简体   繁体   中英

How to leave a space between lines in UILabel?

I am using UILabel into one of my application and its having multiple lines into it. Now I have to put some more space between two lines in UILabel . I tried to search out the solution, but not able to find it. How can I put more spacing between two lines?

In the UILabel's Attribute Inspector , change the text from Plain to Attribute , then change number of lines and line spacing, its not the UILabel thing but the string itself

在此处输入图片说明

You can set it in the UILabel's Attribute Inspector.

Change Text type from Plain to Attribute , then change number of lines and line spacing.

Hope it will help.

  • You may find useful link for spacing between two lines in UILabel .
  • There are also third party libraries to do so.
  • You can also add spacing directly in your fonts. To get more info,check this SO Post

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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