所以我在这里阅读,这样我就可以使用以下命令将CGLayerRef编码为NSValue
NSValue *myCopy = [[NSValue alloc] initWithBytes:&myLayer objCType:@encode(CGLayerRef)]; 但是如何从myCopy重新创建CGLayerRef呢?
谢谢
发布于 2011-06-02 09:11:30
这应该是可行的:
CGLayerRef giveMeBackTheLayer;
[myCopy getValue:&giveMeBackTheLayer];https://stackoverflow.com/questions/6209362
复制相似问题