我想将CGImageRef变量传递给performSelectorOnMainThread
使用valueWithPointer将它包装在NSValue中是否足够?
CGImageRef的类型是什么?
它是c指针的typedef吗?
谢谢
答案 0 :(得分:0)
CGImageRef
是指向CGImage
c-struct的指针。对于你的情况,只需将它转换为id类型就足够了:
[obj performSelectorOnMainThread:someSEL withObject:(id)cgImageRef];