简体   繁体   中英

ios, problems with static table view labeling on cells

when I put a label on my static cell it does not stay in the view.

What it looks like in storyboard. 在此处输入图片说明

What it looks like on the simulator. 在此处输入图片说明

在此处输入图片说明

I'm trying to add a textField too. 在此处输入图片说明

thanks for any help.

Perhaps xcode has a bug? I'm not sure, but I had to add constraints to my label and textField in order for them to stay in the table view cell. All is well.

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