I found the ECSlidingViewController when rotate to landscape, the size of the view is not adjusted. so there is a big blank background shown. it works great in portrait.
this only happen on right side menu.
Please find the screen capture here : landscape! portrait!
update on 20-May-2014, sub class the ECSlidingViewController, add these 2 method. but the problem still there.
MyECSlidingViewController.m
-(BOOL)shouldAutorotate
{
return [self.topViewController shouldAutorotate];
}
-(NSUInteger)supportedInterfaceOrientations
{
return [self.topViewController supportedInterfaceOrientations];
}
MenuLeftViewController.m
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *menuItem = self.menuItems[indexPath.row];
self.slidingViewController.topViewController.view.layer.transform = CATransform3DMakeScale(1, 1, 1);
switch (indexPath.row)
{
case 0: // Home
self.slidingViewController.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"MainPageNavigationController"];
break;
case 1: // News
self.slidingViewController.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"NewsNavigationController"];
break;
case 2: // Songs
self.slidingViewController.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"SongsNavigationController"];
break;
case 3: // Notifications
self.slidingViewController.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"PushNotificationNavigationController"];
break;
}
[self.slidingViewController resetTopViewAnimated:YES];
}