ios - Multilines UITextView inside a dynamic sizing UITableViewCell gets wrong -
i'm doing ios 8 app, have 3 uitableviewcell in uitableview, , need them dynamic change height. implemented using autolayout , add 2 lines of code in viewdidload
method below:
self.tableview.estimatedrowheight = 66.0; self.tableview.rowheight = uitableviewautomaticdimension;
it works!
but issues appeared, there uitextview
in second uitableviewcell
. can not display long texts entirely, when rotate device/simulator landscape mode, texts display correctly , entirely. here is:
sorry posting screenshot include chinese, can check last line of texts , notice number blue font. last line appears in landscape portrait.
however, turn portrait landscape, entire texts displayed landscape:
finally, there issue, uitableviewcell
list wrong , overlapping layout follows:
the cell red line circled shouldn't here!
can tell me i'm doing wrong here?
maybe it's hard answer looking these screenshots, posted code file here
i guess these issues related autolayout constraints. i'm not sure this. here? i'll appreciated.
thanks.
Comments
Post a Comment