My Appでは、特定のViewControllerを開くためのPushNotificationとタッチ通知を取得します。すべての通知が受信され、View Controllerが開きます。ViewController他のView Controllerをリダイレクトしない
別に開いていないが、このタイプのエラーがスローされます1つのビューコントローラからこれは私のコード
let storyBoard = UIStoryboard(name: "Main", bundle: nil)
let nextVCDentist : UIViewController = storyBoard.instantiateViewControllerWithIdentifier("DentistProfileViewCtr") as! DentistProfileViewCtr
let navigation : UINavigationController = UINavigationController(rootViewController: nextVCDentist)
let app = UIApplication.sharedApplication().delegate as! AppDelegate
app.window?.rootViewController = navigation
であり、これは判断し、
Failed to set (colorEmpty) user defined inspected property on (Cosmos.CosmosView): [ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key colorEmpty. fatal error: unexpectedly found nil while unwrapping an Optional value
行くために良いことがあります場合は、インターフェイスビルダーで
CosmosView
を開くためにてみてください型 'CosmosView'上で' colorEmpty'というプロパティにアクセスしてください。だからあなたのコードを見て、あなたがどこかで 'colorEmpty'プロパティを設定しようとしているのを見てください。 – pbodsk