サブクラス FourthViewController を持つビュー コントローラー FirstViewController があります。FirstViewController のインターフェースは次のとおりです。
#import "FourthViewController.h"
@interface FirstViewController : UIViewController <FourthViewControllerDelegate>
FourthViewController の .h には、次のものがあります。
#import "FirstViewController.h"
@protocol FourthViewControllerDelegate
-(void) updateLabel;
@end
@interface FourthViewController : FirstViewController
@property (weak, nonatomic) id<FourthViewControllerDelegate>delegate;
これにより、次のエラー メッセージが表示されます。「FirstViewController」のインターフェイス宣言が見つかりません。「FourthViewController」のスーパークラスです。このエラーが発生する理由がわかりません。どんなアドバイスも役に立ちます。