I'm trying to implement the answer to this SO question. The problem is: -[drawTextInRect]
is apparently not called, and setting the shadow in -[drawRect]
doesn't make the UITextField's text shadowed.
Another weird thing is that even if my subclass implementations of -[drawTextInRect]
and -[drawRect]
are completely empty (not even a call to super), the textfield's text is drawn.
I note that -[drawTextInRect] is called once when the UITextField loses focus. Not what I wanted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With