런타임에서 제약 조건 우선 순위를 어떻게 변경할 수 있습니까? 동적 높이가있는 뷰가 있고 런타임에서이 뷰 높이 우선 순위를 변경하려고합니다. 다음은 코드의 일부입니다. if (index == 0) { surveyViewHeightConstraint.constant = 0; surveyViewHeightConstraint.priority = 1000; } else if (index == 1) { surveyViewHeightConstraint.constant = 163; surveyViewHeightConstraint.priority = 500; } 버튼 동작으로 인덱스를 변경하고 있습니다. 이 코드를 실행하면이 오류가 발생합니다. *** Assertion failure in -[NSLayoutConstr..