romaonthego / REFrostedViewController

iOS 7/8 style blurred view controller that appears on top of your view controller.
MIT License
2.97k stars 494 forks source link

View Pager within RefrostedView #168

Closed smidaharoun closed 8 years ago

smidaharoun commented 8 years ago

How can I make the side menu shows only when the user starts swiping from the start of the left of the screen. Actually I am having View Pager with this menu, so I need to define the which one will make the swipe. Anyone can help me implement it ?

smidaharoun commented 8 years ago
    UIView *vw_pan = [[UIView alloc] initWithFrame:CGRectMake(self.view.frame.size.width - 40, self.navigationBar.frame.size.height + [UIApplication sharedApplication].statusBarFrame.size.height + 50, 40, self.view.frame.size.height)];
    vw_pan.backgroundColor = [UIColor clearColor];
    [self.view addSubview:vw_pan];
    [vw_pan addGestureRecognizer:[[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panGestureRecognized:)]];