iPhone Application: force landscape mode, strange behaviour...?
- by David Lawson
This is a method I use to switch display views, based on a string passed (for example you could pass MainMenuViewController to switch views to a new instance of that class):
- (void)displayView:(NSString *)newView
{
NSLog(@"%@", newView);
[[currentView view] removeFromSuperview];
[currentView release];
UIViewController *newView =…