Placeholder in UITextView

前端 未结 30 3062
野趣味
野趣味 2020-11-22 16:01

My application uses an UITextView. Now I want the UITextView to have a placeholder similar to the one you can set for an UITextField.<

30条回答
  •  孤独总比滥情好
    2020-11-22 16:18

    Hi you can use IQTextView available in IQKeyboard Manager it's simple to use and integrate just set class of your textview to IQTextView and you can use its property for setting placeholder label with color you want. You can download the library from IQKeyboardManager

    or you can install it from cocoapods.

提交回复
热议问题