I have a subclass of
UITabBarController with an associated scene in storyboard. I'm customizing the appearance of its tab bar in this subclass, and I'd like to show it vertically at the left side of the screen when orientation of the device changes to landscape, instead of the default horizontal and bottom of the screen position.
In my subclass of
UITabBarController, in the
viewWillTransitionToSize:withTransitionCoordinator: method, I try to perform a 90 degrees rotation of the tab bar:
self.tabBar.transform = CGAffineTransformRotate(CGAffineTransformIdentity, M_PI/2);
which in fact rotates the tab bar, but it keeps in the bottom center of the screen, it does not take the full height of the screen, and its tab bar items are rotated but they all overlap.
How could I solve this?
Thanks in advance