How does one access subviews and handle groups of them?

Posted by david on Stack Overflow See other posts from Stack Overflow or by david
Published on 2010-06-06T10:34:15Z Indexed on 2010/06/06 10:42 UTC
Read the original article Hit count: 109

Filed under:
|
|
  1. If I want to manipulate a view I get it with [self viewWithTag:5];. Is there a better way to do this?

  2. Sometimes I need to manipulate a bunch of view (e.g. move them all out of the way. I do this by adding a UIView (e.g. UIView iHoldViews) and then adding the views, buttons, etc to this view. Then I can move the iHoldViews view and all its subviews move with it. Is there a better way to do this? (I have a feeling there is :) Maybe storing them in a NSArray or NSMutableDictionary ?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c