Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Navigating to TableViewController from a view

 
jockey
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm working on an app where I've a UITableView and I want to wrap the text in the cells. I tried using and is wrapped to 2 lines, but there are few cells which need to wrap to 3 lines. If I use number of Lines=3 it is not working.

Any suggestions?

Best regards,
Jockey.
 
Brandon Trebitowski
author
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Jockey,

It sounds like you will need to create a custom UITableViewCell.

Here is a tutorial we have on iCodeBlog for doing this in Interface Builder http://icodeblog.com/2009/05/24/custom-uitableviewcell-using-interface-builder/

Simply build a custom UITableViewCell that has a UITextView as a sub view. Make sure to set the editable property of the UITextView to NO.

I hope that helps!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jockey",
Welcome to the ranch. You may not be aware of the ranch Naming Policy. Please read it carefully and change your name accordingly (you need both first and last names to be set). Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic