Reputation: 5542
I want to define a macro globally. I want to override NSLocalizedString()
throughout my whole project. Is that possible and how do I do it?
Upvotes: 4
Views: 3429
Reputation: 1171
You define your macro in some header file. You place this header file in *.pch
file (prefix header file). Search for "prefix" in build settings for your target. Make sure your *.pch
file is used.
Upvotes: 5
Reputation: 24521
Declare the macro in the #ifdef __OBJC__
section of your AppName-Prefix.pch.
Upvotes: 18