user141302
user141302

Reputation:

class declaration Problem in IPhone SDk?

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

Answers (2)

D.C.
D.C.

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

Ben Zotto
Ben Zotto

Reputation: 71008

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

Upvotes: 0

Related Questions