seniorObjective-C
What happens when a category overrides an existing method?
Updated May 17, 2026
Short answer
The last loaded category method replaces previous implementations in method list.
Deep explanation
Categories do not merge logically; they append methods to runtime method list. If two categories define same selector, the one loaded last wins, making behavior dependent on binary load order.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro