AP.*_*AP. 4 iphone uiimage nscopying
问题很简单,我需要让UIImage符合NSCopying协议,但我完全不知道从哪里开始实现这一点.
你有指针帮我吗?
提前致谢
Cos*_*que 10
- (id) copyWithZone: (NSZone *) zone
{
return [[UIImage allocWithZone: zone] initWithCGImage: self.CGImage];
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1688 次 |
| 最近记录: |