In my AppDelegate.h file i written the following code
@interface iBountyHunterAppDelegate : NSObject <UIApplicationDelegate> {
UITabBarController *tabcontroller;
}
@property (nonatomic,retain) IBOutlet UITabBarController *tabcontroller;
and in AppDelegate.h file I synthesize it.
@synthesize tabcontroller;
but in @synthesize line i get an error and the msg is: "MISSING CONTEXT FOR PROPERTY IMPLEMENTATION DECLARATION"
can anyone tell me how to solve it?
I suspect you have put the @synthesize
outside of your @implementation. It should look something like this
// iBountyHunterAppDelegate.m
#import "iBountyHunterAppDelegate.h"
@implementation iBountyHunterAppDelegate
@synthesize tabcontroller; // note that this is between @implementation and @end
// other stuff
@end
"and in AppDelegate.h file I synthesize it." Probably it´s just misspelled but it has to be in .m file :P
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With