2010-06-23 5 views

Répondre

0

À titre d'exemple ...

Dans global.h

extern NSString *const VERSION; 

dans global.mm

#import "Global.h" 
NSString *const VERSION = @"1.0.1"; 

tout autre fichier source peut #import global.h à accéder à la valeur.

+0

Salut Hoarace, est-il nécessaire d'inclure le #import "global.h" dans le fichier Application_Prefix.pch également. – raaz

+0

@raaz, pas nécessaire. – ohho

Questions connexes