0

I faced an issue which I hope could find a solution for it as the structure here is quite old and complicated. I have a class X which has two categories; ex,

@implementation X (category1)

and

@implementation X (category2)

And both of them share the same delegate functions. Now, when I call the delegate method I want to catch it on category2 instead of 1. Is that possible as I cannot remove it from category 1?

Elsammak
  • 1,102
  • 10
  • 26
  • 1
    Possible duplicate of [What happens if two ObjC categories override the same method?](https://stackoverflow.com/questions/3221972/what-happens-if-two-objc-categories-override-the-same-method) – Andreas Oetjen Feb 25 '19 at 07:52
  • Thank you, I think I will add another method in the protocol to fix this. – Elsammak Feb 25 '19 at 07:54

0 Answers0