objective-cxcodeios6synthesize

Xcode Outlet generation does not generate @synthesize


I am having an issue with Drag and Drop Outlet generation, for some reason Xcode stopped generating @synthesize to the .m file, the @property is added correctly to the .h file.

Also I find it odd that an @interface block is added to the .m file even so the .h file with the @interface exists.

@interface BlahController {

}

@implementation BlahController : UIViewController {
    //Code
}

Solution

  • In Advanced thank you to Carl Veazey, who pretty much wrote up this answer in the comments:

    1. The interface is for private variables.
    2. The "missing" @property have to be accessed by _variableName.

    Many Thanks again.