request for member view in something not a structure or union
- by james
Hi
I have this error when i build my application iphone:
request for member view in something not a structure or union on [CommuneSlider.view removeFromSuperview];
the code:
- (void) CommuneSelected {
CommuneDetailsViewController *com = [[CommuneDetailsViewController alloc] initWithNibName:@"CommuneDetailsViewController" bundle:nil];
UINavigationController *navig = [[UINavigationController alloc]
initWithRootViewController:com];
[self setCommuneDetails:(CommuneDetailsViewController *) navig];
[navig setNavigationBarHidden:YES];
[com release];
[navig release];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.8];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:window cache:YES];
[CommuneSlider.view removeFromSuperview];
[self.window addSubview:[CommuneDetails view]];
[UIView commitAnimations];
}
need HELP