//
//  TabBarController.m
//  HWMSDKDemo
//
//

#import "TabBarController.h"

@implementation TabBarController

- (BOOL)shouldAutorotate{
    if (self.selectedViewController) {
        return self.selectedViewController.shouldAutorotate;
    }
    return NO;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
    if (self.selectedViewController) {
        return self.selectedViewController.preferredInterfaceOrientationForPresentation;
    }
    return  UIInterfaceOrientationPortrait;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations{
    if (self.selectedViewController) {
        return self.selectedViewController.supportedInterfaceOrientations;
    }
    return UIInterfaceOrientationMaskPortrait;
}

@end
