implicit conversion of an Objective-C pointer to 'void *' is disallowed with ARC

后端 未结 2 369
轻奢々
轻奢々 2021-01-30 17:40

What does this mean and what alternative do I have?

implicit conversion of an Objective-C pointer to \'void *\' is disallowed with ARC

I

2条回答
  •  再見小時候
    2021-01-30 17:45

    • Automatic Reference Counting - 3.2.4. Bridged casts

    You should use __bridge cast for it.

    AudioSessionInitialize(NULL, NULL, NULL, (__bridge void *)self);
    

提交回复
热议问题