How to disable @synthesize in XCode 4.4
-
01-07-2021 - |
Question
Xcode 4.4 does not need @synthesize
for outlets. Yet it still generates it when I use the Referencing Outlet connector in Xcode. Is there anyway to tell it not to generate the @synthesize
? I looked for setting in the project and prefs but could't find anything.
Examples of what it generates in the .m file:
@synthesize name = _name;
@synthesize lastName = _lastName;
Solution
You can turn off the synthesize warnings by clicking on the project name in the Project Navigator on the left then click All Cobined in Build Settings and then search for synthesize. That should be set to No.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow