XCode:未检测到My.h文件

XCode:未检测到My.h文件,xcode,ios5,header,Xcode,Ios5,Header,我想分享一些截图来很好地解释我的问题。 正如您在图像左侧看到的,BookCell.h文件存在,当我使用#import时,会自动建议导入它。但事实是我根本不能用它。BookCell.m找不到BookCell.h,即使在第二个屏幕截图中,正如您所看到的,我已经将它导入到另一个类文件中,但也找不到它!有什么问题吗 我尝试重新打开XCode,甚至重新启动了我的mac。我非常需要你的帮助 编辑 下面是BookCell.h文件: // // BookCell.h // BookShelf // //

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

正如您在图像左侧看到的,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
//
//BookCell.h
//书架
//
//由ManGoes Mobile于2012年7月24日创建。
//版权所有2012年uu MyCompanyName uuu。版权所有。
//
#导入“ArticleCell.h”
#导入“ArticleTitleLabel.h”
#导入“MainViewDelegate.h”
#导入“ControlVariables.h”
@接口BookCell:ArticleCell
//一旦我们想要保留此文件所表示的Article对象,就需要此图像名称。
@属性(强,非原子)NSString*imageName;
@属性(强,非原子)UITableViewCell*parentCell;
@物业CGPoint位置incell;
-(BookCell*)BookCell;
//代表
@属性(非原子,赋值)id委托;
@结束

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

请同时显示BookCell.h的内容。请检查编辑的问题。谢谢。