セグエviewDidAppear
を終了するときにヒットしないようにする方法を知っている人はいますか?UIModalTransitionStylePartialCurl
- (IBAction)buttonSelector:(id)sender
{
// creating object for title screen
UIStoryboard *storySelection =[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
// creating object for profile view
selectorViewController = [storySelection instantiateViewControllerWithIdentifier:@"Verse Selector"];
// setting the transition style
selectorViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
// performing the segue
[self presentViewController:selectorViewController animated:YES completion:nil];
}
-(void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
// testing for a return from segue
if (selectorViewController != nil)
{
// getting the chosen values from the instance
chosenBook = selectorViewController.chosenBook;
// setting instance to nil for garbage collection
selectorViewController = nil;
}
}