여기에 내 헤더 파일입니다객관적인 c 구현 파일이 내 import 문을 인식하지 못하는 이유는 무엇입니까?
#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 클래스와 동일한 디렉토리에 있습니다.
당신이 PolygonShape 파일이 대상에 추가되어 있는지 확인 했습니까이 오류를받을 수 있습니까? – teabot