Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/112.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 解决刷卡功能(facebook)Xcode_Ios_Facebook_Swipe - Fatal编程技术网

Ios 解决刷卡功能(facebook)Xcode

Ios 解决刷卡功能(facebook)Xcode,ios,facebook,swipe,Ios,Facebook,Swipe,我已经找到了刷卡功能,我可以在我的应用程序中使用它。 但问题是,当我使用时,我需要像在Appdelegate.m中这样更改我的根视图控制器 YBSwipeViewController *swipeRootViewCntrlr = [[YBSwipeViewController alloc] initWithMainViewController:mainNavigationCntrlr menuViewController:menuNavigationCntrlr]; self.windo

我已经找到了刷卡功能,我可以在我的应用程序中使用它。 但问题是,当我使用时,我需要像在Appdelegate.m中这样更改我的根视图控制器

YBSwipeViewController *swipeRootViewCntrlr = [[YBSwipeViewController alloc]     initWithMainViewController:mainNavigationCntrlr menuViewController:menuNavigationCntrlr];
self.window.rootViewController = swipeRootViewCntrlr;

因此,我原来的viewcontroller无法工作。我的原始viewcontroller与其他控制器链接。我仍然可以刷卡。但是当viewcontroller需要从其他类调用时,应用程序会崩溃。我想知道怎么做

我建议去做一些与GitHub完全相同但有317颗星星的东西


我并不是说你提供的课程不起作用,但如果项目背后有一个大社区,那就容易多了

您收到了什么崩溃报告?我收到***由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“+entityForName:nil不是合法的NSManagedObjectContext参数搜索实体名称“OBHistory”,它仅在我更改根视图控制器时发生。感谢您的帮助。但我需要拖动视图并设置动画。我需要使用UIPangestureRecognitor。