I want to define a macro globally. I want to override NSLocalizedString() throughout my project. Is it possible and how do I do it?
NSLocalizedString()
Declare the macro in the #ifdef __OBJC__ section of your AppName-Prefix.pch.
#ifdef __OBJC__
You define your macro in some header file. You put this header file in a *.pch file (prefix header file). Find the "prefix" in the build settings for your purpose. Make sure your *.pch file is used.
*.pch
Source: https://habr.com/ru/post/1382151/More articles:Facebook comments iframe height, tried FB.Canvas.setAutoGrow () and FB.Canvas.setSize () - facebookFacebook chat hides Flash applications when opened - flashwxPython; Disable buttons? - pythonCan I extract the return value of a function? - functionHow to disable maven profile in eclipse? - eclipseLifehacker implements URL change with Ajax - jqueryButton text is not centered - androidHide / show UINavigationbar on screen tap - xcodeHow to calculate longitude and latitude at a given distance along a large circle? - latitude-longitudeBigDecimal characters / brackets - javaAll Articles