-
Notifications
You must be signed in to change notification settings - Fork 731
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
Should work with defaults dropping into Storyboard #12
Comments
can you attach a sample project showcasing the problem? the pull request i submitted should've made it work. |
https://github.com/joeljfischer/Test_Floating_Label I really hope I'm not making an ass of myself by missing something stupid. |
Okay, I found the issue. JVFloatLabeledTextField depends on code to call its setter for the placeholder( As to why it is not being called, I'm not sure. I was under the impression that when setting attributes in interface builder, the system first tries to use a setter if there is one, and only is one is not found sets it directly. I would probably know more about this if I actually used storyboards and nibs, but I tend to code all my layouts. |
Right now, just dropping it into a Storyboard has it working like an ordinary UITextField, can it be modified with sensible defaults to work out of the box in Storyboards? I saw a pull request adding support for Nibs, but when I tried to subclass a UITextField in a Storyboard, nothing changed.
The text was updated successfully, but these errors were encountered: