Code:
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
that is for orientation i kno but lets say i wanted to put this in this IBAction how would i write this?
Code:
-(IBAction)go{
[myAudio play];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[mainWindow.view removeFromSuperview];
[self.view addSubview:secondView];
[UIView commitAnimations];
}
what im trying to do is switch views but when it switchs it turns on orientation