Pranav Jaiswal
Pranav Jaiswal

Reputation: 3752

text appearing blurred in zoomed mode UITextField/TextView

I've a UIScrollView with 'n' number of UITextField(s) & UITextView(s). Text entered in the UITextField & UITextView appear fine in the normal state(scroll view zoom scale = 1). When ScrollView is zoomed in I scale the UITextField & UITextView rects proportionally w.r.t scrollView zoomScale factor.

The text in zoomed state appears in blurred state when compared to normal state.

Any help in overcoming this problem will be appreciated. Thanks in advance.

Upvotes: 1

Views: 3508

Answers (1)

Rok Jarc
Rok Jarc

Reputation: 18875

All text-related UI elements need redrawing after zooming them in if you want to keep their appearances crystal sharp.

Since this is not an exact duplicate i'll put this links as an answer:

Please check the accepted answers here:

Zoom UILabel & Re-render font at correct size

How do I reset after a UIScrollView zoom?

It's quite a lot of work but it pays of in the end. Especially if you have a lot of text-related elements in scrollView.

Upvotes: 1

Related Questions