I have some methods that are used by several classes. My idea was to put these methods on a general separate file and have this be seen by other classes.
How do I do that in Xcode?
Sorry but I am new to iPhone development.
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I sometimes have a
Utilityclass that I define only class methods on for this. Anywhere I need to use one of these random methods I simply#import "Utility.h"and[Utility doSomeHandyThing]You would define the method with this declaration:
The
+allows you to call it on the class itself without instantiating it first, ideal for quick access to code that doesn’t need to depend on any context.