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:

ww2.sinaimg.cn/large/4aebd5d4gw1essboe2y4jj20o0130wkf.jpg ww4.sinaimg.cn/large/4aebd5d4gw1essbozenu9j211s0p8gsb.jpg

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:

ww1.sinaimg.cn/large/4aebd5d4gw1essbpghfpdj20o0130tf8.jpg

finally, there issue, uitableviewcell list wrong , overlapping layout follows:

ww4.sinaimg.cn/large/4aebd5d4gw1essbpzfefhj20o01300yi.jpg

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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -