显式转换 id和void *

id obj = [[NSObject alloc] init];
void *p = (__bridge void *)obj;
id o = (__bridge id)p;

你可能感兴趣的:(显式转换 id和void *)