11

i insert 2 UIImageView with tag 1 and 100 to UIView,

how to access to UIView and check how many subview on it or select tag 1 to be the top of view ?

RAGOpoR
  • 8,118
  • 19
  • 64
  • 97

1 Answers1

32

"check how many subview on it"

[myView.subviews count];

"or select tag 1 to be the top of view"

[myView bringSubviewToFront:[myView viewWithTag:1]];
Ole Begemann
  • 135,006
  • 31
  • 278
  • 256