我在设置故事板之间的翻转过渡时遇到了很多麻烦。调用以下方法时应用程序崩溃。我收到错误消息:
[NSPathStore2 setView:]: unrecognized selector sent to instance...
这是我的代码:
- (void)advanceToNextViewController {
humptyDumptyViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"firstStoryVC"];
/*
[self.navigationController pushViewController:controller animated:YES];
*/
[UIView beginAnimations:@"animation" context:nil];
[self.navigationController pushViewController:controller animated:NO];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.navigationController.view cache:NO];
[UIView commitAnimations];
}
我很感激这方面的任何帮助。