我已經找到了刷卡功能,我可以在我的應用程序中使用它。 https://github.com/YoonBongKim/SwipeMenuDemo 但問題是,當我使用時,我需要在Appdelegate.m中更改我的根視圖控制器。解決滑動功能(臉書)Xcode
YBSwipeViewController *swipeRootViewCntrlr = [[YBSwipeViewController alloc] initWithMainViewController:mainNavigationCntrlr menuViewController:menuNavigationCntrlr];
self.window.rootViewController = swipeRootViewCntrlr;
因此,我原來的viewcontroller不起作用。我的原始視圖控制器與其他控制器鏈接。我仍然可以刷卡。但是當viewcontroller需要從其他類調用時,應用程序會粉碎。我想知道該怎麼做。
你收到了什麼崩潰報告? –
我得到***由於未捕獲的異常'NSInvalidArgumentException'終止應用程序,原因:'+ entityForName:nil不是合法的NSManagedObjectContext參數搜索實體名'OBHistory'' –
它只發生在我更改根視圖控制器時。 –