UITextView-Placeholder
UITextView-Placeholder copied to clipboard
Is there anyway to change the placeholderLabel's position?
I think you can override updatePlaceholder method, but I'm not sure it would work properly.
- (void)updatePlaceholderLabel {
[super performSelector:@selector(updatePlaceholderLabel)];
self.placeholderLabel.frame = CGRectMake(x, y, width, height);
}
textView.textContainerInset = UIEdgeInsetsZero; textView.textContainer.lineFragmentPadding = 0;
This has worked for me.
textView.textContainer.lineFragmentPadding = 0 did the trick!