I have a UIScrollView
which contains instances of an UIView
subclass.
This UIView
has a CAShapeLayer
as a sublayer of its layer, and a UITextView
as a subview.
With zooming enabled on the UIScrollView
, the CAShapeLayer
remains sharp when I zoom, but the UITextView
doesn't.
Is there a way to have the UITextView
redraw at the correct resolution?
you can use [yourTextView contentScaleFactor]
or [yourTextView.layer contentsScale]
. Set it to the current scalefactor.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.