Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

best way to make multiline UITableViewCell?

chuckchuck Posts: 87Registered Users
edited December 2011 in iPhone SDK Development
I've been looking all over various forums and in my iPhone dev books, but I can't seem to find a good solution for this. I'd like to run the following code
cell.text = @"First line\nSecond line";

but this just puts everything on the same line. Is there a simple way to display text this multiline or will I have to do something like subclassing the UITableViewCell or putting a UILabel inside this cell with a frame? Each of my table views cells will have exactly five lines. Thanks in advance for any help you can provide!
Post edited by chuck on
<a href="http://www.itunes.com/app/GermanCourse" target="_blank">German Course</a>: Learn German anywhere! <a href="http://www.itunes.com/app/ChessPlayer" target="_blank">Chess Player</a>: Study Chess anywhere!

Replies

Sign In or Register to comment.