Tanuj
Tanuj

Reputation: 531

In iPhone keyboard appears in the portrait mode rather than the landscape one. Any solution?

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;

}

Upvotes: 2

Views: 301

Answers (1)

Zigglzworth
Zigglzworth

Reputation: 6813

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

Upvotes: 1

Related Questions