简体   繁体   中英

iOS simulator does not display TextFields correctly

I was designing a login screen for an app. The screen itself is pretty simple. In the Storyboard editor I see:

看起来不错

When I run it on a simulator (iPhone 6s Plus), however, things do not seem right. The textfields do not appear:

没有文字栏位

If I click into the area where the textfield is supposed to be, I can see it is really there:

光标闪烁,我看到键盘

I think the issue might end up being just the display, but I want to make sure. Has anyone else had this happen? What was the reason for this issue?

You have set the UITextBorderStyle of your text fields to None. That means they have no visible border. If that isn't what you want, pick a different border style.

显然,边界在那里,显示质量太低,以至于我看不到它:/

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