简体   繁体   中英

ios7 - Why is the UITextView centered vertically when I start typing

I set the autolayout to greater than or equal than 75. I seems to be okay when the it loads, but when I start typing on the uitextview, it shrinks in height (1 line) and is centered vertically. Note that I have a vertical space constraint from the label to the uitextview (box) .

Picture 1: 这里看起来不错

Picture 2: 它收缩

Hope someone can help me.

Remove that constraint and set the contraints to the fixed height you want. Guessing it is somewhere around 100pts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM