SZTextView 用于替代内置的 UITextView,实现了 placeholder 功能。
示例代码:
SZTextView *textView = [SZTextView new]; self.textView.placeholder = @"Enter lorem ipsum here"; self.textView.placeholderTextColor = [UIColor lightGrayColor]; self.textView.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:18.0];