У меня есть 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"