Semantic Issue PerformSelector may cause a leak because its selector is unknown



 该警告不影响程序运行。看他不爽直接屏蔽了就可以:


#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
               [delegate performSelector:stateChangedSelector withObject:self];
#pragma clang diagnostic pop

你可能感兴趣的:(Semantic Issue PerformSelector may cause a leak because its selector is unknown)