Hello I am quite new to iPhone development (working with iOS 7). Basically I want my application to respond to screen rotations (i.e. changing the screen orientation) My project uses both UITabBarController
and UINavigationController
. However when I rotate the device it won't call the "shouldAutorotate
" function in a ViewController
called LoginView.m
.
Therefore I have followed the answer in here up to the point where it subclasses both UITabBarController
and UINavigationController
. Can someone explain to me how to add (i.e reference it)the orientation behaviour within the LoginView.m
class or to the entire project.
Your help is greatly appreciated.
Thanks
shouldAutorotate
will be called for the root view controller, which in your case, is a TabBarController or a NavigationController, but we need more details on the desired outcome – Argent