简体   繁体   English

ios7-为什么我开始输入时UITextView垂直居中

[英]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. 我将自动布局设置为大于或等于75。加载它时似乎还可以,但是当我开始在uitextview上键入内容时,它会缩小高度(1行)并垂直居中。 Note that I have a vertical space constraint from the label to the uitextview (box) . 请注意,从标签到uitextview(框),我有一个垂直空间限制。

Picture 1: 图片1: 这里看起来不错

Picture 2: 图片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 猜大概在100点左右

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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