【发布时间】:2012-05-23 18:20:15
【问题描述】:
UII需要copy,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没有可变副本
标签: objective-c uiview uiviewcontroller copy clone