(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];
精彩评论