In my App i am using a page based application where swiping of page will happen in two ways
1.By swiping of fingers
2.By tapping
i have disabled tapping of pages using code.
Now what my requirement is i have a button where click on button i add a view top of it.In this view when i swipe by fingers the swiping of pages still happens which should not.so how to disable the swiping of pages when i add a view. Below is the code where i had a view.In this view i want to disable swiping action
-(IBAction)goTopopUp:(id)sender{
myView.hidden = NO;
myView.backgroundColor = [UIColor colorWithWhite:0 alpha:.5];
[self.pageViewController.view addSubview:myView];
[self.view addSubview:searchBar];
}
NOTE: Its a page based application
Then, when hiding view switch it to YES