How to bring a subview to the front when you tap it?
<p>I have a view with about 30 subviews on it.  I want to add code in my subview's viewcontroller so that when I tap the subview, the subview expands to fill the screen.</p>

<p>I'm using <code>[self.view setFrame:rect]</code> to expand the subview, and this works fine.  The problem is that some of the other 29 subviews are above the subview that I just tapped, so they're still visible.</p>

<p>I've tried using <code>bringSubviewToFront</code> from the parent viewcontroller, but this appears to have no effect.  Is there any code I can put in my subview's viewcontroller class to make this happen?</p>
