iOS Dev Nugget 16 When not to use category methods


Need to run a code review on your codebase? Hire me

Every tip I've written so far have been about what to do. Here's something that you shouldn't do:

Do not attempt to override methods of an existing class with a category method. You wouldn't know if it will work because the method you are trying to replace might actually have been implemented as a category method. In this case, you can't be sure that your version will only be loaded after the original.

Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No


Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter


View archives of past issues