MaterialTextField
MaterialTextField copied to clipboard
How to setup placeholder label at the center of textfield not at the bottom .
Need to set placeholder at the center of UITextfield . someone please help with this .
Hi @iOSDevAkshay, I'd be happy to help.
You can use textPadding
like this to add extra space above and below the text field, and it will be centered vertically:
myTextField.textPadding = CGSizeMake(0.0f, 8.0f);
Or are you looking for something like this (horizontally centered)?

If you center the text, the placeholder will also be centered:

I am looking for placeholder and active placeholder at center , please help ..
In my case placeholder goes to left . when activated . I have already set alignment at center .
@iOSDevAkshay, I've just released an update so please try v1.0.1 and let me know if you're still seeing the placeholder on the left when the text is centered. If you're able to provide screenshots and/or a link to your code, that would be helpful.
placeholder not see please help me