Got it! I replaced the code above with the code below. Now it works on both iOS 6 and 7.
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[[self splitViewController] setDelegate:nil];
[[self splitViewController] setDelegate:self];
[[self splitViewController] willAnimateRotationToInterfaceOrientation:CURRENT_ORIENTATION duration:0];
[[self splitViewController] willRotateToInterfaceOrientation:CURRENT_ORIENTATION duration:0];
[[self splitViewController] didRotateFromInterfaceOrientation:CURRENT_ORIENTATION];
[[self splitViewController] viewWillLayoutSubviews];
[[[self splitViewController] view] layoutSubviews];
}