03-31-2012, 08:50 PM #1
Why do new lines not appear in my text label?
- Member Since
- Feb 13, 2012
I wrote this code in my "viewDidLoad" function in my iOS project.
lettersLeftLabel.text = @"ABCDEFGH\nIJKLMNOP\nQRSTUVWX\nYZ";
However, no newlines appear. Why?
04-01-2012, 04:17 PM #2
A UILabel does not support multiline text, but the NSTextField used in Mac OSX projects does.
So you will have to use a UITextView object in your iOS projects, for multiline text, and if you set it's
editable property to false in the attributes inspector, then it will serve the same purpose as an UILabel.
Hope this helps.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By javinladish in forum OS X - Operating SystemReplies: 2Last Post: 10-19-2011, 09:50 PM
By jakeroberts in forum OS X - Apps and GamesReplies: 14Last Post: 06-10-2007, 11:21 AM
By drde in forum OS X - Apps and GamesReplies: 1Last Post: 10-24-2006, 05:38 AM
By Kenai@work in forum Switcher HangoutReplies: 4Last Post: 10-04-2005, 10:03 PM
By heywire in forum Running Windows (or anything else) on your MacReplies: 1Last Post: 12-07-2003, 02:36 AM