I have a UIScrollView on it I have UIImageView‘s and UIButton, when I create temp UIScrollView and try to do something like this:
for (UIView *viewCopy in scrollView.subviews)
{
[tempScrollView addSubview:viewCopy];
}
Pointer of each subview on scrollView disappearing. I need make a copy of each object? How to make a copy of UIImageView and UIButton? Thanks..
UIImageViewand UIButton, being derived fromUIView, do not conform to theNSCopyingprotocol. So, you cannot make a copy.You can instantiate multiple time
UIImageViewandUIButtonand have as many objects as you need.In any case, it is not clear what you mean by: “Pointer of each subview on scrollView disappearing”