35
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.h likes this
#include <Foundation/Foundation.h>
- (void)printTest;
and in the functions.m
#import "functions.h"
- (void)prinTest {
NSLog(@"test");
}
but it doesn't work. Says me: "Method definition not in a @implementation context".