私はUIViewcontroller
の中にコンテナビューを持っています。 storyboard
では、コンテナビューはEmbed Segueを介してUIViewcontroller
に接続されています。 ParentView Controller
から子ビューコントローラにデータを渡す必要はありません。 ChildViewController
にはCustomViewController
クラスがありますが、2つのビューコントローラの間でデータを渡す必要はないので、それらの間の唯一の参照はStoryboard
の埋め込みセグメントです。コンテナビューコントローラのアプリケーションクラッシュNSInternalInconsistencyException Swift?
たびに、私は次のエラーで、親ビューコントローラ、アプリのクラッシュを開く:このエラーの原因とどのようにこの問題を解決することです何
*** Terminating app due to uncaught exception 'NSInternalIncosistencyException', reason: 'NSDictionaryOfVariableBindings failed bacause either one of the values is nil, or there's something wrong with the way the macro is being invoked. Cannot assign value nil for key "childView". Keys:( childView )'
任意のアイデアを?私はXcode 8.1とSwift 3を使って作業しています。
'ChildViewController.view'ある' nil' – shallowThought
投稿することができ、あなたのコード例? –