iphone - In Objective-C, how do you declare/use a global variable? -


i have been researching problem long time, , can't seem find answer question. new iphone programming, sorry if stupid question. if has specific code post showing how can done, helpful.

objective-c superset of c, c way:

int globalx = 100; 

and header file:

extern int globalx; 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -