开发者

(iphone) Is CGImageRef NSObject ? c pointer?

开发者 https://www.devze.com 2023-02-28 06:02 出处:网络
I\'d like to pass CGImageRef variable to performSelectorOnMainThread wrapping it inside NSValue with valueWithPointer is adequate here?

I'd like to pass CGImageRef variable to performSelectorOnMainThread

wrapping it inside NSValue with valueWithPointer is adequate here?

What's the type of CG开发者_如何学CImageRef?

Is it a typedef of c pointer?

Thank you


CGImageRef is a pointer to CGImage c-struct. For your case just casting it to id type must suffice:

[obj performSelectorOnMainThread:someSEL withObject:(id)cgImageRef];
0

精彩评论

暂无评论...
验证码 换一张
取 消