UII需要複製,自控制器或self.view,我曾嘗試:克隆或複製的UIViewController或UIView的
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
什麼是自我類? 'MyViewController'?我認爲沒有可變的'UIView'和'UIViewController'拷貝 – Raptor