Placeholder in UITextView

前端 未结 30 3075
野趣味
野趣味 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:09

    I recommend to use SZTextView.

    https://github.com/glaszig/SZTextView

    Add your default UITextView from storyboard and then change its custom class to SZTextView like below

提交回复
热议问题