request for member view in something not a structure or union
<p>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];</p>

<p>the code:
- (void) CommuneSelected {</p>

<pre><code>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];
</code></pre>

<p>}</p>

<p>need HELP</p>
