简体   繁体   中英

Why is the UITextField placeholder text decreasing in size?

I have a peculiar problem in Interface Builder with placeholder text. Some of the placeholder text is smaller than the rest and I can't find a reason why. When I duplicate a UITextfield with full-sized placeholder text it changes instantly to a smaller font.

Xcode 6.1.1 on Mac OS X 10.10.2

在此输入图像描述

This is just a visual bug in Xcode 6. Whenever you copy an element with text, that text's font-size seems to visually be altered. However, when you build and run the app, it should show up normal on your device or simulator.

You can fix the visual bug by clicking on the copied element, going to the attributes inspector, and then changing the font-size down one and then back up one.

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