depicus

changing the digital world one bit at a time...

Blants (noun) the rants of a blogger

Loop through controls on a UIView

August 2, 2010 by The Man

Easier than I thought. My view is called vTools and the controls I want to hide are all tagged 101.

for (id subview in vTools.subviews) {
        if ([subview tag] == 101) {
            [subview setHidden:YES];
        }
    }