这里是我的头文件为什么我的目标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 2009-07-21 18:00:37