How do i change the location of the text AND show the FULL string in UITableView?
Here is a screen shot of what I have, once you look at it you will know what I mean. Thanks
My App http://img188.imageshack.us/img188/9926/chucknhelp.tif
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do it without subclassing
UITableViewCell.In the method
tableView:cellForRowAtIndexPath:, create a basicUITableViewCelland change the properties of theUILabelcontained in this cell. Change the maximum number of lines to fit more text in your cell.Unfortunately, the label of the cell is not accessible by properties, so you need to fetch it with the
subviewsproperty.Of course this uses an implementation detail of
UITableViewCell, so it might break with future releases of the SDK. Use with care.Here is an example:
Update:
To set the row height to fit the text, you can do the following:
1. Set the cell height to fit the text.
You need something like this:
2. Return the cell height in the
tableView:heightForRowAtIndexPath:method.For example like this: