0
私のワークスペースのPodsクラスにあるUIButtonアクションでアプリケーションデリゲートを参照しようとしていますが、「宣言されていない型の使用」エラーが発生しています。これは、他のワークスペースプロジェクトにあるApp Delegateが原因だと思います。私はそれを修正する方法を知りたいですか?ありがとうございました。Cocoapodsで宣言されていないXcodeの使用
ボタンのコード
@IBAction func buttonAction(sender: AnyObject) {
let paymentViewController = storyboard.instantiateViewControllerWithIdentifier("paymentViewController") as! AddCardViewController
let paymentPageNav = UINavigationController(rootViewController: paymentViewController)
let appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
appDelegate.drawerContainer!.centerViewController = paymentPageNav
appDelegate.drawerContainer!.toggleDrawerSide(MMDrawerSide.Left, animated: true, completion: nil)
}
私はAddCardViewController、AppDelegateとMMDrawerSideのための宣言されていないタイプの使用を取得します。