My keyboard appears in portrait mode when i rotate a single view to landscape.
-(void)viewWillAppear:(BOOL)animated
{
CGAffineTransform newTransform = CGAffineTransformMake(0.0,1.0,-1.0,0.0,0.0,0.0);
self.view.transform = newTransform;
}
My keyboard appears in portrait mode when i rotate a single view to landscape.
-(void)viewWillAppear:(BOOL)animated
{
CGAffineTransform newTransform = CGAffineTransformMake(0.0,1.0,-1.0,0.0,0.0,0.0);
self.view.transform = newTransform;
}
If you want a single view controller to support only landscape orientation you should do it the 'Apple way" by implementing
-(NSUInteger)supportedInterfaceOrientations
Remeber to set "View controller-based status bar appearance" to YES in your plist file
See this link for more details - Supporting Multiple Interface Orientations