[英]Can't See TextView in Xcode Simulator Storyboard after building
I have a screen that contains a multiple line TextView
I put some constrains on the TextView
to make it in the middle of the screen'such as:" Align Center x to superview Align center y to superview Align Trailing to Sage Area 20 Align Leading to Safe Area 20 and when I build it for the simulator for iPhone XI can not see the TextView
on the screen what am I doing wrong? 我有一个包含多行
TextView
的屏幕,我在TextView
上施加了一些约束,使其在屏幕中间,例如:“将中心x对齐到超级视图,将中心y对齐到超级视图,将尾随到Sage Area 20对齐,将引向安全区20以及为iPhone XI模拟器构建的安全区20在屏幕上看不到TextView
我在做什么错?
Thank you 谢谢
My Screen> 我的屏幕>
My Constrains> 我的约束>
Well, I guess you use storyboards instead of coding programmatically.. . 好吧,我想您使用情节提要而不是通过编程进行编码。 Anyways, try typing this in the viewconroller, but first use textView closure and then inside the closure type this: textView.translatesAutoresizingMaskIntoConstraints = false
无论如何,请尝试在viewconroller中键入此内容,但首先使用textView闭包,然后在闭包内键入以下内容:textView.translatesAutoresizingMaskIntoConstraints = false
which allows your text view to pop up.. . 这将使您的文本视图弹出。 I hope it works out.. .
我希望它能解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.