Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there anyway to change the placeholderLabel's position? #37

Open
LicoC opened this issue Dec 15, 2016 · 3 comments
Open

Is there anyway to change the placeholderLabel's position? #37

LicoC opened this issue Dec 15, 2016 · 3 comments

Comments

@LicoC
Copy link

LicoC commented Dec 15, 2016

No description provided.

@devxoul
Copy link
Owner

devxoul commented Dec 15, 2016

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

@muhammad-zohaib-ehsan
Copy link

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

This has worked for me.

@Zeta611
Copy link

Zeta611 commented Aug 28, 2019

textView.textContainer.lineFragmentPadding = 0 did the trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants