简体   繁体   中英

How to stop gesture swiping back to previous view controller?

In one of my view controllers I have a carousel that the user can swiper through. But if the user swipes up in the top left hand corner of the screen they can drag back the previous view controller.

How can I stop this? It could be something to do with this?

- (void) viewWillDisappear:(BOOL)animated
{
    [self.carousel setHidden:YES];
}
- (void) viewWillAppear:(BOOL)animated
{
    [self.carousel setHidden:NO];
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM