Reputation: 170
I integrated three20 project in my app. I want to go back to the called class. But unable to import that class. This is what i do in TTPhotoViewController:
MainMenuVC *mmenu = [[MainMenuVC alloc] init];
[self.navigationController pushViewController:mmenu animated:YES];
[mmenu release];
But xcode cant file this class. "Use of undeclared identifier..."
I tried to import like the following, but none worked:
#import <MyApp/MainMenuVC.h>
#import "MyApp/MainMenuVC.h"
#import <../MyApp/MainMenuVC.h>
Upvotes: 2
Views: 94
Reputation: 4921
have to tried this
[self.navigationController popToRootViewController animated:YES];
You cannot import class files vice versa that means. If you import class B in class A like this: import "B" you cannot import class A in class B like this: import "A" instead use @class "A" in .h file
Upvotes: 1