문제

In monotouch.dialog is it possible to alter the height of a row after the Ui has been displayed?

The reason for this is that the UI is drawn and then once some text is passed back from a service I am populating a TextViewElement which uses Text Kit to draw the text to the Ui.

I want to resize the row to fit the text.

I am using IElementSizing but this is only called on first load. I need to modify the row height after this.

I have also set uneven rows on the root.

도움이 되었습니까?

해결책

IElement.GetHeight should be called again after you call Reload, e.g.

root_element.Reload (your_element, UITableViewRowAnimation.None);

Note: it's easier to answer (and likely more accurate) when you provide some source code about what you're using (or tried).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top