(iphone)是CGImageRef NSObject吗? c指针?

时间:2011-04-22 11:15:00

标签: iphone types cgimage

我想将CGImageRef变量传递给performSelectorOnMainThread
使用valueWithPointer将它包装在NSValue中是否足够?

CGImageRef的类型是什么?
它是c指针的typedef吗?

谢谢

1 个答案:

答案 0 :(得分:0)

CGImageRef是指向CGImage c-struct的指针。对于你的情况,只需将它转换为id类型就足够了:

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