How do I programmatically duplicate UIViews built in interface builder?

Posted by Cam Spiers on Stack Overflow See other posts from Stack Overflow or by Cam Spiers
Published on 2010-06-10T23:26:40Z Indexed on 2010/06/10 23:33 UTC
Read the original article Hit count: 543

I want to build up a sub-UIView in Interface Builder (contained within a UIScrollView) with some UILabels contained, I then want to programmatically "copy" this view adjust its left position (by multiples of its width) to achieve a "floating" left effect inside a UIScrollView. I then want to add this copied UIView back into the UIScrollView with different text for the UILabels.

The problem is I don't know how and if you can "copy" UIViews.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c