I\'m developing an iphone app and I need to have some functions to use globally in my classes.
But how can I do this?
I just tried to create functions.
functions.
When you want a global function, just write a regular C function. The Objective-C syntax is meant to be used solely in the context of object methods.
void printTest() { NSLog(@"This is a test"); }
You also have to add the declaration in the functions.h header:
functions.h
void printTest();