I am from C# background, and I am having a hard time in figuring out about how to use a static variable(BOOL in my case) in Objective C.
My questions are:
- Where should I declare my static variable.
- How can I access(set its value) from another class.
- Do I need to use extern keyword.
Declare static variable in your implementation file and provide class method to set/get vlaue of it.
Take a look at this answer.