I am using the modal segue to navigate between 2 view controllers. Below is the 2 segue's I setup.
The purpose of the Segue is to navigate back and forth between the store url screen and the web view screen.
I don't want to use a navigation controller as this is NOT a common use case and I don't want the user to go back easily.
Is there a way to prevent a segue from happening? (I want to present a warning first)
Is this the proper use of segues?
The - (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender
gets called before the segue is being executed. Here you can do a check and return false if you don't want the segue to go through.
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.