這樣未聲明導航對象?
UINavigationController *naviButtonpro;
@property (nonatomic, retain) IBOutlet UINavigationController *naviButtonpro;
也已經我正在申報導航對象申報@synthesize naviButtonpro;
self.naviButtonpro = [[UINavigationController alloc] initWithNibName:@"NaviButtonViewController" bundle:nil];
[self.window addSubview:self.naviButtonpro.view];
,當我用這個方法
-(IBAction)displayNextPage:(id)sender
{
dispNext *gotoback = [[dispNext alloc] initWithNibName:@"dispNextView" bundle:[NSBundle mainBundle]];
//UINavigationController *naviButtonpro = [[UINavigationController alloc] initWithNibName:@"NaviButtonViewController" bundle:nil];
[self.naviButtonpro pushViewController:gotoback animated:YES];
[gotoback release];
}
我正在歌廳這樣的錯誤的東西這個 請求成員的naviButtonpro'不是一個結構或聯合
u能告訴我如何解決這個問題