2014-02-20 132 views
-1

我的問題,顯示我的內容UIWebViewUIWebView的內容大小?

1)文字不顯示,直到結束

2)一些大的缺口留下

enter image description here

3)最後一行被剪輯

enter image description here

有人可以幫我嗎?

+0

它看起來並不像是面臨技術問題,而是缺少閱讀UI組件的文檔。你試圖解決這個問題的步驟是什麼? – givanse

回答

0

Web瀏覽器HTML可能包含空格或換行符。以編程方式刪除它們。

最後一行可能會剪輯,因爲它的高度很大。降低身高。

+0

這裏我改變高度,但不工作contentFrame = question.frame; contentFrame.size.height = question.scrollView.contentSize.height; contentFrame.origin.y = 0; question.frame = contentFrame; contentFrame = labelAnswerA.frame; contentFrame.size.height = labelAnswerA.scrollView.contentSize.height + HTMLTextSize; contentFrame.origin.y = question.frame.origin.y + question.frame.size.height + HTMLTextSize; labelAnswerA.frame = contentFrame; contentFrame = labelAnswerB.frame; contentFrame.size.height = labelAnswerB.scrollView.contentSize.height + – user3088133

+0

HTMLTextSize; contentFrame.origin.y = labelAnswerA.frame.origin.y + labelAnswerA.frame.size.height + HTMLTextSize; labelAnswerB.frame = contentFrame; contentFrame = labelAnswerC.frame; contentFrame.size.height = labelAnswerC.scrollView.contentSize.height + HTMLTextSize; contentFrame.origin.y = labelAnswerB.frame.origin.y + labelAnswerB.frame.size.height + HTMLTextSize; – user3088133

+0

labelAnswerC.frame = contentFrame; contentFrame = labelAnswerD.frame; contentFrame.size.height = labelAnswerD.scrollView.contentSize.height + HTMLTextSize; contentFrame.origin.y = labelAnswerC.frame.origin.y + labelAnswerC.frame.size.height + HTMLTextSize; labelAnswerD.frame = contentFrame; – user3088133

相關問題