Einer.chu Einer.chu - 1 month ago 19
iOS Question

Who can tell me that what those code mean?

I am not a good developer
who can tell me that what those code mean?
as simple as if...else...;

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
// code here
#pragma clang diagnostic pop

Answer

consider a scenario you are writing a perform selector which is not implemented. But if you don't want that warning. Please declare like below:

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
    [self.ticketTarget performSelector: self.ticketAction withObject: self];
#pragma clang diagnostic pop
Comments