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

Texfield background color is impossible to set.. #2

Open
mrhevor opened this issue Aug 28, 2014 · 3 comments
Open

Texfield background color is impossible to set.. #2

mrhevor opened this issue Aug 28, 2014 · 3 comments

Comments

@mrhevor
Copy link

mrhevor commented Aug 28, 2014

Hi guys, it's impossible to change background color for MPG texfield, in both mode (IBOutlet or initWithFrame).
XCode 5.1.1 iOS 7.1
I've try many methods but apparently texfield color is always clearColor (transparent..) , why???

@mrhevor
Copy link
Author

mrhevor commented Aug 28, 2014

I've solved changing self.backgroundColor var name with self.backgroundColorPopOver so texfied original background color now is preserved.

@seanarnold
Copy link

@mrhevor can you explain this more? I'm trying to change the background color of my MPG textfield

@jamilarif55
Copy link

@seanarnold : do this in your layoutSubviews of MPGTextField.m
super.backgroundColor=[UIColor grayColor];

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

3 participants