Make a deep copy of UIView and all its subzones

I need to make a deep copy of a UIView containing several subzones. Please help me figure out how to do this? I did some searches on google and SO and did not find anything that does what I want.

An explanation for those who would like to know why: my UIScrollView scrolls endlessly, where, of course, the content repeats. Each "set" of content (for example, 26 UIButtons labeled AZ) is contained within a single view. This is the view that I need to make a deep copy so that I can display multiple instances on the screen in scroll.

I can't just recreate the view structure containing the buttons because clicking the buttons calls a class function that my subclass of UIScrollView does not have access to. I also would not want to recreate them, because it seems like wasting time on the logic to recreate and place all the views in the container view, when I could just make a deep copy instead.

Can anybody help me?

+3
source share
1 answer

(Added from my comment on request)

, . , - ; , , .., , , , , .. - - ,

UIButton Target, Action Control?

+3

All Articles