Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios PKRevealController的问题_Ios_Objective C - Fatal编程技术网

Ios PKRevealController的问题

Ios PKRevealController的问题,ios,objective-c,Ios,Objective C,我正在尝试将PKRevealController与情节提要一起使用。这就是我的AppDelegate对启动的看法 MainNavController* navController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil]instantiateViewControllerWithIdentifier:@"MainNavController"]; MainViewController* mainViewController =

我正在尝试将PKRevealController与情节提要一起使用。这就是我的AppDelegate对启动的看法

MainNavController* navController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil]instantiateViewControllerWithIdentifier:@"MainNavController"];

MainViewController* mainViewController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil]instantiateViewControllerWithIdentifier:@"MainViewController"];
LeftViewController* leftViewController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil]instantiateViewControllerWithIdentifier:@"LeftViewController"];


PKRevealController *revealController = [PKRevealController revealControllerWithFrontViewController:navController  leftViewController:leftViewController];

revealController.animationDuration = 0.25;
revealController.delegate = self;

self.window.rootViewController = revealController;
因此,这似乎工作正常,应用程序启动时没有问题,但当我向右滑动时,左视图控制器显示,然后由于以下错误而崩溃:

“NSInvalidArgumentException”,原因:“-[PKAnimation pk_标识符]:发送到实例的选择器无法识别


我不知道如何解决这个问题。

这可能是导入错误。检查此处以了解如何正确导入,如果您将其作为静态库导入,请确保复制所有步骤