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
  • 307,833
  • 40
  • 508
  • 550
Mahendra
  • 7,791
  • 2
  • 31
  • 52

1 Answers1

1

You shouly use a Singleton for a globally accessible value.

Tobi Nary
  • 4,483
  • 4
  • 27
  • 48