i have custom uiview
inside uiscrollview
same size. , drawing uibezierpath
inside uiview
s drawrect
method. when zooming changed in uiscrollview
drawrect
method gets same rect always. uibezierpath
s resolution not refreshing. suggestion?
implement scroll view delegate method adjust zoomable view's contentscalefactor
(what calling "resolution"):
- (void)scrollviewdidendzooming:(uiscrollview *)scrollview withview:(uiview *)view atscale:(float)scale { view.contentscalefactor = scale * [uiscreen mainscreen].scale; }
you might have tell view needs redrawing, try without first , see happens.
Comments
Post a Comment