Created
July 29, 2019 06:29
-
-
Save MadeBugs/38a8e67c256bdb7baa47e03061ca8cb2 to your computer and use it in GitHub Desktop.
textView设置placeholder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//要先添加到view上,不然不显示, | |
TextView.addSubview(label) | |
TextView.setValue(label, forKey: "_placeholderLabel") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment