iphone - How can I declare a global integer and use it across my app? -
How can I declare a global integer and use it in my app?
// SomeFile.h extern int n; //SomeFile.m int n; // Someomefile.m #import "SomeFile.h"
Now you can use global n in some of your upper file.m file
Comments
Post a Comment