ios - UIScrollView not active when zoom -
my problem are:
- i implement uiscrollview (drawview)to draw on it(task ok).
- i drag scrollview viewcontroller using storyboard , assign drawview class it.
- i using pink gesture zoom 1 element in drawview, correct, when element out of size drawview cant scroll see part of element.
in file viewcontroller.m
- (void)viewdidload { [super viewdidload]; [self.drawingview setscrollenabled:yes]; [self.drawingview setcontentsize:cgsizemake(100, 200)]; }
can give me way solution problem or tutorial same? thank
sorry bad grammar
set content size of scrollview size of element adding it.
say elementview view adding scroll view then,
[self.drawingview setcontentsize:elementview.size];
Comments
Post a Comment