Added support for UIInterfaceOrientation.