quentinadam
quentinadam

Reputation: 3150

UITextField force to redraw

How to force a subclassed UITextField to redraw the text when the textRectForBounds gets changed? Calling setNeedsDisplay does not work.

Upvotes: 3

Views: 1734

Answers (1)

Woodstock
Woodstock

Reputation: 22926

Call setNeedsLayout - this should invoke when textRectForBounds gets changed.

Upvotes: 2

Related Questions