Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting expected a type in Xcode [closed]

i am getting the error:expected a type in xcode.I don't know why i am getting this kind of error in my .h class. here is my code and screen shot.

#import <Foundation/Foundation.h>
@interface NaviGationStack : NSObject
@property (nonatomic, strong) NSMutableArray *navigattionStack;
+(NaviGationStack*)navigationStackClass;
-(void)popViecontrollerFromStack;
-(int)getNumberElementInStack;
-(void)pushViewControllerToStack:(UIViewController *)viewController;

i am getting this error in last function.here is the error

like image 884
ankyy Avatar asked Jan 11 '14 20:01

ankyy


1 Answers

Import UIKit.h rather than Framework.h:

#import <UIKit/UIKit.h>
like image 157
trojanfoe Avatar answered Oct 02 '22 20:10

trojanfoe