문제

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;
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top