このエラーが表示されます
Property implementation must have its declaration in interface "AppDelegate"
宣言したら
@implementation AppDelegate
@synthesize window, viewController;
@synthesize token;
Xcode 4.4 を使用しています。
このエラーが表示されます
Property implementation must have its declaration in interface "AppDelegate"
宣言したら
@implementation AppDelegate
@synthesize window, viewController;
@synthesize token;
Xcode 4.4 を使用しています。
AppDelegate.h
これは、ファイルに移動して、の宣言を追加する必要があることを意味しますtoken
。NSString*
それが;だとしましょう。次に、.hファイルに次の行を追加する必要があります。
@property (nonatomic, readwrite) NSString *token;
NSString*
あなたの財産の正しいタイプの代わりになりtoken
ます。プロパティの詳細については、こちらをご覧ください。
widow、viewControllerまたはtokenを .h ファイルのプロパティとして設定していないようです。
入力しましたか@property (nonatomic, strong) NSString *token;