iosobjective-cswiftuilabelbullet

Format UILabel with bullet points?


Is it possible to format the text in a UILabel to show a bullet point?

If so, How can I do it?


Solution

  • Perhaps use the Unicode code point for the bullet character in your string?

    Objective-c

    myLabel.text = @"\u2022 This is a list item!";
    

    Swift 4

    myLabel.text = "\u{2022} This is a list item!"