2
votes

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;

}

1
You are only converting a view to landscape which will not show the keyboard in landscape. it will always show in portrait mode. If you need to do this for a singleViewController then you need to customize it.Jassi
can you plz suggest me any option? how can i customise? Thanks.Tanuj

1 Answers

1
votes

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