我需要复制UI,使用self.controller或self.view,我已经尝试过:
UIView* viewOfSelf =[self.view copy];
UIViewController* controller = [self copy];
UIView* viewOfSelf =[self.view mutableCopy];
UIViewController* controller = [self mutableCopy];
错误信息是:
-[UIViewController mutableCopyWithZone:]: unrecognized selector sent to instance 0xb803490
-[UIView copyWithZone:]: unrecognized selector sent to instance 0x6e0acb0
self
的类是什么?MyViewController
吗?我认为UIView
和UIViewController
没有可变副本。 - Raptor