tags:

views:

70

answers:

2

Hi, 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?

A: 

Have you done #import "CalcEntryVC.h" in BookmarkListTVC.h?

quixoto
+1  A: 

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
darren
but @class CalcEntryVC;
Mikhail Naimy
right, no .h. Thanks.
darren