my dog learned polymorphism
The moose likes iOS and the fly likes Navigating to TableViewController from a view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » iOS
Bookmark "Navigating to TableViewController from a view" Watch "Navigating to TableViewController from a view" New topic

Navigating to TableViewController from a view


Joined: Jul 08, 2002
Posts: 2

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,
Brandon Trebitowski

Joined: Sep 13, 2010
Posts: 3
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

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é

Joined: Nov 24, 2005
Posts: 14688

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.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Navigating to TableViewController from a view
It's not a secret anymore!