PerformSelector warning

后端 未结 5 1195
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-09 06:28

I\'m receiving a warning

PerformSelector may cause a leak because its selector is unknown

In the code:

<
5条回答
  •  执笔经年
    2020-12-09 06:32

    This is a warning generated by the compiler because -Wundeclared-selector was used while compiling and automatic reference counting (ARC) is enabled. This can be, in general, safely ignored, as it's obvious that the selector in the variable named "selector" is unknown at compile time, as it will have its value assigned at runtime.

提交回复
热议问题