I'm trying to wrap my head around some of the OOP features in objective-c. It seems that using protocols is encouraged, while extending classes to add functionality is discouraged.
My problem:
I have some big chunks of code that scroll the screen when you click on a textfield. I don't want to put these huge chunks of code in every view controller. I just want to make some kind of reference to them.
Should I extend a parent class. Or use a protocol or what?
the whole protocol thing seems weird to me because it looks like it just tells you that you need to create more functions for a class without actually defining what the methods do.
I'm lost