ScrollView subview count always 2

PierrePDPPierrePDP ZAMember
edited November 2 in Xamarin.iOS

Good morning,

I am coming across an interesting issue this morning, if I try to loop through a scrollviews' subviews or get the subviews.length there are either two items or a count of two respectively.

Has anyone come across this before, and does anyone possibly have a solution?

The code I am using is as follows:

foreach(UIView sub in svContent.Subviews)
{
    contentHeight += sub.Frame.Height;
}

And:
int count = svContent.Subviews.Length;

Tagged:
Sign In or Register to comment.