开发者

(iphone) Is CGImageRef NSObject ? c pointer?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜