I wrote this code in my viewDidLoad function in my iOS project.
lettersLeftLabel.text = @"ABCDEFGH\nIJKLMNOP\nQRSTUVWX\nYZ";
lettersLeftLabel is a text label.
However, no newlines appear. Why?
Also, lettersLeftLabel.text apparently cannot be an integer either:
lettersLeftLabel.text = myIntegerValue;
fails too. How come?
Put your code in
viewDidAppearinstead.Of course you cannot assign a
intto aNSString*. To do that you must do something like