これが私のヘッダーファイルです
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <PolygonShape.h>
@interface Controller : NSObject {
IBOutlet UIButton *decreaseButton;
IBOutlet UIButton *increaseButton;
IBOutlet UILabel *numberOfSidesLabel;
//IBOutlet PolygonShape *shape;
}
- (IBAction)decrease;
- (IBAction)increase;
@end
ここに私の実装ファイルがあります
#import "Controller.h"
@implementation Controller
- (IBAction)decrease {
//shape.numberOfSides -= 1;
}
- (IBAction)increase {
//shape.numberOfSides += 1;
}
@end
#import "Controller.h"
回線で次のエラーが表示されるのはなぜですか?
error: PolygonShape.h: No such file or directory
PolygonShape.h および .m ファイルは、Controller クラスと同じプロジェクトの同じディレクトリにあります。