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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…