¡@

Home 

2014/10/15 ¤U¤È 10:09:26

iphone Programming Glossary: functions.h

Detecting the use of private APIs

http://stackoverflow.com/questions/1740588/detecting-the-use-of-private-apis

How to create global functions in Objective-C

http://stackoverflow.com/questions/7294176/how-to-create-global-functions-in-objective-c

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.. 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 . iphone objective.. Header #import Foundation Foundation.h @interface GlobalStuff NSObject void printTest @end Implementation #import functions.h @implementation GlobalStuff void printTest NSLog @ test Call using #import functions.h ... GlobalStuff printTest The other..