devxoul / UITextView-Placeholder

A missing placeholder for UITextView
MIT License
1.48k stars 259 forks source link

Add the possibility to use an attributedPlaceholder #10

Closed pblondin closed 9 years ago

pblondin commented 9 years ago

Feel free to merge if you want. I added to the possibility to use an attributedPlaceholder. Also defaultPlaceholderColor function should not use the private API.

devxoul commented 9 years ago

Hi @pblondin, I'll check this soon. Thank you for your time!

devxoul commented 9 years ago

I intended placeholder to behave as that of UILabel. UILabel doesn't have attributedPlaceholder currently, so it is not time to be merged.

Thank you again for your time!

TomLiu commented 9 years ago

I think placeholder should behave as UITextField not UILabel and UITextField do has an attributedPlaceholder

devxoul commented 9 years ago

Oh, god. I meant UITextField, not UILabel. My mistake. I'll check this soon!

devxoul commented 9 years ago

I've merged only attributedPlaceholder lines: https://github.com/devxoul/UITextView-Placeholder/commit/5cdda39a818195597cac627a1dcfbd03e028b7c0