Reputation: 11074
I'm getting an issue upon validating my application saying that I'm accessing a non-public selector cancelButtonPressed:
. This selector is being called in my static library like this:
else if([self.delegate respondsToSelector:@selector(cancelButtonPressed:)])[self.delegate cancelButtonPressed:senderButton];
Is this a private method? This didn't cause any issues when I was releasing applications prior to this. Do I need to fix this, or will Apple see that I'm not calling a private method?
Upvotes: 0
Views: 261
Reputation: 22701
It is very likely that the method name conflict with an Apple method name and is causing the problem of false reporting the use of private APIs.
Try changing the method name in your delegate
Upvotes: 0
Reputation: 112857
Yes cancelButtonPressed:
is an Apple private method. To check just option click on cancelButtonPressed
to see it is a public method.
Yes, you will have to stop using it.
Yes, Apple sometimes misses things and catches them later.
Perhaps it is the @selector(cancelButtonPressed:)
that is at issue instead of calling directly on an instance that is triggering the private method catch by Apple.
Upvotes: 1