I am indeting to save a uiview in one view and call it in another view (to save it as PDF)
Anyone knows how can I save and retrieve UIView as NSData in Swift?
I am indeting to save a uiview in one view and call it in another view (to save it as PDF)
Anyone knows how can I save and retrieve UIView as NSData in Swift?
According to this post, you could try this :
let yourViewToData = NSKeyedArchiver.archivedDataWithRootObject(yourView)
if let yourViewFromData = NSKeyedUnarchiver.unarchiveObjectWithData(yourViewToData) as? UIView {
// Do what you want with your view
}