Custom Bullets from Images on UITextView or UILabel Swift

前端 未结 1 1646
鱼传尺愫
鱼传尺愫 2021-01-07 06:00

I\'m creating an app that basically is a mobile version of a large website. This website has a certain area that lists product features. Each feature is bulleted with a uniq

1条回答
  •  执笔经年
    2021-01-07 06:48

    • Make your UITextView's text type as attributed

    • Increase the Head indentation value

    • Construct your string in the following format:

      "• This is a string\n\n• This is another string, but longer and better. The number of words in this string are probably higher than the last one."

    • Use Alt + 8 to type in a bullet.

    • Result:

    0 讨论(0)
提交回复
热议问题