首页 > 代码库 > IOS中复制一份UIView

IOS中复制一份UIView

IOS中复制一份UIView

by 伍雪颖

- (UIView*)duplicate:(UIView*)view
{
    NSData * tempArchive = [NSKeyedArchiver archivedDataWithRootObject:view];
    return [NSKeyedUnarchiver unarchiveObjectWithData:tempArchive];
}


IOS中复制一份UIView