iOS uses storyboard to modify Uitextfield's placeholder text color

Source: Internet
Author: User

Recently, there is a need to modify the Uitextfield placeholder text color, find useful code on the Internet to modify, but consider the more elegant implementation, so try to directly implement in the storyboard, the results really succeeded (forgive me too small white), The implementation location is as follows:


Specific steps:

1. Add a key to the user Defined Runtime attributes.

2. Enter key Path (here we enter _placeholderlabel.textcolor).

3. Choose type, there are many kinds (here we choose color)

4. Set value (here is the color selection panel, select the desired color).


Other key path I did not try again, as a shot, you can try more.

iOS uses storyboard to modify Uitextfield's placeholder text color

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.