Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to define a macro globally in Objective-C?

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?

like image 876
cschuff Avatar asked Nov 28 '22 17:11

cschuff


1 Answers

Declare the macro in the #ifdef __OBJC__ section of your AppName-Prefix.pch.

like image 191
max_ Avatar answered Dec 01 '22 08:12

max_