tags:

views:

230

answers:

1

I have to create an application which contains the same type of view that the Facebook iPhone application has - Profile View and Wall portion. My requirement is to have a question and the user can give an answer with an unlimited number of lines. So obviously I have to use UITableView. Now my problem is deciding my table row height if there are two lines. The answer portion should be small and if the answer portion is big then it should be large with unlimited answers.

Does anyone know how to create this type of table view?

A: 

Sounds like you're going to want to implement

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

in your UITableViewDelegate. You'll need to compute the height for individual rows and then return those heights in the above function.

drewh