Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个视图,它具有图像视图,subView并且具有引用某个对象(delegate对象)的属性。我对实现copyWithZone:这个对象感到困惑。
subView
delegate
copyWithZone:
同时,我正在尝试使用like[copy setDelegate:[[self delegate] copyWithZone:zone]]编译器报告错误。
[copy setDelegate:[[self delegate] copyWithZone:zone]]
是否可以复制添加到视图中的手势识别器。这样当我从文件反序列化对象时,我可以直接使用该对象。