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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -