views:

920

answers:

2

I'd like to emulate the compose mail screen of Apples iPhone app. At this moment I have a UITableView with some cells. The last cell contains a UITextView. I managed to get the scrolling the way I like, but one problem remains: how to let the UITextView and the UITableViewCell automatically grow in height when the user enters a new line of text? There has been written a lot about this, I know. But I couldn't find any solution. Can anybody help me or just give a hint?

Thanks

APC

A: 

You can try looking at answer I found for a similar issue with the text view. You might manage to apply it to your situation.

http://stackoverflow.com/questions/1024539/uitextview-creating-sms-like-text-box/1026481#1026481

Ron Srebro
A: 

curious if you found out how to implement this - i've rewritten my [cell.contextView addSubview:uitextview] code TOO many times now... looking to start from scratch.

Cole