Frage

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;
War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top