Domanda

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>
È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top