0
  • I have tried to declare a var in .pch file but it gives error of undeclared identifier at the place it used. Am I missing some thing or is there any other way to use global vars.
  • I don't want to create a separate class for that.
  • A global var shouldn't be constant (i.e. that should be get and set)

Any help is appreciated. Thanks.My .pch file[![][1]]1

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Mahendra
  • 8,448
  • 3
  • 33
  • 56

1 Answers1

1

You shouly use a Singleton for a globally accessible value.

Tobi Nary
  • 4,566
  • 4
  • 30
  • 50