Xcode中已經顯示出藍色的這個錯誤: 「未知類型名稱」知道的未知類型名稱?
我會解釋: 我StoriesViewController.h:
#import <UIKit/UIKit.h>
#import "Stories.h"
@interface StoriesViewController : UIViewController <UITextViewDelegate>
@property (strong) Stories *story; //Here it goes- "Unknown type name `Stories`"
@property (weak) IBOutlet UITextView *storyView;
@end
在我Stories.h:
#import <UIKit/UIKit.h>
#import "ViewController.h"
@interface Stories : UIDocument
@property (strong) NSString * storyContent;
@end
再次,突然間。
在此先感謝。
編輯:
在我ViewController.h:
#import <UIKit/UIKit.h>
#import "Stories.h"
#import "StoriesViewController.h"
#import "StoriesPickerViewController.h"
#import <QuartzCore/QuartzCore.h>
@interface ViewController : UIViewController <UITextFieldDelegate, UIAlertViewDelegate> {
}
@end
NB @class拋出的ARC問題負載。
我已經刪除了無用的引用ViewController.h,工作。 解決!
什麼是ViewController.h? – Darren