Reputation:
i have declared one class such as
#import "CalcEntryVC.h"
@interface initialcontroller : UIViewController<UINavigationControllerDelegate>
{
IBOutlet BookmarkListTVC *bkcontroller;
IBOutlet CalcEntryVC *calcentryVCController;
}
but when i declare in BookmarkListTVC.h as
@interface BookmarkListTVC : UITableViewController <UIActionSheetDelegate,UINavigationBarDelegate>
{
IBOutlet CalcEntryVC *calcentryVCController;
}
the error comes error: expected specifier-qualifier-list before 'CalcEntryVC'
how can i overcome , i tried #ifndef
also.....any solution pls?
Upvotes: 2
Views: 223
Reputation: 15588
you don't want to import the header as suggested in another answer. YOu want to use the @class directive to declare CalcEntry as a forward declaration:
@class CalcEntryVC.h
Upvotes: 0