How do I assign this text to label in iPhone SDK
I want to assign below text to UILabel, but it gave me many errors:
smslbl.text = @"____ |----|-O /______\ |______| \______/";
Basically I want to assign the ASCII art of a handgrenade to the label text.
Can you please suggest a correct way of assigning this to a UILabel?
Use control characters to your advantage:
smslbl.text = @"____\n |----|-O\n/______\\\n|______|\n\\______/";
Here I am using the \n newline character to signify a new line, and I'm escaping the literal \ characters with another \ character.