GibboK
GibboK

Reputation: 73988

Property implementation must have its declaration in interface 'AppDelegate'

I receive this error

Property implementation must have its declaration in interface "AppDelegate"

When I declare

@implementation AppDelegate

@synthesize window, viewController;
@synthesize token;

I'm using Xcode 4.4.

Upvotes: 1

Views: 3184

Answers (2)

ddoor
ddoor

Reputation: 5973

It looks like you didn't set widow, viewController or token as properties in your .h file.

Did you type @property (nonatomic, strong) NSString *token;

Upvotes: 0

Sergey Kalinichenko
Sergey Kalinichenko

Reputation: 726987

This means that you need to go to your AppDelegate.h file, and add a declaration for token. Let's say it's NSString*; then you should add the following line to your .h file:

@property (nonatomic, readwrite) NSString *token;

Substitute NSString* for the correct type of your token property. More information about properties can be found here.

Upvotes: 1

Related Questions