【发布时间】:2011-08-04 22:33:29
【问题描述】:
我有 ForceGaugeViewController 类和 ForceGaugeController 类。我正在尝试使 ForceGaugeController 类成为 ForceGaugeViewController 的子类,但我收到错误。
错误:
找不到 ForceGaugeViewController 的接口声明 ForceGaugeController 类的超类。
ForceGaugeViewController.h
#import <UIKit/UIKit.h>
#import <math.h>
#import "HardwareController.h"
#import "ForceGaugeController.h"
@interface ForceGaugeViewController : UIViewController{
}
end
ForceGaugeViewController.m
#import "ForceGaugeViewController.h"
@implementation ForceGaugeViewController
ForceGaugeController.h
#import <Foundation/Foundation.h>
#import "ForceGaugeViewController.h"
#import "FMDatabase.h"
#import "FMResultSet.h"
@class ForceGaugeViewController;
// error here
@interface ForceGaugeController : ForceGaugeViewController{
}
@end
ForceGaugeController.m
#import "ForceGaugeController.h"
【问题讨论】:
标签: iphone objective-c superclass