UITextView-Placeholder icon indicating copy to clipboard operation
UITextView-Placeholder copied to clipboard

Is there anyway to change the placeholderLabel's position?

Open LicoC opened this issue 9 years ago • 3 comments

LicoC avatar Dec 15 '16 02:12 LicoC

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);
}

devxoul avatar Dec 15 '16 07:12 devxoul

textView.textContainerInset = UIEdgeInsetsZero; textView.textContainer.lineFragmentPadding = 0;

This has worked for me.

muhammad-zohaib-ehsan avatar Jan 19 '18 06:01 muhammad-zohaib-ehsan

textView.textContainer.lineFragmentPadding = 0 did the trick!

Zeta611 avatar Aug 28 '19 07:08 Zeta611