- - (void) willAnimateRotationToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientation
- duration: (NSTimeInterval)duration
- {
- NSString *nibName = UIInterfaceOrientationIsPortrait(toInterfaceOrientation)
- ? kPortraitViewNibName
- : kLandscapeViewNibName;
- [baseView removeFromSuperview];
- [[NSBundle mainBundle] loadNibNamed:nibName owner:self options:nil];
- [self.view addSubview:baseView];
- }