내부에 컨테이너보기가있는 UIViewcontroller
이 있습니다. storyboard
에서는 컨테이너보기가 Embed Segue를 통해 UIViewcontroller
에 연결됩니다. ParentView Controller
의 데이터를 Child View Controller로 전달할 필요가 없습니다. ChildViewController
에는 CustomViewController
클래스가 있지만 두 개의보기 컨트롤러간에 데이터를 전달할 필요가 없으므로 이들 사이의 유일한 참조는 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
게시 할 수 있습니다 귀하의 예제 코드? –