objective c - iOS Prefix.pch best practices -


I've seen many developers who added various feature macros in their iOS projects prefix .pch.

Recommend to add an iOS prefix to .pch file (or not) How does your prefix. Pch look?

Ewww ... macro to anyone Do not put in pch file! a. According to the PC file definition, a project specific precompold header. It should not really be beyond the context of the project and it should not really be anything, but #include s and #import s

If you have some macros and you want to share between the headers, then paste them into a header file of yours - Common.h or whatever - And at the beginning of #include that .pch


Comments