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?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- Macro expansion in elixir: how to define 2 macros
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
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.Declare the macro in the
#ifdef __OBJC__
section of your AppName-Prefix.pch.