-5

How can i create label in below image.

1 Answers1

1

Probably the easiest way would be creating a view (or Xib if you are reusing it), with multiple labels in it. One for each segment of the text:

  • $ sign
  • integer part
  • decimal part
  • "per year" part

Another way would also be using the Attributed String, like in this example, where the inquirer had a similar problem.

Community
  • 1
  • 1
Dejan Skledar
  • 11,280
  • 7
  • 44
  • 70