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.
问题很简单,我需要一个 UIImage 符合 NSCopying 协议,但我完全不知道从哪里开始实现这一点。
你有什么指针可以帮助我吗?
提前致谢
- (id) copyWithZone: (NSZone *) zone { return [[UIImage allocWithZone: zone] initWithCGImage: self.CGImage]; }