我在設置故事板之間的翻轉過渡時遇到了很多麻煩。下面的方法被調用時,該應用程序崩潰。我收到錯誤消息:故事板視圖控制器之間的翻轉過渡不起作用
[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];
}
我會很感激任何幫助。