iphone - Application constants used at compilation time -


i have many constants in application used many classes of project. these constants have set @ compilation time (they not modified later). now, use #define statements @ top of each classe requires constant. problem have repeat these statement in each classe requires constant.

i plan define these constants in main.m or in .h imported main.m think not idea.

-> there xcode / ios mechanic or file made purpose ?

-> if not, idea define constants in main. ?

thanks help

kheraud

you can write constants in .h file , can import file in projectname_prefix.pch file .

then don't need import file in other source file . directly imported .


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -