So, I read here about SO that I can encode CGLayerRef in NSValue using
NSValue *myCopy = [[NSValue alloc] initWithBytes:&myLayer objCType:@encode(CGLayerRef)];
but how do I recreate a CGLayerRef from myCopy?
thanks
This should work:
CGLayerRef giveMeBackTheLayer; [myCopy getValue:&giveMeBackTheLayer];
Source: https://habr.com/ru/post/889591/More articles:Best place to store large amounts of session data - phpIs it possible to change height on jquery ui progressbar - jqueryAccess ActionScript function through Javascript - javascriptBest way to create custom analytics for my Rails 3 application? - ruby-on-railsRails - Serializing a JSON model using camelize - jsonAndroid - get the key from a certification authority such as VeriSign - androidarrayWithContentsOfFile cannot read plist file - iphoneTag position in Org mode - emacshide text from printing but save space - htmlCompletion of all activities begun before the start of activity - androidAll Articles