简体   繁体   中英

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?

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

which allows your text view to pop up.. . I hope it works out.. .

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