0

I think I need a solution for this , but using Xamarin. I need to create a function like...

    private int getMyViewIndex(UIView v) { 

    }

Where I send an UIView as parameter and this will return me the index corresponding to Superview. Any suggestions ? tyvm !

Community
  • 1
  • 1
Marco Jr
  • 6,496
  • 11
  • 47
  • 86

1 Answers1

3

Have you tried

var index = Array.IndexOf(MyView.Subviews, mySearchedView);
Sven-Michael Stübe
  • 14,560
  • 4
  • 52
  • 103