I have a scroll view and I want to make it disappear whenever a pan is done. It works fine and on panning the scroll view disappears but the problem is now I can't scroll the contents.
[UIView animateWithDuration:0.2
delay:0.2
options: UIViewAnimationCurveLinear
animations:^{
slideView.frame=CGRectMake(268, 0, 500, 950);
curtain.frame=CGRectMake(0, 0, 268, 950);
curtain.backgroundColor=[[UIColor alloc]initWithRed:0 green:0 blue:0 alpha:0.6];
[self.view addSubview:slideView];
[self.view addSubview:curtain];
}
completion:^(BOOL finished){
NSLog(@"Done!");
}];
This is how I make my UIScrollView
appear (slideView
is a scroll view). And then I add a UIPanGestureRecognizer
. It all works fine but scrolling is disabled. (panImage
again hides my slideView
.) How do I make scrolling work?
[slideView addGestureRecognizer:panImage];