ios - How do I assign this text to label in iPhone SDK -


i want assign below text uilabel, gave me many errors:

smslbl.text = @"____                 |----|-o               /______\               |______|               \______/"; 

basically want assign ascii art of handgrenade label text.

can please suggest correct way of assigning uilabel?

thanks!

use control characters advantage:

smslbl.text = @"____\n |----|-o\n/______\\\n|______|\n\\______/"; 

here using \n newline character signify new line, , i'm escaping literal \ characters \ character.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -