XCode:未检测到我的.h文件

时间:2012-07-24 07:17:01

标签: xcode ios5 header

我想分享一些截图来很好地解释我的问题。 enter image description here

enter image description here

正如您在图像左侧看到的那样,BookCell.h文件存在,当我使用#import时,它会自动建议。但事实是我完全不能使用它。 BookCell.m没有找到BookCell.h,即使在第二个截图中你可以看到,我已将它导入到另一个类文件中,但是也无法找到它!有什么问题?

我尝试重新打开XCode,甚至重新启动了我的mac。我非常需要你的帮助。

修改 这是BookCell.h文件:

//
//  BookCell.h
//  BookShelf
//
//  Created by ManGoes Mobile on 24/7/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "ArticleCell.h"
#import "ArticleTitleLabel.h"
#import "MainViewDelegate.h"
#import "ControlVariables.h"
@interface BookCell : ArticleCell
//This image name will be needed once we want to retain the represented Article object by this.
@property (strong,nonatomic) NSString *imageName;
@property (strong,nonatomic) UITableViewCell *parentCell;
@property CGPoint locationInCell;
-(BookCell *)BookCell;
//delegates
@property (nonatomic,assign) id<MainViewDelegate> delegate;

@end

1 个答案:

答案 0 :(得分:0)

如何右键单击.h文件和删除引用,然后再将其添加到项目中?