M
M
MaxEpt2015-11-10 13:18:44
Objective-C
MaxEpt, 2015-11-10 13:18:44

How to make a tableviewcell with a uitextview that stretches to the height of the content?

Good afternoon! Task: to make such a view monosnap.com/image/gYTkXNoMnn9R85FAzjl8l0ZTmKPXU9 (screenshot)
that's what it is - take.ms/mnqdz
For the message text I use uitextview. When creating a cell, I access it like this:

msgText = (UITextView *)[inBox.contentView viewWithTag:1001];

How to make UITextView fit to content height? and the cell itself is already the height of uitextview

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
An, 2015-11-10
@Flanker_4

Google
stackoverflow.com/questions/18368567/uitableviewce...

A
Anton Marunko, 2015-11-11
@Antonio-banderas

on 8 and above - it is possible and easier - to use the auto-height of the cell - only then uitextview will not work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question