request for member view in something not a structure or union

Posted by james on Stack Overflow See other posts from Stack Overflow or by james
Published on 2010-06-15T13:21:04Z Indexed on 2010/06/15 13:22 UTC
Read the original article Hit count: 897

Filed under:

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

© Stack Overflow or respective owner

Related posts about iphone-sdk