2020年1月31日金曜日

ios 13, how to change the text field placeholder color from storyboard

How to change  text field placeholder color from storyboard .


  1.  select the UITextfiled of which you want to change the color. if there are several text fields, you have to do the same procedure for each.
  2. open the identity inspector. see the pic.
  3. Find the User Defined Runtime Attributes  and click + button.
  4. Type a new row with Key Path  placeholderLabel.textColor. be reminded that this is for iOS13, Swift 5.0. if it is for lower version, type _placeholderLabel.textColor instead.
  5. choose Type color and select the color as your choice.

0 件のコメント:

コメントを投稿