Say, if I have one or two debug functions or macros, where is a good place to put them in an iOS project so that the function can be used by all other files? Would it be a .h file some where, and all the files that use it will need an #import "filename.h"? Is there a common practice?
Say, if I have one or two debug functions or macros, where is a
Share
If you need them available to the entire project and it doesn’t take up too much space, I usually just insert it into the project’s
.pchfile. If it’s long, I put it in a.hfile and#importthe file in the.pchfile.