Got a questions to expand on the tut a bit:
Is there a way to stay within this framework, and create "flipHome" method that can be used generically for many different view controllers ... for example in the following code:
Code:
- (void)flipToHome:(id)sender{
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:window cache:YES];
[[goWebController view] removeFromSuperview];
[window addSubview:[viewController view]];
onFront = YES;
[UIView commitAnimations];
}
This particular code works if I call it from my goWebController.m file.
However, if I want to use the same method from multiple view controllers, to just send me home to the main screen, can I change the line
Code:
[[goWebController view] removeFromSuperview];
to something like
Code:
[[sender view] removeFromSuperview];
^ I tried that specific code, but it didn't work. I am just trying to figure out all the guts of this and understand how all the pieces work together here, using the same calling method as was used in your tutorial when I click on a "back" button.
Thanks for any advice/tips/understanding you can offer!