문제

I want to call the SetContentOffset of a UIScrollView for example. Is there a way to check if the ScrollView object is disposed prior to calling it?

도움이 되었습니까?

해결책

Set the thing to null wherever you Dispose() it. Then check for null.

This is a good pattern anyway, so the C# object can be GC'd.

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