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;
Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top