5

I have an Objective-C category of UIColor that I would like to "import" everywhere in my project. But instead of using the #import to every class that needs it I was told there was a way to set it up so all classes can see it. Anyone know how this is accomplished?

Thanks in advance, Rob

Rob
  • 3,919
  • 5
  • 32
  • 47

1 Answers1

4

Add that import to the precompiled header file (*.pch) in your project - that way it will be imported to any implementation file automatically.

Vladimir
  • 169,112
  • 36
  • 383
  • 312