我正在使用Xcode中的iphone应用程序,在AppDelegate.m文件中我有以下代码行:
@synthesize window=window_, navController=navController_, director=director_;
它得到了这个错误:属性实现必须在“AppController”接口
中声明它以下是我的AppDelegate.h文件的全部内容:
//
// AppDelegate.h
// Created by Nipin P N on 12-12-3.
// Copyright Nipin P N 2012. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "cocos2d.h"
#import <RevMobAds/RevMobAds.h>
@interface AppController : NSObject <UIApplicationDelegate, CCDirectorDelegate>
{
UIWindow *window_;
UINavigationController *navController_;
CCDirectorIOS *director_; // weak ref
}
@end
@interface AppDelegate : UIResponder <UIApplicationDelegate, RevMobAdsDelegate>
@property (nonatomic, retain) UIWindow *window;
@property (readonly) UINavigationController *navController;
@property (readonly) CCDirectorIOS *director;
@end
我在这里缺少什么?