this might work for you … archive the view and then unarchive it right after. This should give you a deep copy of a view:
id copyOfView =
[NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:originalView]];
More Related Contents:
- How to find topmost view controller on iOS
- How Do I Take a Screen Shot of a UIView?
- Get to UIViewController from UIView?
- UIView Infinite 360 degree rotation animation?
- NSAttributedString background color and rounded corners
- How to use UIVisualEffectView to Blur Image?
- How to crop a UIImageView to a new UIImage in ‘aspect fill’ mode?
- Proper practice for subclassing UIView?
- iPhone SDK: what is the difference between loadView and viewDidLoad?
- How to use UIView autoresizingMask property programmatically?
- Drawing UIBezierPath on code generated UIView
- How to add a touch event to a UIView?
- How to add a border just on the top side of a UIView
- Cut transparent hole in UIView
- “From View Controller” disappears using UIViewControllerContextTransitioning
- How to load a xib file in a UIView
- Why masksToBounds = YES prevents CALayer shadow?
- Creating a reusable UIView with xib (and loading from storyboard)
- How do I present a UIViewController from SKScene?
- UIView – How to get notified when the view is loaded?
- How to draw a “speech bubble” on an iPhone?
- Dashed line border around UIView
- How do I change the color of the text in a UIPickerView under iOS 7?
- Creating iPhone Pop-up Menu Similar to Mail App Menu
- rotate a UIView around its center but several times
- UIView’s border color in Interface builder doesn’t work?
- Rotate UIView around its center keeping its size
- How to mimic Keyboard animation on iOS 7 to add “Done” button to numeric keyboard?
- How to connect multiple buttons in a storyboard to a single action?
- Round top corners of a UIView and add border