Mark一下
- (UIView*)duplicate:(UIView*)view
{
NSData * tempArchive = [NSKeyedArchiver archivedDataWithRootObject: view];
return [NSKeyedUnarchiver unarchiveObjectWithData: tempArchive];
}
转载于:https://www.cnblogs.com/jz319/p/4242034.html
Mark一下
- (UIView*)duplicate:(UIView*)view
{
NSData * tempArchive = [NSKeyedArchiver archivedDataWithRootObject: view];
return [NSKeyedUnarchiver unarchiveObjectWithData: tempArchive];
}
转载于:https://www.cnblogs.com/jz319/p/4242034.html