ios - Objective C: “Property implementation must have its declaration in interface” -
i keep getting error above not sure why. imported required classes , declared properties. appreciated. have included code below:
// newmoduleviewcontroller.h #import <uikit/uikit.h> @interface newmoduleviewcontroller : uiviewcontroller { uitextfield *textmodulecode; uitextfield *textmoduletitle; } @property (strong, nonatomic) iboutlet uitextfield *textmodulecode; @property (strong, nonatomic) iboutlet uitextfield *textmodueltitle; @end // newmoduleviewcontroller.m #import "newmoduleviewcontroller.h" #import "appdelegate.h" @interface newmoduleviewcontroller () @end @implementation newmoduleviewcontroller @synthesize textmodulecode, textmoduletitle; ....
because wrote textmodueltitle
instead of textmoduletitle
in .h
Comments
Post a Comment