i have custom uiview inside uiscrollview same size. , drawing uibezierpath inside uiviews drawrect method. when zooming changed in uiscrollview drawrect method gets same rect always. uibezierpaths 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