所以我在这里读到了,我可以使用 CGLayerRef 将 CGLayerRef 编码为 NSValue
NSValue *myCopy = [[NSValue alloc] initWithBytes:&myLayer objCType:@encode(CGLayerRef)];
但是如何从 myCopy 重新创建 CGLayerRef?
谢谢
所以我在这里读到了,我可以使用 CGLayerRef 将 CGLayerRef 编码为 NSValue
NSValue *myCopy = [[NSValue alloc] initWithBytes:&myLayer objCType:@encode(CGLayerRef)];
但是如何从 myCopy 重新创建 CGLayerRef?
谢谢