viewDidAppear
有谁知道退出UIModalTransitionStylePartialCurl
segue时如何避免被击中?
- (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;
}
}