object - objective-c 2.0 Duplicate interface definition for class when defining private methods -
i try define simple private methods , properties in class gives me:
duplicate interface definition class 'fbviewcontroller' this .m file :
#import "fbappdelegate.h" #import "fbviewcontroller.h" #import<facebooksdk/facebooksdk.h> #import "fbloginviewcontroller.h" @interface fbappdelegate() @property (strong,nonatomic) uinavigationcontroller *navcontroller; @property (strong, nonatomic) fbviewcontroller *maincontroller; -(void) showloginview; @end @implementation fbappdelegate @synthesize navcontroller = _navcontroller, maincontroller =_maincontroller; ... ... @end and *.h file:
#import <uikit/uikit.h> @interface fbappdelegate : uiresponder <uiapplicationdelegate> @property (strong, nonatomic) uiwindow *window; @end update
added import files
*solved *
in facebooksdk there fbviewcontroller.h already
the error getting
duplicate interface definition class 'fbviewcontroller' and looking class called fbappdelegate. try reading error message again, may help.
Comments
Post a Comment