Einer.chu Einer.chu - 10 months ago 67
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 Source

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