This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » iOS
Bookmark "Navigating to TableViewController from a view" Watch "Navigating to TableViewController from a view" New topic
Author

Navigating to TableViewController from a view

jockey
Greenhorn

Joined: Jul 08, 2002
Posts: 2
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

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 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

Joined: Nov 24, 2005
Posts: 14687
    
  16

"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.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Navigating to TableViewController from a view
 
Similar Threads
JTextArea & Cursor
Game Tutorials -->> TicTacToe
How to write the html code for this kind of table
POI Excel Large Function shows #VALUE!
Game Of Life, some questions