I have an iPhone app, it has two separate MKMapView components in different views, however, many of the actions I will perform with the two views are the same. How do I write the methods once but use them in both view controllers?
An example is I have a button which is disabled in both views until the user performs a certain action, I don't want to write the method to enable this button twice so I want to know what is the best-practice way of sharing methods between views? I'm thinking I could write a class and import that into my view controller.
Thanks