Monday, June 08, 2009

iPhone dev Stupidity 16: Subview Index

* how to get subview's index?

Iterating the subviews array and compare:

"I think what you want to do is check the subviews NSArray of your superview or UIWindow and check that. I can't remember which is the front, but it is either the first or last object.
Subviews are drawn with the painter's method. The views are drawn in order from farthest to nearest and the last object drawn is "the front.""

No comments: