The following is working in objective c:
// Base Class in ClassA.h and ClassA.m
@interface ClassA : NSObject
- (NSString *) myMethod;
@end
@implementation C
You implicitly included the code defined in the category by compiling it.
If you want to avoid the category code to be executed you should remove it from your target, by removing the category implementation file. You can do that from
Target->Build Phase->Compile Sources
That said, you should never use a category to override a method. That's a very bad practice and it's not what categories are for.