EventWebView.frame.size = EventWebView.sizeThatFits(CGSize.zero)
EventWebView.scrollView.isScrollEnabled = false;
var frame = EventWebView.frame;
frame.size.width = EventTableView.frame.size.width-40; // Your desired width here.
frame.size.height = 1; // Set the height to a small one.
EventWebView.frame = frame; // Set webView's Frame, forcing the Layout of its embedded scrollView with current Frame's constraints (Width set above).
frame.size.height = EventWebView.scrollView.contentSize.height; // Get the corresponding height from the webView's embedded scrollView.
heightConstraint.constant = frame.size.height
내 HTML 내용에서 내용의 추가 높이를 얻고 것은 "내가 swift3
새로운 생성 이벤트에 대한 테스터. 테스트 설명에 의해 새로운 생성 이벤트에 대한
테스트 설명 Tester.Testing에 의해 작성된 새 이벤트에 대한 설명 Tester에 의해 작성된 새 이벤트에 대한 설명 Tester.Testing에 의해 작성된 새 이벤트에 대한 설명 Tester.Testing에 의해 작성된 새 이벤트에 대한 설명 작성된 새 이벤트에 대한 설명 테스터 별. ription Tester.Testing에 의해 새로 생성 된 이벤트에 대한 설명 Tester.Testing에 의해 새로 생성 된 이벤트에 대한 설명 Tester에 의해 새로 생성 된 이벤트에 대한 설명. Testing Tester.Testing에 의해 새로 생성 된 이벤트에 대한 설명 Tester.Testing에 의해 새로 생성 된 이벤트에 대한 설명 Tester에 의해 새로 생성 된 이벤트에 대한 설명. Testing Tester.Testing에 의해 새로 생성 된 이벤트에 대한 설명 Tester.Testing에 의해 새로 생성 된 이벤트에 대한 설명 Tester에 의해 새로 생성 된 이벤트에 대한 설명. Testing 테스터에 의한 새로 생성 된 이벤트에 대한 설명. 테스터에 의한 새로 생성 된 이벤트에 대한 설명.
\ n "
미리 감사드립니다. –
동일한 오류가 발생합니다. 제가 제약 조건에서 200을 말했을 때 나는 폭과 높이 1000을 얻었습니다. (: 0, Y : 0, 폭 : 200, 높이 : 200 X) // CGFloat, 더블, 지능 myView.frame = RECT – Imran
는하지의 viewDidLoad에서 나는 다음 줄 하자 RECT = CGRect를 추가했다 일. –